Modifier and Type | Method and Description |
---|---|
static SinglePointMetric |
counter(MetricKey metricKey,
double value,
Instant timestamp) |
static SinglePointMetric |
counter(MetricKey metricKey,
double value,
Instant timestamp,
Instant startTimestamp) |
static SinglePointMetric |
counter(MetricKey metricKey,
long value,
Instant timestamp) |
static SinglePointMetric |
counter(MetricKey metricKey,
long value,
Instant timestamp,
Instant startTimestamp) |
static SinglePointMetric |
create(MetricKey metricKey,
io.opencensus.proto.metrics.v1.MetricDescriptor.Type type,
io.opencensus.proto.metrics.v1.Point point) |
static SinglePointMetric |
create(MetricKey metricKey,
io.opencensus.proto.metrics.v1.MetricDescriptor.Type type,
io.opencensus.proto.metrics.v1.Point point,
com.google.protobuf.Timestamp startTimestamp) |
static SinglePointMetric |
gauge(MetricKey metricKey,
double value,
Instant timestamp) |
static SinglePointMetric |
gauge(MetricKey metricKey,
long value,
Instant timestamp) |
MetricKey |
key() |
SerializedMetric |
serialize(Context context) |
public SerializedMetric serialize(Context context)
public static SinglePointMetric create(MetricKey metricKey, io.opencensus.proto.metrics.v1.MetricDescriptor.Type type, io.opencensus.proto.metrics.v1.Point point, com.google.protobuf.Timestamp startTimestamp)
public static SinglePointMetric create(MetricKey metricKey, io.opencensus.proto.metrics.v1.MetricDescriptor.Type type, io.opencensus.proto.metrics.v1.Point point)
public static SinglePointMetric gauge(MetricKey metricKey, long value, Instant timestamp)
public static SinglePointMetric gauge(MetricKey metricKey, double value, Instant timestamp)
public static SinglePointMetric counter(MetricKey metricKey, long value, Instant timestamp, Instant startTimestamp)
public static SinglePointMetric counter(MetricKey metricKey, long value, Instant timestamp)
public static SinglePointMetric counter(MetricKey metricKey, double value, Instant timestamp, Instant startTimestamp)
public static SinglePointMetric counter(MetricKey metricKey, double value, Instant timestamp)