更新时间:2023.04.11 16:29:04
调用GetDatumLinekeys接口获取性能监控指标基准线。
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 |
| 请求名称。 |
Version | String | 是 |
| 请求版本。 |
ServiceName : apmplus_openapi Region : cn-beijing X-App-Ids : xxx Content-Type : application/json
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
common | object of common | 是 | - | 通用参数。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
aid | i64 | 是 |
| 应用ID。 |
site_type | string | 是 |
| 站点类型。 |
env | string | 是 |
| 环境,填""时为全部。 |
os | string | 否 |
| 服务类型,可选值为webpro,app,minipro。 |
user | string | 否 |
| 用户名。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
data | array of data | - | 指标基准线。 |
error_msg | string | - | 错误信息,成功为空。 |
error_no | i32 |
| 错误码,成功为0。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
name | string |
| 指标名。 |
key | string |
| 指标key。 |
unit | string |
| 指标值单位。 |
down_base_line | double |
| 指标基准线下限。 |
up_base_line | double |
| 指标基准线上限。 |
is_little_better | boolean |
| 指标值是否越小越好。 |
POST https://open.volcengineapi.com/?Action=GetDatumLinekeys&Version=2022-10-12 { "common": { "aid": 12345, "site_type": "web", "env": "online", "os": "webpro", "user": "test_user" } }
{ "error_msg": "", "data": [ { "down_base_line": 1000, "is_little_better": true, "name": "累计布局偏移(CLS)", "ev_type": "", "unit": "ms", "num_type": "", "up_base_line": 2000, "key": "browser_perf.cls.avg" } ], "error_no": 0 }
{ "ResponseMetadata": { "RequestId": "201806041104200100100232280022D30", "Action": "GetDatumLinekeys", "Version": "2022-10-12", "Service": "***", "Region": "cn-north-1", "Error": { "Code": "200000", "Message": "参数异常" } } }