public class Sample extends Object implements Element<ValueType<?>>, Serializable
| Constructor and Description |
|---|
Sample(Timestamp timestamp,
Context context,
Resource resource,
String name,
MetricType type,
ValueType<?> value) |
Sample(Timestamp timestamp,
Context context,
Resource resource,
String name,
MetricType type,
ValueType<?> value,
Map<String,String> attributes) |
Sample(Timestamp timestamp,
Resource resource,
String name,
MetricType type,
ValueType<?> value) |
Sample(Timestamp timestamp,
Resource resource,
String name,
MetricType type,
ValueType<?> value,
Map<String,String> attributes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Map<String,String> |
getAttributes() |
Context |
getContext() |
String |
getName() |
Resource |
getResource() |
Timestamp |
getTimestamp() |
MetricType |
getType() |
ValueType<?> |
getValue() |
int |
hashCode() |
String |
toString() |
public Sample(Timestamp timestamp, Resource resource, String name, MetricType type, ValueType<?> value)
public Sample(Timestamp timestamp, Resource resource, String name, MetricType type, ValueType<?> value, Map<String,String> attributes)
public Sample(Timestamp timestamp, Context context, Resource resource, String name, MetricType type, ValueType<?> value)
public Timestamp getTimestamp()
getTimestamp in interface Element<ValueType<?>>public Context getContext()
public Resource getResource()
getResource in interface Element<ValueType<?>>public MetricType getType()
Copyright © 2017. All rights reserved.