应用运维管理 AOM-查询时序数据:响应示例

时间:2023-11-24 09:53:29

响应示例

状态码: 200

OK 请求执行完成。

{
  "samples" : [ {
    "sample" : {
      "namespace" : "PAAS.CONTAINER",
      "metric_name" : "aom_process_cpu_usage",
      "dimensions" : [ {
        "name" : "appName",
        "value" : "aomApp"
      } ]
    },
    "data_points" : [ {
      "timestamp" : "1694673300000",
      "unit" : "Percent",
      "statistics" : [ {
        "statistic" : "sum",
        "value" : "23"
      } ]
    } ]
  } ]
}

状态码: 400

BadRequest 非法请求。建议直接修改该请求,不要重试该请求。

{
  "error_code" : " AOM .04008001",
  "error_msg" : "please check request param",
  "error_type" : "BAD_REQUEST"
}
support.huaweicloud.com/api-aom/ListSample.html