Skip to content

Data structures

Cron job

Each cronjob contains these members:

NameTypeDescription
idintegerCron job ID
groupintegerGroup ID, nullable
expressionstringCron expression (crontab syntax e.g. 0 12 * * 1-5 or expression e.g. 1 day)
timezonestringTime zone
timeoutintThe timeout limit. Max time that FastCron will wait for your script output.
instancesintegerMax overlapping cronjob executions: 0: unlimited, 1: single, 2 - 5: 2 - 5 overlapping executions
urlstringURL to call
httpMethodstringThe HTTP Method to send HTTP requests to your URL.
httpHeadersstringPlain HTTP headers to send to your cronjob URL.
postDatastringThe data to POST to your URL, either query format or JSON
failintegerNumber of current consecutive failures
statusintegerStatus code, 0 means “active”
namestringName of cronjob
notifyboolNotify when cronjob fails
notifyEveryintNumber of consecutive failures between each notification
priorityintegerPriority: normal (0), high (1), higher (2)

Cron execution result

Each cron execution results contains these members:

NameTypeDescription
resultarrayAn array contains multiple values, see below.

result contains these members:

NameTypeDescription
outputstringYour script output
downloadedintegerTotal output size (in bytes).
httpStatusintegerHTTP status code e.g. 200
errorstringError message, if any.
timeintegerUnix timestamp of scheduled time.
executionTimedecimalTotal execution time, in seconds.
statusintegerExecution status, 0 means “success”

Group

Each group contains these members:

NameTypeDescription
idintegerID
namestringName
jobCountintegerTotal number of cronjobs
priorityintegerPriority: normal (0), high (1), higher (2)

Account

Your account contains these members:

NameTypeDescription
idintegerAccount ID
namestringAccount name
timezonestringDefault timezone
planstringPlan name e.g. Pro
cronintegerMax cronjobs e.g. 40
expiryDatestringAccount expiry date e.g. 2023-12-31