Invoke
API of the function to trigger it at the specified time. The event source mapping is retained in the SCF function.a-z
, A-Z
, 0-9
, -
, and _
and must begin with a letter and be unique under the same function.event
parameter of the entry function.First | Second | Third | Fourth | Fifth | Sixth | Seventh |
Second | Minute | Hour | Day | Month | Week | Year |
Field | Value | Wildcards |
Second | An integer between 0 and 59 | , - * / |
Minute | An integer between 0 and 59 | , - * / |
Hours | An integer between 0 and 23 | , - * / |
Day | An integer between 1 and 31 (the number of days in the month needs to be considered) | , - * / |
Month | An integer between 1 and 12 or JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC | , - * / |
Week | An integer between 0 and 6 or SUN, MON, TUE, WED, THU, FRI, SAT; where 0 means Sunday, 1 means Monday, and so on | , - * / |
Year | An integer between 1970 and 2099 | , - * / |
First | Second | Third | Fourth | Fifth |
Minute | Hour | Day | Month | Week |
Field | Value | Wildcards |
Minute | An integer between 0 and 59 | , - * / |
Hours | An integer between 0 and 23 | , - * / |
Day | An integer between 1 and 31 (the number of days in the month needs to be considered) | , - * / |
Month | An integer between 1 and 12 or JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC | , - * / |
Week | An integer between 0 and 6 or SUN, MON, TUE, WED, THU, FRI, SAT; where 0 means Sunday, 1 means Monday, and so on | , - * / |
Wildcard | Description |
, (comma) | It represents the union of characters separated by commas; for example, 1, 2, 3 in the "Hour" field means 1:00, 2:00 and 3:00 |
- (hyphen) | It contains all values in the specified range; for example, in the "Day" field, 1-15 contains the 1st to the 15th day of the specified month |
* (asterisk) | It means all values; for example, in the "Hour" field, * means every o'clock |
/ (forward slash) | It specifies the increment; for example, in the "Minute" field, you can enter 1/10 to specify repeating every ten minutes from the first minute on (e.g., at the 11th minute, the 21st minute, the 31st minute, and so on) |
Expression | Description |
*/5 * * * * * * | Triggers once every 5 seconds |
0 15 10 1 * * * | Triggers at 10:15 am on the 1st day of every month |
0 15 10 * * MON-FRI * | Triggers every day at 10:15 am Monday through Friday |
0 0 10,14,16 * * * * | Triggers every day at 10 am, 2 pm, and 4 pm |
0 */30 9-17 * * * * | Triggers every half hour from 9 am to 5 pm every day |
0 0 12 * * WED * | Triggers at 12:00 noon every Wednesday |
event
and passed to the function. In addition, you can specify to pass the message
for a timer trigger, which is empty by default.{"Type":"Timer","TriggerName":"EveryDay","Time":"2019-02-21T11:49:00Z","Message":"user define msg body"}
Field | Description |
Type | Type of the trigger, whose value is Timer |
TriggerName | Timer name, which can contain up to 60 characters out of a-z , A-Z , 0-9 , - , and _ and must begin with a letter and be unique under the same function |
Time | Trigger creation time, in UTC+0 |
Message | String type |
Was this page helpful?