class MonitoredResourceDescriptor extends Message

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.

Generated from protobuf message google.api.MonitoredResourceDescriptor

Methods

__construct(array $data = NULL)

Constructor.

string
getName()

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}".

$this
setName(string $var)

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}".

string
getType()

Required. The monitored resource type. For example, the type "cloudsql_database" represents databases in Google Cloud SQL.

$this
setType(string $var)

Required. The monitored resource type. For example, the type "cloudsql_database" represents databases in Google Cloud SQL.

string
getDisplayName()

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".

$this
setDisplayName(string $var)

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".

string
getDescription()

Optional. A detailed description of the monitored resource type that might be used in documentation.

$this
setDescription(string $var)

Optional. A detailed description of the monitored resource type that might be used in documentation.

RepeatedField
getLabels()

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".

$this
setLabels(LabelDescriptor[]|RepeatedField $var)

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".

Details

at line 100
__construct(array $data = NULL)

Constructor.

Parameters

array $data { Optional. Data for populating the Message object.

@type string $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}"`.
@type string $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.
@type string $display_name
      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"`.
@type string $description
      Optional. A detailed description of the monitored resource type that might
      be used in documentation.
@type \Google\Api\LabelDescriptor[]|\Google\Protobuf\Internal\RepeatedField $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"`.

}

at line 116
string getName()

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}".

Generated from protobuf field string name = 5;

Return Value

string

at line 133
$this setName(string $var)

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}".

Generated from protobuf field string name = 5;

Parameters

string $var

Return Value

$this

at line 149
string getType()

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.

Generated from protobuf field string type = 1;

Return Value

string

at line 163
$this setType(string $var)

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.

Generated from protobuf field string type = 1;

Parameters

string $var

Return Value

$this

at line 180
string getDisplayName()

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".

Generated from protobuf field string display_name = 2;

Return Value

string

at line 195
$this setDisplayName(string $var)

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".

Generated from protobuf field string display_name = 2;

Parameters

string $var

Return Value

$this

at line 210
string getDescription()

Optional. A detailed description of the monitored resource type that might be used in documentation.

Generated from protobuf field string description = 3;

Return Value

string

at line 223
$this setDescription(string $var)

Optional. A detailed description of the monitored resource type that might be used in documentation.

Generated from protobuf field string description = 3;

Parameters

string $var

Return Value

$this

at line 239
RepeatedField getLabels()

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".

Generated from protobuf field repeated .google.api.LabelDescriptor labels = 4;

Return Value

RepeatedField

at line 253
$this setLabels(LabelDescriptor[]|RepeatedField $var)

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".

Generated from protobuf field repeated .google.api.LabelDescriptor labels = 4;

Parameters

LabelDescriptor[]|RepeatedField $var

Return Value

$this