Show / Hide Table of Contents

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
Implements
IMessage<Distribution.Types.Exemplar>
IMessage
System.IEquatable<Distribution.Types.Exemplar>
IDeepCloneable<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()
Namespace: Google.Api
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
public Exemplar()

Exemplar(Distribution.Types.Exemplar)

Declaration
public Exemplar(Distribution.Types.Exemplar other)
Parameters
Type Name Description
Distribution.Types.Exemplar other

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
Type Description
RepeatedField<Any>

Descriptor

Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Type Description
MessageDescriptor

Parser

Declaration
public static MessageParser<Distribution.Types.Exemplar> Parser { get; }
Property Value
Type Description
MessageParser<Distribution.Types.Exemplar>

Timestamp

The observation (sampling) time of the above value.

Declaration
public Timestamp Timestamp { get; set; }
Property Value
Type Description
Timestamp

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
IMessage.CalculateSize()

Clone()

Declaration
public Distribution.Types.Exemplar Clone()
Returns
Type Description
Distribution.Types.Exemplar
Implements
IDeepCloneable<T>.Clone()

Equals(Distribution.Types.Exemplar)

Declaration
public bool Equals(Distribution.Types.Exemplar other)
Parameters
Type Name Description
Distribution.Types.Exemplar other
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
Type Name Description
Distribution.Types.Exemplar other
Implements
IMessage<T>.MergeFrom(T)

MergeFrom(CodedInputStream)

Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Type Name Description
CodedInputStream input
Implements
IMessage.MergeFrom(CodedInputStream)

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

WriteTo(CodedOutputStream)

Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Type Name Description
CodedOutputStream output
Implements
IMessage.WriteTo(CodedOutputStream)

Explicit Interface Implementations

IMessage.Descriptor

Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Type Description
MessageDescriptor
Implements
IMessage.Descriptor
Back to top