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
public MetricDescriptorMetadata()
public MetricDescriptorMetadata(MetricDescriptor.Types.MetricDescriptorMetadata other)
Fields
public const int IngestDelayFieldNumber = 3
Field number for the "ingest_delay" field.
Field Value |
---|
Type | Description |
Int32 | |
public const int LaunchStageFieldNumber = 1
Field number for the "launch_stage" field.
Field Value |
---|
Type | Description |
Int32 | |
public const int SamplePeriodFieldNumber = 2
Field number for the "sample_period" field.
Field Value |
---|
Type | Description |
Int32 | |
Properties
public static Protobuf.Reflection.MessageDescriptor Descriptor { get; }
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.
[Obsolete]
public LaunchStage LaunchStage { get; set; }
Deprecated. Must use the [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] instead.
public static Protobuf.MessageParser<MetricDescriptor.Types.MetricDescriptorMetadata> Parser { get; }
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.
Methods
public int CalculateSize()
Returns |
---|
Type | Description |
Int32 | |
public MetricDescriptor.Types.MetricDescriptorMetadata Clone()
public bool Equals(MetricDescriptor.Types.MetricDescriptorMetadata other)
public override bool Equals(object other)
Parameter |
---|
Name | Description |
other | Object
|
public override int GetHashCode()
Returns |
---|
Type | Description |
Int32 | |
public void MergeFrom(MetricDescriptor.Types.MetricDescriptorMetadata other)
public void MergeFrom(Protobuf.CodedInputStream input)
public override string ToString()
public void WriteTo(Protobuf.CodedOutputStream output)