Package cz.o2.proxima.core.metrics
Class MetricFactory
- java.lang.Object
-
- cz.o2.proxima.core.metrics.MetricFactory
-
public class MetricFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MetricFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbsoluteMetric
absolute(java.lang.String group, java.lang.String name)
GaugeMetric
gauge(java.lang.String group, java.lang.String name)
Construct the metric.ApproxPercentileMetric
percentile(java.lang.String group, java.lang.String name, long duration, long window)
Construct the metric.TimeAveragingMetric
timeAveraging(java.lang.String group, java.lang.String name, long windowLengthMs)
TimeAveragingMetric
timeAveraging(java.lang.String group, java.lang.String name, long windowLength, long checkpointMs, long purgeMs)
-
-
-
Method Detail
-
absolute
public AbsoluteMetric absolute(java.lang.String group, java.lang.String name)
-
timeAveraging
public TimeAveragingMetric timeAveraging(java.lang.String group, java.lang.String name, long windowLength, long checkpointMs, long purgeMs)
-
timeAveraging
public TimeAveragingMetric timeAveraging(java.lang.String group, java.lang.String name, long windowLengthMs)
-
percentile
public ApproxPercentileMetric percentile(java.lang.String group, java.lang.String name, long duration, long window)
Construct the metric.- Parameters:
group
- group namename
- metric nameduration
- total duration of the statistic in mswindow
- windowNs size in ms- Returns:
- the metric
-
gauge
public GaugeMetric gauge(java.lang.String group, java.lang.String name)
Construct the metric.- Parameters:
group
- group of the metricname
- name of the metric- Returns:
- new gauge metric
-
-