Current File : //usr/lib/python2.7/site-packages/vdo/statistics/StatStruct.pyc |
�
.�t_c @ s� d Z d d l Td d l Z d d l Z d d l Z d d l Z d d l m Z d d l m Z d e f d � � YZ d e f d � � YZ
d
e f d � � YZ d S( s�
StatStruct -- classes for sampling statistics from a VDO via ioctls
$Id: //eng/vdo-releases/magnesium/src/python/vdo/statistics/StatStruct.py#2 $
i����( t *N( t Field( t LabeledValuet Samplesc B s\ e Z d Z d � Z d � Z d � Z e e d � � Z e e d � � Z e d � � Z
RS( sD
An object which represents a collection of samples from a VDO.
c C sF | d | _ g | D]% } | j t j j | d � � ^ q | _ d S( s�
Create a new set of samples by sampling a VDO device.
:param assays: The types of samples to take
:param devices: The device to sample (a dictionary containing
the user-supplied name and the name to use for sampling)
:param mustBeVDO: If set to False, errors resulting from the device not
being a VDO will be suppressed
t usert sampleN( t deviceR t ost patht basenamet samples( t selft assaysR t mustBeVDOt assay( ( s= /usr/lib/python2.7/site-packages/vdo/statistics/StatStruct.pyt __init__'