Class AggregatingEmitter
java.lang.Object
io.confluent.telemetry.emitter.AggregatingEmitter
- All Implemented Interfaces:
Emitter
-
Constructor Summary
ConstructorsConstructorDescriptionAggregatingEmitter(Set<io.confluent.telemetry.config.v2.AggregationRule> aggregationRule, Emitter delegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleanemitMetric(SinglePointMetric metric) Emits a metric to all configuredExporterobjects.voidbooleanshouldEmitMetric(Keyed key) Tests whether this metric object could actually be emitted based on its key.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.confluent.telemetry.emitter.Emitter
maybeEmitMetric
-
Constructor Details
-
AggregatingEmitter
-
-
Method Details
-
shouldEmitMetric
Description copied from interface:EmitterTests whether this metric object could actually be emitted based on its key. This is useful when materializing the metric object is an expensive operation.- Specified by:
shouldEmitMetricin interfaceEmitter- Parameters:
key- metric key to test against- Returns:
- true if it is possible for this object to get emitted, false otherwise
-
emitMetric
Description copied from interface:EmitterEmits a metric to all configuredExporterobjects.- Specified by:
emitMetricin interfaceEmitter- Parameters:
metric- to emit- Returns:
- true if exported by at least one exporter, false otherwise
-
flushAggregates
public void flushAggregates()
-