Reference documentation and code samples for the Google API Common Protos Client class MonitoredResourceMetadata.
Auxiliary metadata for aMonitoredResourceobject.MonitoredResourceobjects 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.
Generated from protobuf messagegoogle.api.MonitoredResourceMetadata
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 }
Output only. A map of user-defined metadata labels.
getSystemLabels
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 }
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 }
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google API Common Protos Client - Class MonitoredResourceMetadata (4.12.3)\n\nVersion latestkeyboard_arrow_down\n\n- [4.12.3 (latest)](/php/docs/reference/common-protos/latest/Api.MonitoredResourceMetadata)\n- [4.12.2](/php/docs/reference/common-protos/4.12.2/Api.MonitoredResourceMetadata)\n- [4.11.0](/php/docs/reference/common-protos/4.11.0/Api.MonitoredResourceMetadata)\n- [4.10.0](/php/docs/reference/common-protos/4.10.0/Api.MonitoredResourceMetadata)\n- [4.9.0](/php/docs/reference/common-protos/4.9.0/Api.MonitoredResourceMetadata)\n- [4.8.3](/php/docs/reference/common-protos/4.8.3/Api.MonitoredResourceMetadata) \nReference documentation and code samples for the Google API Common Protos Client class MonitoredResourceMetadata.\n\nAuxiliary metadata for a [MonitoredResource](/php/docs/reference/common-protos/latest/Api.MonitoredResource)\nobject. [MonitoredResource](/php/docs/reference/common-protos/latest/Api.MonitoredResource) objects contain the\nminimum set of information to uniquely identify a monitored resource\ninstance. There is some other useful auxiliary metadata. Monitoring and\nLogging use an ingestion pipeline to extract metadata for cloud resources of\nall types, and store the metadata in this message.\n\nGenerated from protobuf message `google.api.MonitoredResourceMetadata`\n\nNamespace\n---------\n\nGoogle \\\\ Api\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSystemLabels\n\nOutput only. Values for predefined system metadata labels.\n\nSystem labels are a kind of metadata extracted by Google, including\n\"machine_image\", \"vpc\", \"subnet_id\",\n\"security_group\", \"name\", etc.\nSystem label values can be only strings, Boolean values, or a list of\nstrings. For example:\n{ \"name\": \"my-test-instance\",\n\"security_group\": \\[\"a\", \"b\", \"c\"\\],\n\"spot_instance\": false }\n\n### hasSystemLabels\n\n### clearSystemLabels\n\n### setSystemLabels\n\nOutput only. Values for predefined system metadata labels.\n\nSystem labels are a kind of metadata extracted by Google, including\n\"machine_image\", \"vpc\", \"subnet_id\",\n\"security_group\", \"name\", etc.\nSystem label values can be only strings, Boolean values, or a list of\nstrings. For example:\n{ \"name\": \"my-test-instance\",\n\"security_group\": \\[\"a\", \"b\", \"c\"\\],\n\"spot_instance\": false }\n\n### getUserLabels\n\nOutput only. A map of user-defined metadata labels.\n\n### setUserLabels\n\nOutput only. A map of user-defined metadata labels."]]