FunctionCondition
Cron-triggered Python condition. On each scheduled occurrence, the condition runs code with params and proceeds to the reaction actions only when the code returns true.
pythonPython function body executed by this action.
params object
Bound parameters passed to the function
Bound parameters passed to the function
schedule object
5-field cron; the cadence that wakes the condition (1 min floor). Exactly one of schedule / rrule.
- string
- null
rrule object
iCal RRULE (RFC 5545), e.g. FREQ=MONTHLY;BYDAY=-1FR;BYHOUR=9 — the cadences cron cannot say (last Friday of the month, every other week). A cadence of a day or longer (FREQ DAILY or coarser, at most 24 fires a day); a finer one is a cron schedule. Evaluated in the scheduler's timezone; a DTSTART must carry one. Exactly one of schedule / rrule, same 1 min floor.
- string
- null
context object
Values carried as-is into the payload's context on every firing — which report to run, a threshold, a channel
Values carried as-is into the payload's context on every firing — which report to run, a threshold, a channel
functionschema object
JSON Schema of the dict run returns; declared, it is what the actions' {{context.*}} references are validated against at save time and the return value at run time
- object
- null
{
"language": "python",
"code": "string",
"params": {},
"schedule": "string",
"rrule": "string",
"context": {},
"kind": "function",
"schema": {}
}