调用GetWarningEventMetric接口获取Warning事件的Top N应用列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
sae:GetWarningEventMetric |
none |
*全部资源
|
无 | 无 |
请求语法
GET /pop/v1/sam/getWarningEventMetric HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
地域 ID。 |
cn-hangzhou |
| StartTime |
integer |
是 |
查询起始时间。 |
1675823135951 |
| EndTime |
integer |
是 |
查询终止时间。 |
1675824035951 |
| Limit |
integer |
是 |
返回数据条数,取值范围[0,100]。 |
10 |
| AppSource |
string |
否 |
SAE 应用类型。
|
micro_service |
| CpuStrategy |
string |
否 |
CPU 分配策略。
|
always |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| Message |
string |
附加信息。取值说明如下:
|
success |
| RequestId |
string |
请求 ID。 |
3B763F98-0BA2-5C23-B6B8-558568D2**** |
| Data |
array<object> |
应用信息列表。 |
|
|
object |
应用信息。 |
||
| AppId |
string |
应用 ID。 |
7171a6ca-d1cd-4928-8642-7d5cfe69**** |
| Name |
string |
应用名称。 |
test |
| RegionId |
string |
命名空间 ID。 |
cn-hangzhou |
| WarningCount |
integer |
Warning 事件数量。 |
10 |
| Code |
string |
接口状态或 POP 错误码。取值说明如下:
|
200 |
| Success |
boolean |
获取应用列表。取值说明如下:
|
true |
示例
正常返回示例
JSON格式
{
"Message": "success",
"RequestId": "3B763F98-0BA2-5C23-B6B8-558568D2****",
"Data": [
{
"AppId": "7171a6ca-d1cd-4928-8642-7d5cfe69****",
"Name": "test",
"RegionId": "cn-hangzhou",
"WarningCount": 10
}
],
"Code": "200",
"Success": true
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter.NotEmpty | You must specify the parameter %s. | 不合法的参数:%s不能为空。 |
| 400 | InvalidParameter.Obviously | The specified parameter is invalid {%s}. | 不合法的参数{%s}。 |
| 400 | InvalidParameter.WithMessage | The parameter is invalid {%s}: %s | 不合法的参数{%s}:%s。 |
| 400 | Sls.NotExist | SLS configuration does not exist. | sls资源不存在 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。