查询特定日志条目周围的日志
查询特定日志条目周围的日志
Path Parameters
Possible values: <= 63 characters
订阅名
Possible values: <= 63 characters
资源组名
Possible values: <= 63 characters
区域
Possible values: <= 63 characters
监控空间名
产品名称:子产品键
Request Body required
- Array [
- ]
日志id
最新条目数
历史条目数
资源id
custom_filter object[]
自定义筛选(如任务名称、容器名称筛选)
自定义查询的键
自定义查询的值,可以是中文或自定义值
筛选内容(影响body)
option_filters object
表示操作的筛选器
操作日志查询的键
操作日志查询的值,中文;或传入操作日志查询的值
排序,ACS:正序;DESC:倒序
告警日志等级:INFO;DEBUG;WARN;ERROR;FATAL
- 200
- default
OK
Schema
- Array [
- ]
hits object[]
日志内容
标识符
时间戳
严重程度文本
严重程度数字
主体
resource object
表示一个资源
资源的名称
资源的本地标识符
资源的资源管理器标识符
资源的类型
attributes object
属性
{
"total": "string",
"hits": [
{
"id": "string",
"log_time": "2024-12-05T02:41:59.637Z",
"severity_text": "string",
"severity_number": "string",
"body": "string",
"resource": {
"name": "string",
"native_id": "string",
"resource_id": "string",
"resource_type": "string"
},
"attributes": {}
}
]
}
Default error response
Schema
- Array [
- ]
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details object[]
A list of messages that carry the error details. There is a common set of message types for APIs to use.
The type of the serialized message.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}