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

时间:2023-11-01 16:18:49

响应示例

状态码: 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" : "BCS.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.html