MonitoredResourceMetadata

MonitoredResource 对象的辅助元数据。MonitoredResource 对象包含用于唯一地标识受监控资源实例的最小信息集。还有一些其他的有用辅助元数据。Monitoring 和 Logging 使用提取流水线提取所有类型的云端资源的元数据,并将元数据存储在此消息中。

JSON 表示法
{
  "systemLabels": {
    object
  },
  "userLabels": {
    string: string,
    ...
  }
}
字段
systemLabels

object (Struct format)

仅限输出。预定义系统元数据标签的值。系统标签是 Google 提取的一种元数据,包括“machine_image”、“vpc”、“subnet_id”、“security_group”、“name”等。系统标签值只能是字符串、布尔值或字符串列表。例如:

{ "name": "my-test-instance",
  "security_group": ["a", "b", "c"],
  "spot_instance": false }
userLabels

map (key: string, value: string)

仅限输出。用户定义的元数据标签的映射。