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