Package io.opencensus.implcore.stats
Class MetricUtils
- java.lang.Object
-
- io.opencensus.implcore.stats.MetricUtils
-
final class MetricUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static Function<Aggregation,MetricDescriptor.Type>
AGGREGATION_TYPE_DEFAULT_FUNCTION
(package private) static java.lang.String
COUNT_UNIT
private static Function<java.lang.Object,MetricDescriptor.Type>
TYPE_CUMULATIVE_DISTRIBUTION_FUNCTION
private static Function<java.lang.Object,MetricDescriptor.Type>
TYPE_CUMULATIVE_DOUBLE_FUNCTION
private static Function<java.lang.Object,MetricDescriptor.Type>
TYPE_CUMULATIVE_INT64_FUNCTION
private static Function<java.lang.Object,MetricDescriptor.Type>
TYPE_GAUGE_DOUBLE_FUNCTION
private static Function<java.lang.Object,MetricDescriptor.Type>
TYPE_GAUGE_INT64_FUNCTION
private static Function<java.lang.Object,MetricDescriptor.Type>
TYPE_UNRECOGNIZED_FUNCTION
-
Constructor Summary
Constructors Modifier Constructor Description private
MetricUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static MetricDescriptor.Type
getType(Measure measure, Aggregation aggregation)
private static java.lang.String
getUnit(Measure measure, Aggregation aggregation)
(package private) static java.util.List<LabelValue>
tagValuesToLabelValues(java.util.List<TagValue> tagValues)
(package private) static java.util.Map<java.lang.String,java.lang.String>
toStringAttachments(java.util.Map<java.lang.String,AttachmentValue> attachments)
(package private) static MetricDescriptor
viewToMetricDescriptor(View view)
-
-
-
Field Detail
-
COUNT_UNIT
static final java.lang.String COUNT_UNIT
- See Also:
- Constant Field Values
-
TYPE_CUMULATIVE_DOUBLE_FUNCTION
private static final Function<java.lang.Object,MetricDescriptor.Type> TYPE_CUMULATIVE_DOUBLE_FUNCTION
-
TYPE_CUMULATIVE_INT64_FUNCTION
private static final Function<java.lang.Object,MetricDescriptor.Type> TYPE_CUMULATIVE_INT64_FUNCTION
-
TYPE_CUMULATIVE_DISTRIBUTION_FUNCTION
private static final Function<java.lang.Object,MetricDescriptor.Type> TYPE_CUMULATIVE_DISTRIBUTION_FUNCTION
-
TYPE_GAUGE_DOUBLE_FUNCTION
private static final Function<java.lang.Object,MetricDescriptor.Type> TYPE_GAUGE_DOUBLE_FUNCTION
-
TYPE_GAUGE_INT64_FUNCTION
private static final Function<java.lang.Object,MetricDescriptor.Type> TYPE_GAUGE_INT64_FUNCTION
-
TYPE_UNRECOGNIZED_FUNCTION
private static final Function<java.lang.Object,MetricDescriptor.Type> TYPE_UNRECOGNIZED_FUNCTION
-
AGGREGATION_TYPE_DEFAULT_FUNCTION
private static final Function<Aggregation,MetricDescriptor.Type> AGGREGATION_TYPE_DEFAULT_FUNCTION
-
-
Method Detail
-
viewToMetricDescriptor
@Nullable static MetricDescriptor viewToMetricDescriptor(View view)
-
getType
static MetricDescriptor.Type getType(Measure measure, Aggregation aggregation)
-
getUnit
private static java.lang.String getUnit(Measure measure, Aggregation aggregation)
-
tagValuesToLabelValues
static java.util.List<LabelValue> tagValuesToLabelValues(java.util.List<TagValue> tagValues)
-
toStringAttachments
static java.util.Map<java.lang.String,java.lang.String> toStringAttachments(java.util.Map<java.lang.String,AttachmentValue> attachments)
-
-