Class Measure.MeasureLong
java.lang.Object
io.opencensus.stats.Measure
io.opencensus.stats.Measure.MeasureLong
- Direct Known Subclasses:
AutoValue_Measure_MeasureLong
- Enclosing class:
Measure
-
Nested Class Summary
Nested classes/interfaces inherited from class Measure
Measure.MeasureDouble, Measure.MeasureLong -
Field Summary
Fields inherited from class Measure
NAME_MAX_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Measure.MeasureLongConstructs a newMeasure.MeasureLong.abstract StringDetailed description of the measure, used in documentation.abstract StringgetName()Name of measure, as aString.abstract StringgetUnit()The units in whichMeasurevalues are measured.<T> Tmatch(Function<? super Measure.MeasureDouble, T> p0, Function<? super Measure.MeasureLong, T> p1, Function<? super Measure, T> defaultFunction) Applies the given match function to the underlying data type.
-
Constructor Details
-
MeasureLong
MeasureLong()
-
-
Method Details
-
create
Constructs a newMeasure.MeasureLong.- Parameters:
name- name ofMeasure. Suggested format:<web_host>/<path>.description- description ofMeasure.unit- unit ofMeasure.- Returns:
- a
MeasureLong. - Since:
- 0.8
-
match
public <T> T match(Function<? super Measure.MeasureDouble, T> p0, Function<? super Measure.MeasureLong, T> p1, Function<? super Measure, T> defaultFunction) Description copied from class:MeasureApplies the given match function to the underlying data type. -
getName
-
getDescription
Description copied from class:MeasureDetailed description of the measure, used in documentation.- Specified by:
getDescriptionin classMeasure
-
getUnit
Description copied from class:MeasureThe units in whichMeasurevalues are measured.The suggested grammar for a unit is as follows:
- Expression = Component { "." Component } {"/" Component };
- Component = [ PREFIX ] UNIT [ Annotation ] | Annotation | "1";
- Annotation = "{" NAME "}" ;
For example, string “MBy{transmitted}/ms” stands for megabytes per milliseconds, and the annotation transmitted inside {} is just a comment of the unit.
-