区块链服务 BCS-查询服务实例监控数据:响应示例

时间:2024-07-03 14:20:50

响应示例

状态码: 200

Ok

{
  "metrics" : [ {
    "metric" : {
      "namespace" : "abc",
      "metricName" : "def",
      "dimensions" : [ {
        "name" : "ghi",
        "value" : "lmn"
      } ]
    },
    "dataPoints" : [ {
      "timestamp" : "1467892800000",
      "unit" : "Percent",
      "statistics" : [ {
        "statistic" : "maximum",
        "value" : "23"
      } ]
    } ]
  } ]
}

状态码: 400

Bad Request

{
  "error_code" : " BCS .4001108",
  "error_msg" : "metric names is wrong"
}

状态码: 401

Unauthorized

{
  "error_code" : "B CS .4010401",
  "error_msg" : "Incorrect token or token resolution failed"
}

状态码: 403

Forbidden

{
  "error_code" : "BCS.4030403",
  "error_msg" : "No permissions to request this method"
}

状态码: 404

Not Found

{
  "error_code" : "BCS.4040404",
  "error_msg" : "Not Found:the url is not found"
}

状态码: 500

InternalServerError

{
  "error_code" : "BCS.5000500",
  "error_msg" : "Internal Server Error"
}
support.huaweicloud.com/api-bcs/ListBcsMetric_3.html