Reference documentation and code samples for the Cloud Logging V2 API class Google::Api::MonitoredResourceMetadata.
Auxiliary metadata for a MonitoredResource
object. MonitoredResource objects 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.
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:
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:
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:
[[["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-08-28 UTC."],[],[],null,["# Cloud Logging V2 API - Class Google::Api::MonitoredResourceMetadata (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Api-MonitoredResourceMetadata)\n- [1.2.1](/ruby/docs/reference/google-cloud-logging-v2/1.2.1/Google-Api-MonitoredResourceMetadata)\n- [1.1.0](/ruby/docs/reference/google-cloud-logging-v2/1.1.0/Google-Api-MonitoredResourceMetadata)\n- [1.0.1](/ruby/docs/reference/google-cloud-logging-v2/1.0.1/Google-Api-MonitoredResourceMetadata)\n- [0.13.0](/ruby/docs/reference/google-cloud-logging-v2/0.13.0/Google-Api-MonitoredResourceMetadata)\n- [0.12.2](/ruby/docs/reference/google-cloud-logging-v2/0.12.2/Google-Api-MonitoredResourceMetadata)\n- [0.11.0](/ruby/docs/reference/google-cloud-logging-v2/0.11.0/Google-Api-MonitoredResourceMetadata)\n- [0.10.1](/ruby/docs/reference/google-cloud-logging-v2/0.10.1/Google-Api-MonitoredResourceMetadata)\n- [0.9.0](/ruby/docs/reference/google-cloud-logging-v2/0.9.0/Google-Api-MonitoredResourceMetadata)\n- [0.8.1](/ruby/docs/reference/google-cloud-logging-v2/0.8.1/Google-Api-MonitoredResourceMetadata)\n- [0.7.0](/ruby/docs/reference/google-cloud-logging-v2/0.7.0/Google-Api-MonitoredResourceMetadata)\n- [0.6.0](/ruby/docs/reference/google-cloud-logging-v2/0.6.0/Google-Api-MonitoredResourceMetadata)\n- [0.5.6](/ruby/docs/reference/google-cloud-logging-v2/0.5.6/Google-Api-MonitoredResourceMetadata) \nReference documentation and code samples for the Cloud Logging V2 API class Google::Api::MonitoredResourceMetadata.\n\nAuxiliary metadata for a [MonitoredResource](/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Api-MonitoredResource \"Google::Api::MonitoredResource (class)\")\nobject. [MonitoredResource](/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Api-MonitoredResource \"Google::Api::MonitoredResource (class)\") 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\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #system_labels\n\n def system_labels() -\u003e ::Google::Protobuf::Struct\n\n**Returns**\n\n- ([::Google::Protobuf::Struct](./Google-Protobuf-Struct)) ---\n\n Output only. Values for predefined system metadata labels.\n System labels are a kind of metadata extracted by Google, including\n \"machine_image\", \"vpc\", \"subnet_id\",\n \"security_group\", \"name\", etc.\n System label values can be only strings, Boolean values, or a list of\n strings. For example: \n\n { \"name\": \"my-test-instance\",\n \"security_group\": [\"a\", \"b\", \"c\"],\n \"spot_instance\": false }\n\n### #system_labels=\n\n def system_labels=(value) -\u003e ::Google::Protobuf::Struct\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Struct](./Google-Protobuf-Struct)) ---\n\n Output only. Values for predefined system metadata labels.\n System labels are a kind of metadata extracted by Google, including\n \"machine_image\", \"vpc\", \"subnet_id\",\n \"security_group\", \"name\", etc.\n System label values can be only strings, Boolean values, or a list of\n strings. For example: \n\n { \"name\": \"my-test-instance\",\n \"security_group\": [\"a\", \"b\", \"c\"],\n \"spot_instance\": false }\n\n**Returns**\n\n- ([::Google::Protobuf::Struct](./Google-Protobuf-Struct)) ---\n\n Output only. Values for predefined system metadata labels.\n System labels are a kind of metadata extracted by Google, including\n \"machine_image\", \"vpc\", \"subnet_id\",\n \"security_group\", \"name\", etc.\n System label values can be only strings, Boolean values, or a list of\n strings. For example: \n\n { \"name\": \"my-test-instance\",\n \"security_group\": [\"a\", \"b\", \"c\"],\n \"spot_instance\": false }\n\n### #user_labels\n\n def user_labels() -\u003e ::Google::Protobuf::Map{::String =\u003e ::String}\n\n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::String}) --- Output only. A map of user-defined metadata labels.\n\n### #user_labels=\n\n def user_labels=(value) -\u003e ::Google::Protobuf::Map{::String =\u003e ::String}\n\n**Parameter**\n\n- **value** (::Google::Protobuf::Map{::String =\\\u003e ::String}) --- Output only. A map of user-defined metadata labels. \n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::String}) --- Output only. A map of user-defined metadata labels."]]