You need to enable JavaScript to run this app.
导航
获取调度日志列表
最近更新时间:2024.07.05 16:58:26首次发布时间:2023.02.15 19:04:54

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

请求说明

  • 请求方式:GET
  • 请求地址:https://veefedge.volcengineapi.com/?Action=ListCronJobTaskLog&Version=2021-04-30

请求参数

Query

参数类型是否必选示例值描述
ActionStringListCronJobTaskLog公共参数。该参数表示接口名称。取值:ListCronJobTaskLog
VersionString2021-04-30公共参数。该参数表示接口版本。取值:2021-04-30。
domainStringbc36dc7c50b9f125d186df****函数ID
job_nameStringcron1任务名称。名称需同时满足如下要求:
  • 每个函数的任务名不能有重复
  • 长度不超过128个字符
search_typeStringcluster_name搜索类型
  • 节点名称(cluster_name)
  • 返回信息关键字(response_msg)
searchStringfetch搜索内容
pageInt321页码
limitInt3210每页条数
order_byInt322数据顺序,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=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 请求失败。关于错误码的更多信息,参见错误码