API 请求成功时,HTTP 响应状态码是 200。
API 请求失败时,会出现以下任意一个情况:
如果响应出现异常,响应正文的内容如下。此时您可根据 Error
结构体中的 CodeN
,Code
和 Message
等提示信息排查问题原因。
{ "ResponseMetadata": { "RequestId": "20230921203134511034E384BB822811ED", "Action": "GetOlapData", "Version": "2023-08-31", "Service": "cloud_detect", "Region": "cn-north-1" }, "Result": [ { "groups": [ { "key": "client.province.name", "value": "\"山西\"" } ], "measures": [ { "key": "success.proportion", "value": "1.0425431069446676" } ] }, { "groups": [ { "key": "client.province.name", "value": "\"河北\"" } ], "measures": [ { "key": "success.proportion", "value": "23.14745390518418" } ] }, { "groups": [ { "key": "client.province.name", "value": "\"河南\"" } ], "measures": [ { "key": "success.proportion", "value": "58.575512148642204" } ] } ] }
{ "ResponseMetadata": { "RequestId": "20230922103026C1CCF76DCF84B3F04922", "Action": "GetOlapData", "Version": "2023-08-31", "Service": "cloud_detect", "Region": "cn-north-1", "Error": { "Code": "Bad Request", "Message": "invalid request, filed _elem2 not valid, field Key min_len rule failed, current value: 0" } } }