(self, instance_key, wmi_class, properties, tag_by="", **kwargs)
return self._wmi_sampler
Return a running WMISampler for the given (class, properties).

        If no matching WMISampler is running yet, start one and cache it.
Return a running WMISampler for the given (class, properties).
Return a running WMISampler for the given ( class properties ) .
def _get_running_wmi_sampler(self, instance_key, wmi_class, properties, tag_by="", **kwargs):
        # type: (Any, str, List[str], str, Any) -> WMISampler
        """
        Return a running WMISampler for the given (class, properties).

        If no matching WMISampler is running yet, start one and cache it.
        """
        if self._wmi_sampler is None:
            property_list = list(properties) + [tag_by] if tag_by else list(properties)
            self._wmi_sampler = WMISampler(self.log, wmi_class, property_list, **kwargs)
            self._wmi_sampler.start()

        return self._wmi_sampler
def _get_running_wmi_sampler ( self , instance_key , wmi_class , properties , tag_by = "" , * * kwargs ) : # type: (Any, str, List[str], str, Any) -> WMISampler if self . _wmi_sampler is None : property_list = list ( properties ) + [ tag_by ] if tag_by else list ( properties ) self . _wmi_sampler = WMISampler ( self . log , wmi_class , property_list , * * kwargs ) self . _wmi_sampler . start ( ) return self . _wmi_sampler