public class MetricEvent extends Object implements JSONFormatter
GSON, INVALID_DOUBLES| Constructor and Description |
|---|
MetricEvent(String group,
Map<String,String> dimensions,
Map<String,Number> metrics)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
asJSON()
Convert this object to a JSON string.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasJSON, fromJSONpublic MetricEvent(String group, Map<String,String> dimensions, Map<String,Number> metrics)
group - The identity of the entity being measured by the metrics.dimensions - Static metadata or tags describing the entity being measured.metrics - Numeric data describing values of the measured entity.public String asJSON()
JSONFormatterasJSON in interface JSONFormatterCopyright © 2021. All rights reserved.