Class Distribution.Types.Exemplar (2.2.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 2.2.0keyboard_arrow_down
public sealed class Exemplar : Protobuf.IMessage<Distribution.Types.Exemplar>, Protobuf.IBufferMessage
Exemplars are example points that may be used to annotate aggregated
distribution values. They are metadata that gives information about a
particular value added to a Distribution bucket, such as a trace ID that
was active when a value was added. They may contain further information,
such as a example values and timestamps, origin, etc.
Inheritance
Object >
Distribution.Types.Exemplar
Namespace
Google.Api
Assembly
Google.Api.CommonProtos.dll
Constructors
Exemplar()
Exemplar(Distribution.Types.Exemplar)
public Exemplar(Distribution.Types.Exemplar other)
Fields
AttachmentsFieldNumber
public const int AttachmentsFieldNumber = 3
Field number for the "attachments" field.
Field Value
Type
Description
Int32
TimestampFieldNumber
public const int TimestampFieldNumber = 2
Field number for the "timestamp" field.
Field Value
Type
Description
Int32
ValueFieldNumber
public const int ValueFieldNumber = 1
Field number for the "value" field.
Field Value
Type
Description
Int32
Properties
Attachments
public Protobuf.Collections.RepeatedField<Protobuf.WellKnownTypes.Any> Attachments { get; }
Contextual information about the example value. Examples are:
Trace: type.googleapis.com/google.monitoring.v3.SpanContext
Literal string: type.googleapis.com/google.protobuf.StringValue
Labels dropped during aggregation:
type.googleapis.com/google.monitoring.v3.DroppedLabels
There may be only a single attachment of any given message type in a
single exemplar, and this is enforced by the system.
Descriptor
public static Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Parser
public static Protobuf.MessageParser<Distribution.Types.Exemplar> Parser { get; }
Timestamp
public Protobuf.WellKnownTypes.Timestamp Timestamp { get; set; }
The observation (sampling) time of the above value.
Value
public double Value { get; set; }
Value of the exemplar point. This value determines to which bucket the
exemplar belongs.
Property Value
Type
Description
Double
Methods
CalculateSize()
public int CalculateSize()
Returns
Type
Description
Int32
Clone()
public Distribution.Types.Exemplar Clone()
Equals(Distribution.Types.Exemplar)
public bool Equals(Distribution.Types.Exemplar other)
Equals(Object)
public override bool Equals(object other)
Parameter
Name
Description
other
Object
GetHashCode()
public override int GetHashCode()
Returns
Type
Description
Int32
MergeFrom(Distribution.Types.Exemplar)
public void MergeFrom(Distribution.Types.Exemplar other)
public void MergeFrom(Protobuf.CodedInputStream input)
ToString()
public override string ToString()
Returns
Type
Description
String
WriteTo(Protobuf.CodedOutputStream)
public void WriteTo(Protobuf.CodedOutputStream output)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-01 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-01 UTC."],[],[],null,[]]