

def write(self):
    for (name, metric) in self.registry:
        if isinstance(metric, Meter):
            self.send_metric(name, 'meter', metric, ['count', 'one_minute_rate', 'five_minute_rate', 'fifteen_minute_rate', 'mean_rate'])
        if isinstance(metric, Gauge):
            self.send_metric(name, 'gauge', metric, ['value'])
        if isinstance(metric, UtilizationTimer):
            self.send_metric(name, 'timer', metric, ['count', 'one_minute_rate', 'five_minute_rate', 'fifteen_minute_rate', 'mean_rate', 'min', 'max', 'mean', 'stddev', 'one_minute_utilization', 'five_minute_utilization', 'fifteen_minute_utilization', 'mean_utilization'], ['median', 'percentile_95th'])
        if isinstance(metric, Timer):
            self.send_metric(name, 'timer', metric, ['count', 'one_minute_rate', 'five_minute_rate', 'fifteen_minute_rate', 'mean_rate', 'min', 'max', 'mean', 'stddev'], ['median', 'percentile_95th'])
        if isinstance(metric, Counter):
            self.send_metric(name, 'counter', metric, ['count'])
        if isinstance(metric, Histogram):
            self.send_metric(name, 'histogram', metric, ['count', 'min', 'max', 'mean', 'stddev'], ['median', 'percentile_95th'])
    self._send()

dataset/ETHPy150Open cyberdelia/metrology/metrology/reporter/graphite.py GraphiteReporter.write/original