Request URL
Schedulers can be created using two methods:
| PUT | https://api.dotcom-monitor.com/config_api_v1/schedulers |
| POST | https://api.dotcom-monitor.com/config_api_v1/schedulers?verb=PUT |
Header Parameters
Content-Type: application/json
Required Body Parameters
To specify a JSON object parameters for a new scheduler, we recommend you get an existed scheduler info first and use the response as a sample for a new scheduler object.
| Field | Type | Required/Optional | Description | ||
|
Name |
String |
required |
Scheduler name.
Example:
|
||
|
Weekly_Intervals |
Array of Objects |
required |
This describes intervals which repeat on a weekly basis
POSSIBLE DAYS VALUES: “Su”,”Mo”,”Tu”,”We”,”Th”,”Fr”,”Sa”,”Su” MEANS PROCESSING IS ENABLED
MEANS PROCESSING IS DISABLED
Example:
"Weekly_Intervals": [{
"Days": ["Tu", "We", "Th", "Fr", "Sa"],
"From_Min": 0,
"To_Min": 1025,
"Included": true
}, {
"Days": ["Su", "Sa"],
"From_Min": 0,
"To_Min": 1139,
"Included": false
}
]
To specify the time interval that covers a full day set “From_Min” to 0 and
“To_Min” to 1439:
"Weekly_Intervals": [{
"Days": ["Tu", "We", "Th", "Fr", "Sa"],
"From_Min": 0,
"To_Min": 1439,
"Included": true
}
]
|
||
|
Date_Time_Intervals |
Array of Objects |
required |
This describes non-repeat intervals.
The time format is given in UNIX time. Note that the seconds part of the value should be 0 when converting “From” and “To” intervals to epoch time. Example:
|
