public sealed class MetricValue : IMessage<MetricValue>, IEquatable<MetricValue>, IDeepCloneable<MetricValue>, IBufferMessage, IMessage
Represents a single metric value.
Inheritance
System.Object > MetricValueImplements
Google.Protobuf.IMessage<MetricValue>, System.IEquatable<MetricValue>, Google.Protobuf.IDeepCloneable<MetricValue>, Google.Protobuf.IBufferMessage, Google.Protobuf.IMessageNamespace
Google.Cloud.ServiceControl.V1Assembly
Google.Cloud.ServiceControl.V1.dll
Constructors
MetricValue()
public MetricValue()
MetricValue(MetricValue)
public MetricValue(MetricValue other)
Parameter | |
---|---|
Name | Description |
other | MetricValue |
Properties
BoolValue
public bool BoolValue { get; set; }
A boolean value.
Property Value | |
---|---|
Type | Description |
System.Boolean |
DistributionValue
public Distribution DistributionValue { get; set; }
A distribution value.
Property Value | |
---|---|
Type | Description |
Distribution |
DoubleValue
public double DoubleValue { get; set; }
A double precision floating point value.
Property Value | |
---|---|
Type | Description |
System.Double |
EndTime
public Timestamp EndTime { get; set; }
The end of the time period over which this metric value's measurement applies.
Property Value | |
---|---|
Type | Description |
Google.Protobuf.WellKnownTypes.Timestamp |
Int64Value
public long Int64Value { get; set; }
A signed 64-bit integer value.
Property Value | |
---|---|
Type | Description |
System.Int64 |
Labels
public MapField<string, string> Labels { get; }
The labels describing the metric value. See comments on [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels] for the overriding relationship. Note that this map must not contain monitored resource labels.
Property Value | |
---|---|
Type | Description |
Google.Protobuf.Collections.MapField<System.String, System.String> |
StartTime
public Timestamp StartTime { get; set; }
The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details.
Property Value | |
---|---|
Type | Description |
Google.Protobuf.WellKnownTypes.Timestamp |
StringValue
public string StringValue { get; set; }
A text string value.
Property Value | |
---|---|
Type | Description |
System.String |
ValueCase
public MetricValue.ValueOneofCase ValueCase { get; }
Property Value | |
---|---|
Type | Description |
MetricValue.ValueOneofCase |