3

我正在尝试通过 API 安排发送仪表板: http ://docs.gooddata.apiary.io/#reportsanddashboardsbyemail

设置电子邮件发送频率的参数有一些奇怪的格式:

"recurrency": "0:0:0:1*12:0:0",

我希望它是一个 cron 表达式,以前从未见过这种格式。任何人都知道这些数字的含义以及如何将它们组合在一起?

4

1 回答 1

2

你可以在这里找到规范

例如:

0:0:2:1:0:0:0 every 2 weeks and 1 day 
0:0:0:0:5:30:0 every 5 hours and 30 minutes 
0:0:0:2*12:30:0 every 2 days at 12:30 (each day) 
0:0:0:1*2,4,6:0:0 every day at at 2:00, 4:00, and 6:00 
0:0:0:2*12-13:0,30:0 every other day at 12:00, 12:30, 13:00, and 13:30 
0:1:0*-1:0:0:0 the last day of every month
*1990-1995:12:0:1:0:0:0 Dec 1 in 1990 through 1995 
3*1:0:2:12:0:0 every 3 years on Jan 2 at noon 
0:1*0:2:12,14:0:0 2nd of every month at 12:00 and 14:00
于 2014-03-05T08:48:20.143 回答