def _populate_data(self):
        """Assinging some measurement's raw meta data from API response to instance properties"""
        if self.id is None:
            self.id = self.meta_data.get("id")

        self.stop_time = None
        self.creation_time = None
        self.start_time = None
        self.populate_times()
        self.protocol = self.meta_data.get("af")
        self.target_ip = self.meta_data.get("target_ip")
        self.target_asn = self.meta_data.get("target_asn")
        self.target = self.meta_data.get("target")
        self.description = self.meta_data.get("description")
        self.is_oneoff = self.meta_data.get("is_oneoff")
        self.is_public = self.meta_data.get("is_public")
        self.interval = self.meta_data.get("interval")
        self.resolve_on_probe = self.meta_data.get("resolve_on_probe")
        self.status_id = self.meta_data.get("status", {}).get("id")
        self.status = self.meta_data.get("status", {}).get("name")
        self.type = self.get_type()
        self.result_url = self.meta_data.get("result")
def _populate_data ( self ) : if self . id is None : self . id = self . meta_data . get ( "id" ) self . stop_time = None self . creation_time = None self . start_time = None self . populate_times ( ) self . protocol = self . meta_data . get ( "af" ) self . target_ip = self . meta_data . get ( "target_ip" ) self . target_asn = self . meta_data . get ( "target_asn" ) self . target = self . meta_data . get ( "target" ) self . description = self . meta_data . get ( "description" ) self . is_oneoff = self . meta_data . get ( "is_oneoff" ) self . is_public = self . meta_data . get ( "is_public" ) self . interval = self . meta_data . get ( "interval" ) self . resolve_on_probe = self . meta_data . get ( "resolve_on_probe" ) self . status_id = self . meta_data . get ( "status" , { } ) . get ( "id" ) self . status = self . meta_data . get ( "status" , { } ) . get ( "name" ) self . type = self . get_type ( ) self . result_url = self . meta_data . get ( "result" )
Assinging some measurement's raw meta data from API response to instance properties