Class Exemplar
java.lang.Object
io.opencensus.metrics.data.Exemplar
- Direct Known Subclasses:
AutoValue_Exemplar
An example point that may be used to annotate aggregated distribution values, associated with a
histogram bucket.
- Since:
- 0.20
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Exemplarcreate(double value, Timestamp timestamp, Map<String, AttachmentValue> attachments) Creates anExemplar.abstract Map<String, AttachmentValue> Returns the contextual information about the example value.abstract TimestampReturns the time that thisExemplar's value was recorded.abstract doublegetValue()Returns value of theExemplarpoint.
-
Constructor Details
-
Exemplar
Exemplar()
-
-
Method Details
-
getValue
public abstract double getValue()Returns value of theExemplarpoint.- Returns:
- value of the
Exemplarpoint. - Since:
- 0.20
-
getTimestamp
-
getAttachments
Returns the contextual information about the example value.- Returns:
- the contextual information about the example value.
- Since:
- 0.20
-
create
public static Exemplar create(double value, Timestamp timestamp, Map<String, AttachmentValue> attachments) Creates anExemplar.- Parameters:
value- value of theExemplarpoint.timestamp- the time that thisExemplar's value was recorded.attachments- the contextual information about the example value.- Returns:
- an
Exemplar. - Since:
- 0.20
-