区块链服务 BCS-查询服务实例告警信息:响应示例

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

响应示例

状态码: 200

Ok

{
  "events" : [ {
    "annotations" : {
      "alarm_probableCause_zh_cn" : "可能原因",
      "message" : "告警详情",
      "alarm_fix_suggestion_zh_cn" : "修复建议"
    },
    "attach_rule" : { },
    "ends_at" : 0,
    "id" : "6775161208461480000",
    "metadata" : {
      "event_type" : "alarm",
      "event_severity" : "Major",
      "resource_type" : "blockchain",
      "event_name" : "test",
      "resource_id" : "d2e2deba-797d-872f-516c-9f96870be67e",
      "resource_provider" : " BCS "
    },
    "starts_at" : 16377362908000,
    "timeout" : 60000
  } ]
}

状态码: 400

Bad Request

{
  "error_code" : "B CS .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/ListBcsEvents_2.html