public class CustomMetric
extends java.lang.Object
| Constructor and Description |
|---|
CustomMetric(java.lang.String name,
double value,
java.util.Map<java.lang.String,java.lang.Object> tags)
Create a custom distribution metric
|
CustomMetric(java.lang.String name,
double value,
java.util.Map<java.lang.String,java.lang.Object> tags,
java.util.Date time)
Create a custom distribution metric with custom a custom time
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
java.util.Map<java.lang.String,java.lang.Object> |
getTags() |
double |
getValue() |
java.lang.String |
toJson()
Create a JSON string representing the distribution metric
|
void |
write()
Write writes the CustomMetric to Datadog
|
public CustomMetric(java.lang.String name,
double value,
java.util.Map<java.lang.String,java.lang.Object> tags)
name - The name assigned to the metricvalue - The value of the metrictags - A map of tags (if any) that you want to assign to the metricpublic CustomMetric(java.lang.String name,
double value,
java.util.Map<java.lang.String,java.lang.Object> tags,
java.util.Date time)
name - The name assigned to the metricvalue - The value of the metrictags - A map of tags (if any) that you want to assign to the metrictime - The time that you want to give to the metricpublic java.lang.String toJson()
public void write()
public java.lang.String getName()
public double getValue()
public java.util.Map<java.lang.String,java.lang.Object> getTags()