-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcron-jobs-wecom.json.example
More file actions
85 lines (85 loc) · 2.72 KB
/
Copy pathcron-jobs-wecom.json.example
File metadata and controls
85 lines (85 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"version": 1,
"jobs": [
{
"id": "example-daily-reminder",
"name": "每日提醒示例",
"enabled": true,
"deleteAfterRun": false,
"schedule": {
"kind": "cron",
"expr": "0 9 * * *",
"comment": "每天上午 9:00 执行"
},
"message": "早上好!该开始工作了",
"platform": "wecom",
"webhook": "your_chatid_here",
"createdAt": "2026-03-19T00:00:00.000Z",
"updatedAt": "2026-03-19T00:00:00.000Z",
"state": {}
},
{
"id": "example-weekday-reminder",
"name": "工作日提醒示例",
"enabled": false,
"deleteAfterRun": false,
"schedule": {
"kind": "cron",
"expr": "0 10 * * 1-5",
"comment": "每个工作日(周一到周五)上午 10:00 执行"
},
"message": "检查邮件和待办事项",
"platform": "wecom",
"webhook": "your_chatid_here",
"createdAt": "2026-03-19T00:00:00.000Z",
"updatedAt": "2026-03-19T00:00:00.000Z",
"state": {}
},
{
"id": "example-periodic-reminder",
"name": "定期提醒示例",
"enabled": false,
"deleteAfterRun": false,
"schedule": {
"kind": "every",
"everyMs": 3600000,
"comment": "每 60 分钟执行一次"
},
"message": "休息一下,喝口水",
"platform": "wecom",
"webhook": "your_chatid_here",
"createdAt": "2026-03-19T00:00:00.000Z",
"updatedAt": "2026-03-19T00:00:00.000Z",
"state": {}
},
{
"id": "example-one-time-reminder",
"name": "一次性提醒示例",
"enabled": false,
"deleteAfterRun": true,
"schedule": {
"kind": "at",
"at": "2026-03-19T14:30:00.000Z",
"comment": "在指定时间执行一次后自动删除"
},
"message": "会议提醒:下午 2:30 开会",
"platform": "wecom",
"webhook": "your_chatid_here",
"createdAt": "2026-03-19T00:00:00.000Z",
"updatedAt": "2026-03-19T00:00:00.000Z",
"state": {}
}
],
"comments": {
"version": "文件格式版本,当前为 1",
"jobs": "任务数组",
"schedule.kind": "调度类型:cron(cron表达式) | every(固定间隔) | at(指定时间)",
"schedule.expr": "cron 表达式格式:分 时 日 月 星期 (0 9 * * * = 每天9点)",
"schedule.everyMs": "固定间隔,单位毫秒 (60000 = 1分钟)",
"schedule.at": "ISO 8601 格式的具体时间",
"platform": "平台标识:wecom | feishu | dingtalk",
"webhook": "企业微信的 chatid,用于推送(可选,默认推送到最近活跃会话)",
"deleteAfterRun": "执行一次后是否自动删除",
"enabled": "是否启用,false 表示暂停"
}
}