(self, index)
Get the specified formatted WMI Object from the current sample.
Get the specified formatted WMI Object from the current sample.
Get the specified formatted WMI Object from the current sample .
def __getitem__(self, index):
        """
        Get the specified formatted WMI Object from the current sample.
        """
        if self.is_raw_perf_class:
            previous_wmi_object = self._previous_sample[index]
            current_wmi_object = self._current_sample[index]
            formatted_wmi_object = self._format_property_values(previous_wmi_object, current_wmi_object)
            return formatted_wmi_object
        else:
            return self._current_sample[index]
def __getitem__ ( self , index ) : if self . is_raw_perf_class : previous_wmi_object = self . _previous_sample [ index ] current_wmi_object = self . _current_sample [ index ] formatted_wmi_object = self . _format_property_values ( previous_wmi_object , current_wmi_object ) return formatted_wmi_object else : return self . _current_sample [ index ]