列出所有的日志导出任务
接口描述
POST
/monitor/ts/data/v1/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/telemetryStations/:telemetry_station_name/exportLog/products/:product_name/exportJob/list
列出所有的日志导出任务
请求头(Request Header)
请求参数(Request Parameters)
名称 | 类型 | 必须 | 位置 | 默认值 | 取值范围 | 描述 |
---|---|---|---|---|---|---|
subscription_name | string | 是 | path | - | - | 订阅 |
resource_group_name | string | 是 | path | - | - | 资源组 |
zone | string | 是 | path | - | - | 可用区 |
telemetry_station_name | string | 是 | path | - | - | 监控空间 |
product_name | string | 是 | query | - | - | 子产品键 |
请求体(Request Body)
名称 | 类型 | 描述 |
---|---|---|
page_size | int | 每页大小 |
offset | string | 偏移量 |
请求示例(Request Example)
curl -XPOST 'https://monitor.sensecoreapi.tech/monitor/ts/data/v1/subscriptions/224bae0c-a98f-41f5-b5d3-9f54aa98455f/resourceGroups/default/zones/cn-sh-01z/telemetryStations/ts-user-a95a77a3-961f-43fa-9577-d5c8a2cb0149/exportLog/products/product.lepton-acp-new/exportJob/list' \
-H 'Content-Type: application/json' \
-d '{"page_size":10,"offset":"0"}'
响应(Response)
名称 | 类型 | 描述 |
---|---|---|
export_jobs | []ExportJob | 导出任务列表 |
page_size | int | 每页大小 |
offset | string | 偏移量 |
其中,ExportJob
如下:
名称 | 类型 | 描述 |
---|---|---|
export_job_id | string | 导出任务id |
log_file_name | string | 导出文件名 |
log_file_type | string | 导出文件格式 |
export_status | string | 导出文件状态 |
download_uri | string | 下载地址 |
log_type | string | 日志类型:普通日志;操作日志 |
create_time | string | 创建时间 |
complete_time | string | 完成时间 |
bucket | string | oss存储桶 |
log_file_size | string | 日志大小 |
响应示例(Response Example)
{
"export_jobs": [
{
"export_job_id": "wbx2p3KlqYP4meP7vcyzrlZYovPmOaB1",
"log_file_name": "product.lepton-acp-new_1712663122.json",
"log_file_type": "json",
"export_status": "wait",
"download_uri": "",
"log_type": "product.lepton-acp-new",
"create_time": "2024-04-09T11:45:22.863681Z",
"complete_time": "0001-01-01T00:00:00Z",
"bucket": "test1138",
"log_file_size": 0
},
{
"export_job_id": "ez2xnplWgMaVN3Bq2I24KlZ9q8OER03v",
"log_file_name": "product.lepton-acp-new_1712662801.json",
"log_file_type": "json",
"export_status": "complete",
"download_uri": "https://aoss.cn-sh-01.sensecoreapi-oss.tech/test1138/sensecore/telemetry/log/product.lepton-acp-new_1712662801.tar.gz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=1EC2B934FC52480FA172C7D1F88BB9A8%2F20240409%2Fcn-sh-01%2Fs3%2Faws4_request&X-Amz-Date=20240409T114850Z&X-Amz-Expires=259200&X-Amz-SignedHeaders=host&X-Amz-Signature=53aa7f61db3e224cd2e3ac922f89742509ef94dd3f61d776d09de00f083e1d42",
"log_type": "product.lepton-acp-new",
"create_time": "2024-04-09T11:40:01.219818Z",
"complete_time": "2024-04-09T11:48:50.294469Z",
"bucket": "test1138",
"log_file_size": 172078943
},
{
"export_job_id": "XgWbZqrwpAl60oRQgfZPK2DMQP1O0j3n",
"log_file_name": "product.lepton-acp-new_1712662893.json",
"log_file_type": "json",
"export_status": "wait",
"download_uri": "",
"log_type": "product.lepton-acp-new",
"create_time": "2024-04-09T11:41:33.258063Z",
"complete_time": "0001-01-01T00:00:00Z",
"bucket": "test1138",
"log_file_size": 0
}
],
"page_size": 10,
"offset": "0",
"total": "3"
}