class MonitoredResourceMetadata extends Message

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. Google Stackdriver Monitoring & Logging uses an ingestion pipeline to extract metadata for cloud resources of all types , and stores the metadata in this message.

Generated from protobuf message google.api.MonitoredResourceMetadata

Methods

__construct(array $data = NULL)

Constructor.

Struct
getSystemLabels()

Output only. Values for predefined system metadata labels.

$this
setSystemLabels(Struct $var)

Output only. Values for predefined system metadata labels.

MapField
getUserLabels()

Output only. A map of user-defined metadata labels.

$this
setUserLabels(array|MapField $var)

Output only. A map of user-defined metadata labels.

Details

at line 66
__construct(array $data = NULL)

Constructor.

Parameters

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

@type \Google\Protobuf\Struct $system_labels
      Output only. Values for predefined system metadata labels.
      System labels are a kind of metadata extracted by Google Stackdriver.
      Stackdriver determines what system labels are useful and how to obtain
      their values. Some examples: "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 }
@type array|\Google\Protobuf\Internal\MapField $user_labels
      Output only. A map of user-defined metadata labels.

}

at line 86
Struct getSystemLabels()

Output only. Values for predefined system metadata labels.

System labels are a kind of metadata extracted by Google Stackdriver. Stackdriver determines what system labels are useful and how to obtain their values. Some examples: "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 }

Generated from protobuf field .google.protobuf.Struct system_labels = 1;

Return Value

Struct

at line 107
$this setSystemLabels(Struct $var)

Output only. Values for predefined system metadata labels.

System labels are a kind of metadata extracted by Google Stackdriver. Stackdriver determines what system labels are useful and how to obtain their values. Some examples: "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 }

Generated from protobuf field .google.protobuf.Struct system_labels = 1;

Parameters

Struct $var

Return Value

$this

at line 121
MapField getUserLabels()

Output only. A map of user-defined metadata labels.

Generated from protobuf field map<string, string> user_labels = 2;

Return Value

MapField

at line 133
$this setUserLabels(array|MapField $var)

Output only. A map of user-defined metadata labels.

Generated from protobuf field map<string, string> user_labels = 2;

Parameters

array|MapField $var

Return Value

$this