Class MetricDescriptor.Types.MetricDescriptorMetadata

public sealed class MetricDescriptorMetadata : Protobuf.IMessage<MetricDescriptor.Types.MetricDescriptorMetadata>, Protobuf.IBufferMessage

Additional annotations that can be used to guide the usage of a metric.

Inheritance

Object > MetricDescriptor.Types.MetricDescriptorMetadata

Namespace

Google.Api

Assembly

Google.Api.CommonProtos.dll

Constructors

MetricDescriptorMetadata()

public MetricDescriptorMetadata()

MetricDescriptorMetadata(MetricDescriptor.Types.MetricDescriptorMetadata)

public MetricDescriptorMetadata(MetricDescriptor.Types.MetricDescriptorMetadata other)
Parameter
TypeNameDescription
MetricDescriptor.Types.MetricDescriptorMetadataother

Fields

IngestDelayFieldNumber

public const int IngestDelayFieldNumber = 3

Field number for the "ingest_delay" field.

Field Value
TypeDescription
Int32

LaunchStageFieldNumber

public const int LaunchStageFieldNumber = 1

Field number for the "launch_stage" field.

Field Value
TypeDescription
Int32

SamplePeriodFieldNumber

public const int SamplePeriodFieldNumber = 2

Field number for the "sample_period" field.

Field Value
TypeDescription
Int32

Properties

Descriptor

public static Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
TypeDescription
Protobuf.Reflection.MessageDescriptor

IngestDelay

public Protobuf.WellKnownTypes.Duration IngestDelay { get; set; }

The delay of data points caused by ingestion. Data points older than this age are guaranteed to be ingested and available to be read, excluding data loss due to errors.

Property Value
TypeDescription
Protobuf.WellKnownTypes.Duration

LaunchStage

[Obsolete]
public LaunchStage LaunchStage { get; set; }

Deprecated. Must use the [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] instead.

Property Value
TypeDescription
LaunchStage

Parser

public static Protobuf.MessageParser<MetricDescriptor.Types.MetricDescriptorMetadata> Parser { get; }
Property Value
TypeDescription
Protobuf.MessageParser<MetricDescriptor.Types.MetricDescriptorMetadata>

SamplePeriod

public Protobuf.WellKnownTypes.Duration SamplePeriod { get; set; }

The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.

Property Value
TypeDescription
Protobuf.WellKnownTypes.Duration

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

Clone()

public MetricDescriptor.Types.MetricDescriptorMetadata Clone()
Returns
TypeDescription
MetricDescriptor.Types.MetricDescriptorMetadata

Equals(MetricDescriptor.Types.MetricDescriptorMetadata)

public bool Equals(MetricDescriptor.Types.MetricDescriptorMetadata other)
Parameter
TypeNameDescription
MetricDescriptor.Types.MetricDescriptorMetadataother
Returns
TypeDescription
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
TypeNameDescription
Objectother
Returns
TypeDescription
Boolean

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
Int32

MergeFrom(MetricDescriptor.Types.MetricDescriptorMetadata)

public void MergeFrom(MetricDescriptor.Types.MetricDescriptorMetadata other)
Parameter
TypeNameDescription
MetricDescriptor.Types.MetricDescriptorMetadataother

MergeFrom(Protobuf.CodedInputStream)

public void MergeFrom(Protobuf.CodedInputStream input)
Parameter
TypeNameDescription
Protobuf.CodedInputStreaminput

ToString()

public override string ToString()
Returns
TypeDescription
String

WriteTo(Protobuf.CodedOutputStream)

public void WriteTo(Protobuf.CodedOutputStream output)
Parameter
TypeNameDescription
Protobuf.CodedOutputStreamoutput

Implements