Class Distribution.Types.Exemplar
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
System.Object
Distribution.Types.Exemplar
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Google.Api.CommonProtos.dll
Syntax
public sealed class Exemplar : IMessage<Distribution.Types.Exemplar>, IMessage, IEquatable<Distribution.Types.Exemplar>, IDeepCloneable<Distribution.Types.Exemplar>
Constructors
Exemplar()
Declaration
Exemplar(Distribution.Types.Exemplar)
Declaration
public Exemplar(Distribution.Types.Exemplar other)
Parameters
Fields
AttachmentsFieldNumber
Field number for the "attachments" field.
Declaration
public const int AttachmentsFieldNumber = 3
Field Value
Type |
Description |
System.Int32 |
|
TimestampFieldNumber
Field number for the "timestamp" field.
Declaration
public const int TimestampFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
ValueFieldNumber
Field number for the "value" field.
Declaration
public const int ValueFieldNumber = 1
Field Value
Type |
Description |
System.Int32 |
|
Properties
Attachments
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.
Declaration
public RepeatedField<Any> Attachments { get; }
Property Value
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Parser
Declaration
public static MessageParser<Distribution.Types.Exemplar> Parser { get; }
Property Value
Timestamp
The observation (sampling) time of the above value.
Declaration
public Timestamp Timestamp { get; set; }
Property Value
Value
Value of the exemplar point. This value determines to which bucket the
exemplar belongs.
Declaration
public double Value { get; set; }
Property Value
Type |
Description |
System.Double |
|
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Implements
Clone()
Declaration
public Distribution.Types.Exemplar Clone()
Returns
Implements
Equals(Distribution.Types.Exemplar)
Declaration
public bool Equals(Distribution.Types.Exemplar other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<T>.Equals(T)
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
MergeFrom(Distribution.Types.Exemplar)
Declaration
public void MergeFrom(Distribution.Types.Exemplar other)
Parameters
Implements
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Implements
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
WriteTo(CodedOutputStream)
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Implements
Explicit Interface Implementations
IMessage.Descriptor
Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Implements