Queries log monitoring metrics.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
PageNumber | integer | No | The number of the page to return. | 1 |
PageSize | integer | No | The number of entries to return on each page. Default value: 10 | 10 |
SearchValue | string | No | The keyword that is used to search for log monitoring metrics. Fuzzy match is supported. | test |
GroupId | long | No | The ID of the application group. | 123456 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "01E90080-4300-4FAA-B9AE-161956BC350D",
"Success": true,
"Code": "200",
"Message": "successful",
"PageSize": 10,
"PageNumber": 1,
"Total": 15,
"LogMonitorList": [
{
"ValueFilterRelation": "and",
"SlsLogstore": "testSlS****",
"MetricName": "cpu_total",
"GroupId": 12345,
"LogId": 12345,
"SlsRegionId": "cn-hangzhou",
"GmtCreate": 1577766395000,
"SlsProject": "sls-project-test****",
"ValueFilter": [
{
"Key": "hostName",
"Value": "portal",
"Operator": "contain"
}
]
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ParameterInvalid | Illegal parameters. | - |
403 | AccessForbidden | User not authorized to operate on the specified resource. | - |
404 | ResourceNotFound | The specified resource is not found. | The specified resource is not found. |
500 | InternalError | The request processing has failed due to some unknown error. | - |
For a list of error codes, visit the Service error codes.