T - The type for values of this metric.
NOTE: This is a Preview API and is subject to change so it should not be used in production.public interface SdkMetric<T>
| Modifier and Type | Method and Description |
|---|---|
Set<MetricCategory> |
categories() |
static <T> SdkMetric<T> |
create(String name,
Class<T> clzz,
MetricLevel level,
MetricCategory c1,
MetricCategory... cn)
Create a new metric.
|
static <T> SdkMetric<T> |
create(String name,
Class<T> clzz,
MetricLevel level,
Set<MetricCategory> categories)
Create a new metric.
|
MetricLevel |
level() |
String |
name() |
Class<T> |
valueClass() |
String name()
Set<MetricCategory> categories()
MetricLevel level()
static <T> SdkMetric<T> create(String name, Class<T> clzz, MetricLevel level, MetricCategory c1, MetricCategory... cn)
T - The type of the object containing the associated value for this metric.name - The name of this metric.clzz - The class of the object containing the associated value for this metric.c1 - A category associated with this metric.cn - Additional categories associated with this metric.IllegalArgumentException - If a metric of the same name has already been created.static <T> SdkMetric<T> create(String name, Class<T> clzz, MetricLevel level, Set<MetricCategory> categories)
T - The type of the object containing the associated value for this metric.name - The name of this metric.clzz - The class of the object containing the associated value for this metric.categories - The categories associated with this metric.IllegalArgumentException - If a metric of the same name has already been created.Copyright © 2020. All rights reserved.