查詢定時調(diào)度
更新時間:
本文介紹如何通過控制臺或命令行工具查看單個定時調(diào)度或定時調(diào)度列表。
使用控制臺查看定時調(diào)度
- 在左側(cè)導(dǎo)航欄,單擊流程。
- 在流程列表中單擊目標(biāo)流程的流程名稱。
單擊定時調(diào)度頁簽。
您可以查看定時調(diào)度列表。
使用命令行工具查看定時調(diào)度
在使用命令行工具創(chuàng)建定時調(diào)度前,您需要安裝和配置阿里云命令行工具CLI。詳細(xì)信息,請參見什么是阿里云CLI。
查看單個定時調(diào)度。
(可選)執(zhí)行以下命令查看該API的請求參數(shù)。
aliyun fnf DescribeSchedule help
預(yù)期輸出:
Alibaba Cloud Command Line Interface Version 3.0.45 Product: fnf (FunctionFlow) Link: https://xxxxxxxx.html Parameters: --FlowName String Required --ScheduleName String Required --RequestId String Optional
執(zhí)行以下命令查看單個定時調(diào)度。
aliyun fnf DescribeSchedule --FlowName test --ScheduleName schedule-test
預(yù)期輸出:
{ "CreatedTime": "2024-06-26T03:36:57Z", "CronExpression": "@every 1m", "Description": "updated description", "Enable": false, "LastModifiedTime": "2024-06-26T06:00:14Z", "Payload": "{\"key\":\"value\"}", "RequestId": "adb0fcdf-b10c-a554-8462-d23ca781fbd2", "ScheduleId": "b888a48f-229d-4b35-adc6-5c63a37cf3b1", "ScheduleName": "schedule-test" }
查看定時調(diào)度列表。
可選:執(zhí)行以下命令查看該API的請求參數(shù)。
aliyun fnf ListSchedules help
預(yù)期輸出:
Alibaba Cloud Command Line Interface Version 3.0.45 Product: fnf (FunctionFlow) Link: https://xxxxxx.html Parameters: --FlowName String Required --Limit Integer Optional --NextToken String Optional --RequestId String Optional
執(zhí)行以下命令查看定時調(diào)度列表。
aliyun fnf ListSchedules --FlowName test
預(yù)期輸出:
{ "RequestId": "d228d843-eb10-55b4-706e-f250fd313928", "Schedules": [ { "CreatedTime": "2024-06-26T03:25:06Z", "CronExpression": "0 * * * * *", "Description": "", "Enable": true, "LastModifiedTime": "2024-06-26T03:25:06Z", "Payload": "", "ScheduleId": "b95701b4-77b9-42a4-b84d-988683373ef8", "ScheduleName": "asd" }, { "CreatedTime": "2024-06-26T03:29:04Z", "CronExpression": "0 * * * * *", "Description": "", "Enable": true, "LastModifiedTime": "2024-06-26T03:29:04Z", "Payload": "", "ScheduleId": "fc6c4d48-7511-4c87-9eb5-6ce05f55a44a", "ScheduleName": "demo" }, { "CreatedTime": "2024-06-26T03:36:57Z", "CronExpression": "@every 1m", "Description": "updated description", "Enable": false, "LastModifiedTime": "2024-06-26T06:00:14Z", "Payload": "{\"key\":\"value\"}", "ScheduleId": "b888a48f-229d-4b35-adc6-5c63a37cf3b1", "ScheduleName": "schedule-test" } ] }
文檔內(nèi)容是否對您有幫助?