Show / Hide Table of Contents

Class MetricDescriptor.Types.MetricDescriptorMetadata

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

Inheritance
System.Object
MetricDescriptor.Types.MetricDescriptorMetadata
Implements
IMessage<MetricDescriptor.Types.MetricDescriptorMetadata>
IMessage
System.IEquatable<MetricDescriptor.Types.MetricDescriptorMetadata>
IDeepCloneable<MetricDescriptor.Types.MetricDescriptorMetadata>
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 MetricDescriptorMetadata : IMessage<MetricDescriptor.Types.MetricDescriptorMetadata>, IMessage, IEquatable<MetricDescriptor.Types.MetricDescriptorMetadata>, IDeepCloneable<MetricDescriptor.Types.MetricDescriptorMetadata>

Constructors

MetricDescriptorMetadata()

Declaration
public MetricDescriptorMetadata()

MetricDescriptorMetadata(MetricDescriptor.Types.MetricDescriptorMetadata)

Declaration
public MetricDescriptorMetadata(MetricDescriptor.Types.MetricDescriptorMetadata other)
Parameters
Type Name Description
MetricDescriptor.Types.MetricDescriptorMetadata other

Fields

IngestDelayFieldNumber

Field number for the "ingest_delay" field.

Declaration
public const int IngestDelayFieldNumber = 3
Field Value
Type Description
System.Int32

LaunchStageFieldNumber

Field number for the "launch_stage" field.

Declaration
public const int LaunchStageFieldNumber = 1
Field Value
Type Description
System.Int32

SamplePeriodFieldNumber

Field number for the "sample_period" field.

Declaration
public const int SamplePeriodFieldNumber = 2
Field Value
Type Description
System.Int32

Properties

Descriptor

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

IngestDelay

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.

Declaration
public Duration IngestDelay { get; set; }
Property Value
Type Description
Duration

LaunchStage

Deprecated. Please use the MetricDescriptor.launch_stage instead. The launch stage of the metric definition.

Declaration
[Obsolete]
public LaunchStage LaunchStage { get; set; }
Property Value
Type Description
LaunchStage

Parser

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

SamplePeriod

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.

Declaration
public Duration SamplePeriod { get; set; }
Property Value
Type Description
Duration

Methods

CalculateSize()

Declaration
public int CalculateSize()
Returns
Type Description
System.Int32
Implements
IMessage.CalculateSize()

Clone()

Declaration
public MetricDescriptor.Types.MetricDescriptorMetadata Clone()
Returns
Type Description
MetricDescriptor.Types.MetricDescriptorMetadata
Implements
IDeepCloneable<T>.Clone()

Equals(MetricDescriptor.Types.MetricDescriptorMetadata)

Declaration
public bool Equals(MetricDescriptor.Types.MetricDescriptorMetadata other)
Parameters
Type Name Description
MetricDescriptor.Types.MetricDescriptorMetadata 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(MetricDescriptor.Types.MetricDescriptorMetadata)

Declaration
public void MergeFrom(MetricDescriptor.Types.MetricDescriptorMetadata other)
Parameters
Type Name Description
MetricDescriptor.Types.MetricDescriptorMetadata 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