Package org.kairosdb.metrics4j.internal
Class TriggerMetricCollection
- java.lang.Object
-
- org.kairosdb.metrics4j.internal.TriggerMetricCollection
-
- All Implemented Interfaces:
MetricCollection
public class TriggerMetricCollection extends Object implements MetricCollection
build this class and then add it to the trigger For a specific trigger this class holds all the sinks and collectors that will be scraped by this trigger.
-
-
Constructor Summary
Constructors Constructor Description TriggerMetricCollection(Trigger trigger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCollector(CollectorContext collector)voidaddSnapshot(Snapshot snapshot)TriggergetTrigger()voidreportMetrics(Instant now)
-
-
-
Constructor Detail
-
TriggerMetricCollection
public TriggerMetricCollection(Trigger trigger)
-
-
Method Detail
-
getTrigger
public Trigger getTrigger()
-
addCollector
public void addCollector(CollectorContext collector)
-
addSnapshot
public void addSnapshot(Snapshot snapshot)
-
reportMetrics
public void reportMetrics(Instant now)
- Specified by:
reportMetricsin interfaceMetricCollection
-
-