查询自定义过滤器值
接口描述
GET
/monitor/ts/data/v1/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/telemetryStations/:telemetry_station_name/logStream/products/:product_name/customFilterValues
查询自定义过滤器值
请求头(Request Header)
请求参数(Request Parameters)
| 名称 | 类型 | 必须 | 位置 | 默认值 | 取值范围 | 描述 |
|---|---|---|---|---|---|---|
| subscription_name | string | 是 | path | - | - | 订阅 |
| resource_group_name | string | 是 | path | - | - | 资源组 |
| zone | string | 是 | path | - | - | 可用区 |
| telemetry_station_name | string | 是 | path | - | - | 监控空间 |
| product_name | string | 是 | path | - | - | 产品名 |
请求体(Request Body)
| 名称 | 类型 | 描述 |
|---|---|---|
| key | string | 操作日志查询的键 |
| resource_id | []string | 资源ID |
| custom_filter | CustomFilters | 表示日志查询的自定义筛选器 |
| custom_filters | []CustomFilters | 自定义筛选器数组 |
其中,CustomFilters如下:
| 名称 | 类型 | 描述 |
|---|---|---|
| key | string | 筛选键,例如gpu |
| values | string | 筛选值,例如[0,1,2] |
请求示例(Request Example)
curl -XGET 'https://monitor.sensecoreapi.tech/monitor/ts/data/v1/subscriptions/224bae0c-a98f-41f5-b5d3-9f54aa98455f/resourceGroups/default/zones/cn-sh-01z/telemetryStations/ts-user-45a3a9e8-eae7-4b42-906b-27242d2c3ee4/logStream/products/product.lepton-acp-new/customFilterValues' \
-H 'Content-Type: application/json' \
-d '{"key":"Attributes.k8s.job.name","resource_id":["bdbe3cf3-eb3f-11ee-aa82-fa4cc5eb8e29"],"custom_filters":[]}'
响应(Response)
| 名称 | 类型 | 描述 |
|---|---|---|
| values | []string | 筛选值 |
响应示例(Response Example)
{"values":["app-byqesyjp","app-61fx81fy","app-36k49xzn"]}