Class MonitoredResourceDescriptor
An object that describes the schema of a [MonitoredResource][google.api.MonitoredResource] object using a
type name and a set of labels. For example, the monitored resource
descriptor for Google Compute Engine VM instances has a type of
"gce_instance"
and specifies the use of the labels "instance_id"
and
"zone"
to identify particular VM instances.
Different APIs can support different monitored resource types. APIs generally
provide a list
method that returns the monitored resource descriptors used
by the API.
Inheritance
System.Object
MonitoredResourceDescriptor
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
Syntax
public sealed class MonitoredResourceDescriptor : IMessage<MonitoredResourceDescriptor>, IMessage, IEquatable<MonitoredResourceDescriptor>, IDeepCloneable<MonitoredResourceDescriptor>
Constructors
MonitoredResourceDescriptor()
Declaration
public MonitoredResourceDescriptor()
MonitoredResourceDescriptor(MonitoredResourceDescriptor)
Declaration
public MonitoredResourceDescriptor(MonitoredResourceDescriptor other)
Parameters
Fields
DescriptionFieldNumber
Field number for the "description" field.
Declaration
public const int DescriptionFieldNumber = 3
Field Value
Type |
Description |
System.Int32 |
|
DisplayNameFieldNumber
Field number for the "display_name" field.
Declaration
public const int DisplayNameFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
LabelsFieldNumber
Field number for the "labels" field.
Declaration
public const int LabelsFieldNumber = 4
Field Value
Type |
Description |
System.Int32 |
|
LaunchStageFieldNumber
Field number for the "launch_stage" field.
Declaration
public const int LaunchStageFieldNumber = 7
Field Value
Type |
Description |
System.Int32 |
|
NameFieldNumber
Field number for the "name" field.
Declaration
public const int NameFieldNumber = 5
Field Value
Type |
Description |
System.Int32 |
|
TypeFieldNumber
Field number for the "type" field.
Declaration
public const int TypeFieldNumber = 1
Field Value
Type |
Description |
System.Int32 |
|
Properties
Description
Optional. A detailed description of the monitored resource type that might
be used in documentation.
Declaration
public string Description { get; set; }
Property Value
Type |
Description |
System.String |
|
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
DisplayName
Optional. A concise name for the monitored resource type that might be
displayed in user interfaces. It should be a Title Cased Noun Phrase,
without any article or other determiners. For example,
"Google Cloud SQL Database"
.
Declaration
public string DisplayName { get; set; }
Property Value
Type |
Description |
System.String |
|
Labels
Required. A set of labels used to describe instances of this monitored
resource type. For example, an individual Google Cloud SQL database is
identified by values for the labels "database_id"
and "zone"
.
Declaration
public RepeatedField<LabelDescriptor> Labels { get; }
Property Value
LaunchStage
Optional. The launch stage of the monitored resource definition.
Declaration
public LaunchStage LaunchStage { get; set; }
Property Value
Name
Optional. The resource name of the monitored resource descriptor:
"projects/{project_id}/monitoredResourceDescriptors/{type}"
where
{type} is the value of the type
field in this object and
{project_id} is a project ID that provides API-specific context for
accessing the type. APIs that do not use project information can use the
resource name format "monitoredResourceDescriptors/{type}"
.
Declaration
public string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
Parser
Declaration
public static MessageParser<MonitoredResourceDescriptor> Parser { get; }
Property Value
Type
Required. The monitored resource type. For example, the type
"cloudsql_database"
represents databases in Google Cloud SQL.
The maximum length of this value is 256 characters.
Declaration
public string Type { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Implements
Clone()
Declaration
public MonitoredResourceDescriptor Clone()
Returns
Implements
Equals(MonitoredResourceDescriptor)
Declaration
public bool Equals(MonitoredResourceDescriptor other)
Parameters
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(MonitoredResourceDescriptor)
Declaration
public void MergeFrom(MonitoredResourceDescriptor other)
Parameters
Implements
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Implements
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
WriteTo(CodedOutputStream)
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Implements
Explicit Interface Implementations
IMessage.Descriptor
Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Implements