Package org.deltafi.common.metric
Class MetricLogger
- java.lang.Object
-
- org.deltafi.common.metric.MetricLogger
-
public class MetricLogger extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MetricLogger()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidlogMetric(java.lang.String source, java.lang.String name, long value, java.util.Map<java.lang.String,java.lang.String> tags)Logs a counter metric for a source.static voidlogMetric(java.lang.String source, java.lang.String did, java.lang.String flow, java.lang.String name, long value)Logs a counter metric for a source, delta file id, and flow.static voidlogMetric(java.lang.String source, java.lang.String did, java.lang.String flow, java.lang.String name, long value, java.util.Map<java.lang.String,java.lang.String> additionalTags)Logs a counter metric for a source, delta file id, and flow.static voidlogMetric(java.lang.String source, MetricType type, java.lang.String name, long value, java.util.Map<java.lang.String,java.lang.String> tags)Logs a metric for a source.
-
-
-
Method Detail
-
logMetric
public static void logMetric(java.lang.String source, java.lang.String did, java.lang.String flow, java.lang.String name, long value)Logs a counter metric for a source, delta file id, and flow. Delta file id and flow are added as the only tags.- Parameters:
source- the sourcedid- the delta file idflow- the flowname- the namevalue- the value
-
logMetric
public static void logMetric(java.lang.String source, java.lang.String did, java.lang.String flow, java.lang.String name, long value, java.util.Map<java.lang.String,java.lang.String> additionalTags)Logs a counter metric for a source, delta file id, and flow. Delta file id and flow are added as tags along with the provided additional tags.- Parameters:
source- the sourcedid- the delta file idflow- the flowname- the namevalue- the valueadditionalTags- additional tags (key/value pairs) to add to the log entry
-
logMetric
public static void logMetric(java.lang.String source, java.lang.String name, long value, java.util.Map<java.lang.String,java.lang.String> tags)Logs a counter metric for a source.- Parameters:
source- the sourcename- the namevalue- the valuetags- additional tags (key/value pairs) to add to the log entry
-
logMetric
public static void logMetric(java.lang.String source, MetricType type, java.lang.String name, long value, java.util.Map<java.lang.String,java.lang.String> tags)Logs a metric for a source.- Parameters:
source- the sourcetype- the typename- the namevalue- the valuetags- additional tags (key/value pairs) to add to the log entry
-
-