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 |
public __construct( $data = NULL) Constructor.
|
public getDescription() Optional. A detailed description of the monitored resource type that might be used in documentation. Generated from protobuf field string description = 3;
|
public 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,
Generated from protobuf field string display_name = 2;
|
public 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 Generated from protobuf field repeated .google.api.LabelDescriptor labels = 4;
|
public getLaunchStage() Optional. The launch stage of the monitored resource definition. Generated from protobuf field .google.api.LaunchStage launch_stage = 7;
|
public getName() Optional. The resource name of the monitored resource descriptor:
Generated from protobuf field string name = 5;
|
public getType() Required. The monitored resource type. For example, the type
For a list of types, see Monitored resource types and Logging resource types. Generated from protobuf field string type = 1;
|
public setDescription( $var) Optional. A detailed description of the monitored resource type that might be used in documentation. Generated from protobuf field string description = 3;
|
public setDisplayName( $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,
Generated from protobuf field string display_name = 2;
|
public setLabels( $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 Generated from protobuf field repeated .google.api.LabelDescriptor labels = 4;
|
public setLaunchStage( $var) Optional. The launch stage of the monitored resource definition. Generated from protobuf field .google.api.LaunchStage launch_stage = 7;
|
public setName( $var) Optional. The resource name of the monitored resource descriptor:
Generated from protobuf field string name = 5;
|
public setType( $var) Required. The monitored resource type. For example, the type
For a list of types, see Monitored resource types and Logging resource types. Generated from protobuf field string type = 1;
|
Properties |
protected $description = '' Optional. A detailed description of the monitored resource type that might be used in documentation. Generated from protobuf field string description = 3; |
protected $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,
Generated from protobuf field string display_name = 2; |
protected $launch_stage = 0 Optional. The launch stage of the monitored resource definition. Generated from protobuf field .google.api.LaunchStage launch_stage = 7; |
protected $name = '' Optional. The resource name of the monitored resource descriptor:
Generated from protobuf field string name = 5; |
protected $type = '' Required. The monitored resource type. For example, the type
For a list of types, see Monitored resource types and Logging resource types. Generated from protobuf field string type = 1; |
Methods |
Properties |
private $labels = NULL 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 Generated from protobuf field repeated .google.api.LabelDescriptor labels = 4; |