云监控服务 CES-查询指定监控视图信息:响应示例

时间:2025-02-12 15:02:42

响应示例

状态码: 200

OK

{  "widget_id" : "wg1234567890123456789012",  "metrics" : [ {    "namespace" : "SYS.E CS ",    "dimensions" : {      "name" : "instance_id",      "filter_type" : "specific_instances",      "values" : [ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ]    },    "metric_name" : "cpu_util",    "alias" : [ "cpuutilalias" ],    "extra_info" : {      "origin_metric_name" : "cpu_util",      "metric_prefix" : "cpu",      "metric_type" : "type",      "custom_proc_name" : "app.sh"    }  } ],  "view" : "view",  "metric_display_mode" : "single",  "threshold" : 0.7,  "threshold_enabled" : true,  "title" : "widget_title",  "properties" : {    "filter" : "topN",    "topN" : 100,    "order" : "desc"  },  "location" : {    "left" : 0,    "top" : 0,    "width" : 4,    "height" : 3  },  "unit" : "%",  "create_time" : 1111111111111}
support.huaweicloud.com/api-ces/ShowWidget.html