public class MetricsRecord
extends java.lang.Object
Constructor and Description |
---|
MetricsRecord(long timestamp,
java.lang.String source,
java.lang.Iterable<MetricsInfo> metrics,
java.lang.Iterable<ExceptionInfo> exceptions,
java.lang.String context) |
MetricsRecord(java.lang.String source,
java.lang.Iterable<MetricsInfo> metrics,
java.lang.Iterable<ExceptionInfo> exceptions) |
MetricsRecord(java.lang.String source,
java.lang.Iterable<MetricsInfo> metrics,
java.lang.Iterable<ExceptionInfo> exceptions,
java.lang.String context) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContext()
Get the context of the metrics record
|
java.lang.Iterable<ExceptionInfo> |
getExceptions()
Get the exception logs of the record
|
java.lang.Iterable<MetricsInfo> |
getMetrics()
Get the metrics of the record
|
java.lang.String |
getSource()
Get the name of source generating metrics
|
long |
getTimestamp()
Get the timestamp of the metrics
|
java.lang.String |
toString() |
public MetricsRecord(java.lang.String source, java.lang.Iterable<MetricsInfo> metrics, java.lang.Iterable<ExceptionInfo> exceptions)
public MetricsRecord(java.lang.String source, java.lang.Iterable<MetricsInfo> metrics, java.lang.Iterable<ExceptionInfo> exceptions, java.lang.String context)
public MetricsRecord(long timestamp, java.lang.String source, java.lang.Iterable<MetricsInfo> metrics, java.lang.Iterable<ExceptionInfo> exceptions, java.lang.String context)
public long getTimestamp()
public java.lang.String getSource()
public java.lang.Iterable<MetricsInfo> getMetrics()
public java.lang.Iterable<ExceptionInfo> getExceptions()
public java.lang.String getContext()
public java.lang.String toString()
toString
in class java.lang.Object