本接口用于获取调度日志的列表。
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | ListCronJobTaskLog | 公共参数。该参数表示接口名称。取值:ListCronJobTaskLog |
| Version | String | 是 | 2021-04-30 | 公共参数。该参数表示接口版本。取值:2021-04-30。 |
| veef_id | String | 是 | bc36dc7c50b9f125d186df**** | 函数ID |
| job_name | String | 是 | cron1 | 任务名称。名称需同时满足如下要求:
|
| search_type | String | 否 | cluster_name | 搜索类型
|
| search | String | 否 | fetch | 搜索内容 |
| page | Int32 | 否 | 1 | 页码 |
| limit | Int32 | 否 | 10 | 每页记录数。默认为 50 条。最大为 50 条。 |
| order_by | Int32 | 否 | 2 | 数据顺序,1为降序,2为升序(默认按照create_time的升序排列) |
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| logs | []TaskLog | 见下文说明 | 调度日志列表 |
| total_count | Int64 | 1 | 调度日志总数 |
TaskLog
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| job_name | String | cron1 | 任务名称。名称需同时满足如下要求:
|
| cron_expression | String | */1 * * * * | 执行表达式。
|
| parameter | String | cron | 执行参数 |
| cluster_name | String | test-local | 集群名称 |
| cluster_alias | String | 电信 | 集群别名 |
| job_state | Int64 | 1 | 任务状态 |
| description | String | test | 任务描述 |
| uuid | String | 2xuls*** | 调度唯一标志符 |
| scheduler_state | Int64 | 1 | 调度状态 |
| response_msg | String | this is a msg | 返回信息 |
| create_time | Int64 | 1638326159 | 创建时间 |
| update_time | Int64 | 1638326159 | 更新时间 |
GET https://veefedge.volcengineapi.com/?Action=ListCronJobTaskLog &veef_id=bc36dc7c50b9f125d186df**** &job_name=cron1 &uuid=2xl2l4u**** &<公共请求参数>
正常返回示例
{ "ResponseMetadata": { "RequestId": "20211207213413010225146063****", "Action": "ListCronJobTaskLog", "Version": "2021-04-30", "Service": "veefedge", "Region": "cn-north-1" }, "Result": { "logs": [ { "job_name": "cron1", "cron_expression": "*/30 * * * *", "event": "cron", "parameter": "cron_all", "cluster_name": "test-local", "cluster_alias": "电信", "job_state": 1, "uuid": "2xl2****", "scheduler_state": 6, "response_msg": "", "create_time": 1639625401, "update_time": 1639625401 } ], "total_count": 1 } }
如果响应正文中包含 Error 字段,则表示 API 请求失败。关于错误码的更多信息,参见错误码。