https://api.checkcentral.cc/createCheck/?apiToken=APITOKEN
Content-Type
application/json
demo+apicheck@mycheckcentral.cc
Failure
Message Success
No Errors Reported
{ "name": "An API Check", "email_alias": "apicheck", "interval_type": "hour", "interval_value": 2, "active_days": [ "mon", "tue", "wed", "thu", "fri" ], "success_conditions": { "required_conditions": "any", "conditions": [ { "message_field": "subject", "matches": "exactly", "value": "Message Success" }, { "message_field": "body", "matches": "contains", "value": "No Errors Reported" } ] } }
name
email_alias
matching_conditions
Parameter | Type/Allowed Values | Default |
---|---|---|
name The name for the new check.
This parameter is required. |
String |
|
email_alias The 'plus alias' for the check. This will be used to generate the custom email address for the Check along with your organization account name (account_name+email_alias@mycheckcentral.cc).
At least one email_alias matching_conditions |
String |
|
matching_conditions The rules that will be used to match incoming messages. (See the ConditionGroup table below.)
At least one email_alias matching_conditions |
{} | |
group_id The ID of the group to assign this check. (IDs may be retrieved from the getGroups API endpoint.) |
String |
|
description A text description for the check. |
String |
|
interval_type The interval unit CheckCentral will use to calculate the expected arrival time of incoming messages. |
One of:
|
day |
interval_value The number of interval units (see internal_type |
Integer |
1 |
overdue_minutes How many minutes after the interval has elapsed CheckCentral will wait before flagging the check as failed. |
Integer |
30 |
window_start An optional time of day when messages will begin to be received. |
String |
00:00 |
window_end An optional time of day when messages will cease to be received. |
String |
00:00 |
active_days Pass an array of days to indicate which days the check should expect to receive messages. |
An array containing either
all
|
all |
enabled_notifications Pass an array of personal notification services to configure the check to send alerts via those services. |
An array containing any of:
|
[] |
enabled_integrations Pass an array of organization notification services to configure the check to send alerts via those services. |
An array containing any of:
|
[] |
notify_returned_to_success Checks with this flag will send an alert when they are restored to a success state by an incoming message. |
Bool |
true |
notify_outside_window Checks with this flag set to false will only send alerts during the time window and active days configured above. |
Bool |
true |
notify_consecutive_alerts This parameter controls when CheckCentral will send alerts about repeated failure or warning messages. |
One of:
|
always |
notify_consecutive_alerts_limit If notify_consecutive_alerts after_n every_nth |
Integer |
1 |
notify_failure_grace_period The number of minutes this check will wait to send alerts about failures. If the check is returned to successful status before this period elapses, any pending alerts will be cancelled. |
Integer |
0 |
default_status The default status for incoming messages that don't match against any of the conditions below. |
One of:
|
failure |
success_conditions The rules that determine whether incoming messages will be set to success. See the definition of a ConditionGroup below. |
{} | |
warning_conditions The rules that determine whether incoming messages will be set to warning. See the definition of a ConditionGroup below. |
{} | |
failure_conditions The rules that determine whether incoming messages will be set to failure. See the definition of a ConditionGroup below. |
{} |
Parameter | Type/Allowed Values | Default |
---|---|---|
required_conditions This parameter controls whether incoming messages must meet any or all of the conditions defined below to be considered a match. |
One of:
|
all |
condense_whitespace If this flag is set, all of the conditions defined in this group will treat multiple whitespace characters as a single space. |
Bool |
false |
conditions The list of conditions for this ConditionGroup to match messages against. See the definition of a Condition below. |
An array containing one or more of:
|
{} |
Parameter | Type/Allowed Values | Default |
---|---|---|
message_field Which part of the incoming message will be examined for this condition. |
One of:
|
subject |
matches What matching rule this condition will use. |
One of:
|
contains |
value The value to use with the above matching rule and message component. |
String |