You need to enable JavaScript to run this app.
导航

获取调度日志列表

最近更新时间2023.08.14 16:44:52

首次发布时间2023.02.15 19:04:54

本接口用于获取调度日志的列表。

请求参数

名称位置类型是否必填示例值描述
ActionQueryStringListCronJobTaskLog要执行的操作。取值:ListCronJobTaskLog
domainQueryStringtest-sparrow.test.test函数域名
job_nameBodyStringcron1任务名称。名称需同时满足如下要求:
  • 每个函数的任务名不能有重复
  • 长度不超过128个字符
search_typeQueryStringcluster_name搜索类型
  • 节点名称(cluster_name)
  • 返回信息关键字(response_msg)
searchQueryStringfetch搜索内容
pageQueryInt321页码
limitQueryInt3210每页条数
order_byQueryInt322数据顺序,1为降序,2为升序(默认按照create_time的升序排列)

返回数据

名称类型示例值描述
logs[]TaskLog见下文说明调度日志列表
total_countInt641调度日志总数

TaskLog

名称类型示例值描述
job_nameStringcron1任务名称。名称需同时满足如下要求:
  • 每个函数的任务名不能有重复
  • 长度不超过128个字符
cron_expressionString*/1 * * * *执行表达式。
  • 支持cron表达式(不支持秒级触发)
parameterStringcron执行参数
cluster_nameStringtest-local集群名称
cluster_aliasString电信集群别名
job_stateInt641任务状态
descriptionStringtest任务描述
uuidString2xuls***调度唯一标志符
scheduler_stateInt641调度状态
response_msgStringthis is a msg返回信息
create_timeInt641638326159创建时间
update_timeInt641638326159更新时间

请求示例

GET https://veefedge.volcengineapi.com/?Action=ListCronJobTaskLog
&domain=test-sparrow.test.test
&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
    }
}