def sample_rate(self): """ Determine how often this metric should be retrieved. If the metric didn't define a sample period, return the default. :return int: Number of seconds between collecting samples of this metric. """ if self._SampleRate is None: return _defaultSampleRate else: return ProvUtil.IntervalToSeconds(self._SampleRate)
def SampleRate(self): if self._SampleRate is None: return _defaultSampleRate else: return ProvUtil.IntervalToSeconds(self._SampleRate)