Class MonitoredResourceMetadata
Auxiliary metadata for a [MonitoredResource][google.api.MonitoredResource] object.
[MonitoredResource][google.api.MonitoredResource] objects contain the minimum set of information to
uniquely identify a monitored resource instance. There is some other useful
auxiliary metadata. Monitoring and Logging use an ingestion
pipeline to extract metadata for cloud resources of all types, and store
the metadata in this message.
Inheritance
System.Object
MonitoredResourceMetadata
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Google.Api.CommonProtos.dll
public sealed class MonitoredResourceMetadata : IMessage<MonitoredResourceMetadata>, IMessage, IEquatable<MonitoredResourceMetadata>, IDeepCloneable<MonitoredResourceMetadata>
Constructors
Declaration
public MonitoredResourceMetadata()
Declaration
public MonitoredResourceMetadata(MonitoredResourceMetadata other)
Parameters
Fields
Field number for the "system_labels" field.
Declaration
public const int SystemLabelsFieldNumber = 1
Field Value
Type |
Description |
System.Int32 |
|
Field number for the "user_labels" field.
Declaration
public const int UserLabelsFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
Properties
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Declaration
public static MessageParser<MonitoredResourceMetadata> Parser { get; }
Property Value
Output only. Values for predefined system metadata labels.
System labels are a kind of metadata extracted by Google, including
"machine_image", "vpc", "subnet_id",
"security_group", "name", etc.
System label values can be only strings, Boolean values, or a list of
strings. For example:
{ "name": "my-test-instance",
"security_group": ["a", "b", "c"],
"spot_instance": false }
Declaration
public Struct SystemLabels { get; set; }
Property Value
Output only. A map of user-defined metadata labels.
Declaration
public MapField<string, string> UserLabels { get; }
Property Value
Type |
Description |
MapField<System.String, System.String> |
|
Methods
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Implements
Declaration
public MonitoredResourceMetadata Clone()
Returns
Implements
Declaration
public bool Equals(MonitoredResourceMetadata other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<T>.Equals(T)
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)
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public void MergeFrom(MonitoredResourceMetadata other)
Parameters
Implements
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Implements
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Implements
Explicit Interface Implementations
Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Implements