POST   custom_events

Creates new custom event.

Remarks

If you set all_checks property to false then you have to init checks property with not empty list of checks ids.

Severity property accepts one of these values: "I", "W", "E" or "F". "I" means Information, "W" means Warning, "E" means Error and "F" means Fatal.



Returns HTTP 201 when created (the Location header must contain URL to the new check).

Request example and description

curl --request POST "https://api-asm1.apica.io/v3/custom_events?auth_ticket=C471ADC4-19B4-4219-BBF4-671A97EC653E" --header "Content-Type: application/json" --data-raw "{
  "name": "Event name.",
  "description": "Test event.",
  "from_utc": "2015-09-12T11:44:02.546",
  "to_utc": "2015-09-12T11:44:02.546",
  "severity": "W",
  "all_checks": false,
  "checks": [
    12345,
    678,
    234234
  ]
}"
NameType Required Description
nameStringYes

The event's name.

descriptionStringNo

The event's description.

from_utcDateTimeYes

The event's start timestamp.

to_utcDateTimeNo

The event's end timestamp.

severityStringYes

The event's severity.

all_checksBooleanYes

The event for all checks.

checksArrayNo

The event's checks list.