POST
/
monitor
curl --request POST \
  --url https://api.alerty.ai/monitor \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "pollDurationInterval": "P3Y6M4DT12H30M5S",
  "name": "<string>",
  "description": "<string>",
  "type": "UP_TIME",
  "resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "snoozedUntil": "2023-11-07T05:31:56Z",
  "state": "ACTIVE",
  "status": "NO_DATA",
  "priority": "NOT_DEFINED",
  "recipients": [
    {
      "id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "integration": {
        "id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z",
        "type": "SLACK",
        "class": "NOTIFICATION",
        "configuration": {
          "teamId": "<string>",
          "accessToken": "<string>",
          "incomingWebhookURL": "<string>",
          "channelID": "<string>"
        }
      },
      "integrationOverride": {
        "teamId": "<string>",
        "accessToken": "<string>",
        "incomingWebhookURL": "<string>",
        "channelID": "<string>"
      }
    }
  ],
  "query": "<string>",
  "resource": {
    "id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "name": "<string>",
    "type": "WEBSITE",
    "configuration": {
      "url": "<string>"
    }
  }
}'
{
  "id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "pollDurationInterval": "P3Y6M4DT12H30M5S",
  "name": "<string>",
  "description": "<string>",
  "type": "UP_TIME",
  "resourceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "snoozedUntil": "2023-11-07T05:31:56Z",
  "state": "ACTIVE",
  "status": "NO_DATA",
  "priority": "NOT_DEFINED",
  "recipients": [
    {
      "id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "integration": {
        "id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
        "createdAt": "2023-11-07T05:31:56Z",
        "updatedAt": "2023-11-07T05:31:56Z",
        "type": "SLACK",
        "class": "NOTIFICATION",
        "configuration": {
          "teamId": "<string>",
          "accessToken": "<string>",
          "incomingWebhookURL": "<string>",
          "channelID": "<string>"
        }
      },
      "integrationOverride": {
        "teamId": "<string>",
        "accessToken": "<string>",
        "incomingWebhookURL": "<string>",
        "channelID": "<string>"
      }
    }
  ],
  "query": "<string>",
  "resource": {
    "id": "5df33a85-2b9c-40e3-8854-760ee3b8efc7",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "name": "<string>",
    "type": "WEBSITE",
    "configuration": {
      "url": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

resource monitor

id
string
required

Unique identifier for the entity

Example:

"5df33a85-2b9c-40e3-8854-760ee3b8efc7"

createdAt
string
required
updatedAt
string
required
name
string
required

the monitor name

type
enum<string>
required

the monitor type

Available options:
UP_TIME,
LATENCY,
LOAD_TIME,
WEBSITE_TYPO,
STRIPE,
DOMAIN_EXPIRATION,
CERT_EXPIRATION,
CDN_CONFIGURATION,
CLOUDFLARE_REQUESTS,
CLOUDFRONT_REQUESTS,
STATUS_PAGE,
DATABASE_STORAGE_LIMIT,
DATABASE_CPU_USAGE,
DATABASE_MEMORY_USAGE
resourceId
string
required
state
enum<string>
required

state of the monitor during its lifecycle

Available options:
ACTIVE,
PAUSED,
SNOOZED,
ERROR
status
enum<string>
required

status of the monitor

Available options:
NO_DATA,
OK,
ALERT,
WARN
priority
enum<string>
required

monitor priority

Available options:
NOT_DEFINED,
CRITICAL,
HIGH,
MEDIUM,
LOW,
INFO
recipients
object[]
required

the monitor recipients of the incidents/alerts notifications

pollDurationInterval
string

the interval in which the monitor will be checked

Example:

"P3Y6M4DT12H30M5S"

description
string

the monitor description

snoozedUntil
string

until when the monitor will be in snoozed mode

query
string

the monitor query

resource
object

Response

201
application/json
monitor created

resource monitor

id
string
required

Unique identifier for the entity

Example:

"5df33a85-2b9c-40e3-8854-760ee3b8efc7"

createdAt
string
required
updatedAt
string
required
name
string
required

the monitor name

type
enum<string>
required

the monitor type

Available options:
UP_TIME,
LATENCY,
LOAD_TIME,
WEBSITE_TYPO,
STRIPE,
DOMAIN_EXPIRATION,
CERT_EXPIRATION,
CDN_CONFIGURATION,
CLOUDFLARE_REQUESTS,
CLOUDFRONT_REQUESTS,
STATUS_PAGE,
DATABASE_STORAGE_LIMIT,
DATABASE_CPU_USAGE,
DATABASE_MEMORY_USAGE
resourceId
string
required
state
enum<string>
required

state of the monitor during its lifecycle

Available options:
ACTIVE,
PAUSED,
SNOOZED,
ERROR
status
enum<string>
required

status of the monitor

Available options:
NO_DATA,
OK,
ALERT,
WARN
priority
enum<string>
required

monitor priority

Available options:
NOT_DEFINED,
CRITICAL,
HIGH,
MEDIUM,
LOW,
INFO
recipients
object[]
required

the monitor recipients of the incidents/alerts notifications

pollDurationInterval
string

the interval in which the monitor will be checked

Example:

"P3Y6M4DT12H30M5S"

description
string

the monitor description

snoozedUntil
string

until when the monitor will be in snoozed mode

query
string

the monitor query

resource
object