POST
/
api
/
v1
/
monitors
/
create
/
metric

Authorizations

Authorization
string
headerrequired

Use the 'Authorization' header with the format 'Key <api-key>'

Body

application/json
connection_id
integer
required

The identifier for the data source configuration.

metric
object
required

Configuration for the metric being monitored.

name
string
required

The name of the monitor.

schedule
object
required

The schedule at which the monitor runs.

alert
object | null

Condition for triggering alerts.

description
string | null

The description of the monitor.

enabled
boolean
default: true

Indicates whether the monitor is enabled.

notifications
object[]

Notification configuration for the monitor.

tags
string[]

Tags associated with the monitor.

Response

200 - application/json
id
integer
required

Unique identifier for the monitor.