public final class NoopMetricsContext extends Object implements MetricsContext
MetricsContext.| Constructor and Description |
|---|
NoopMetricsContext() |
NoopMetricsContext(Map<String,String> tags) |
| Modifier and Type | Method and Description |
|---|---|
MetricsContext |
childContext(Map<String,String> tags)
Creates child
MetricsContext that inherits the metrics context from this one and adds extra context
information. |
MetricsContext |
childContext(String tagName,
String tagValue)
Convenience method that acts as
MetricsContext.childContext(java.util.Map) by supplying single tag. |
void |
gauge(String metricName,
long value) |
Map<String,String> |
getTags() |
void |
increment(String metricName,
long value) |
public MetricsContext childContext(Map<String,String> tags)
MetricsContextMetricsContext that inherits the metrics context from this one and adds extra context
information.childContext in interface MetricsContexttags - tags to add to the child metrics contextMetricsContextpublic MetricsContext childContext(String tagName, String tagValue)
MetricsContextMetricsContext.childContext(java.util.Map) by supplying single tag.childContext in interface MetricsContextpublic Map<String,String> getTags()
getTags in interface MetricsContextpublic void increment(String metricName, long value)
increment in interface MetricsCollectorpublic void gauge(String metricName, long value)
gauge in interface MetricsCollectorCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.