Beispiel für eine Nutzlast von Google Monitor
Snapshot der Entität, wenn ein Ereignis in Google Monitor auftritt
Beispiel für eine von Google Monitor gesendete Nutzlast
{
"incident":
{
"incident_id": "0.lsnwib31sglo",
"resource_id": "",
"resource_name": "deductive-reach-207607 VM Instance",
"resource": {"type": "gce_instance","labels": {}},
"resource_type_display_name": "VM Instance",
"metric":{"type": "compute.googleapis.com/instance/cpu/usage_time", "displayName": "CPU usage"},
"started_at": 1602000626,
"policy_name": "CPU Usage",
"condition_name": "VM Instance - CPU usage for deductive-reach-207607 by label.instance_name [SUM]",
"condition":
{
"name":"projects/deductive-reach-207607/alertPolicies/4416258801778683037/conditions/4416258801778682826",
"displayName":"VM Instance - CPU usage for deductive-reach-207607 by label.instance_name [SUM]",
"conditionThreshold":
{
"filter":"metric.type=\"compute.googleapis.com/instance/cpu/usage_time\" resource.type=\"gce_instance\" resource.label.\"project_id\"=\"deductive-reach-207607\"",
"aggregations":[{"alignmentPeriod":"60s", "perSeriesAligner":"ALIGN_RATE", "crossSeriesReducer":"REDUCE_SUM", "groupByFields":["metric.label.instance_name"]}],
"comparison":"COMPARISON_GT",
"thresholdValue":0.6,
"duration":"300s",
"trigger":{"count":1}}
},
"url": "https://console.cloud.google.com/monitoring/alerting/incidents/0.lsnwib31sglo?project=deductive-reach-207607",
"state": "open",
"ended_at": 1602000987,
"summary": "CPU usage for deductive-reach-207607 VM Instance with metric labels {instance_name=gke-yuval-cluster-default-pool-085540ab-3ejv} returned to normal with a value of 0.279."
},
"version": "1.2"
}