POST
/
uptime
/
monitors
/
{monitorId}
Please be aware that the Phare API is currently in beta and is subject to change.

Authorizations

Authorization
string
header
required

Use a user token to access authenticated routes. The token must be specified in the Authorization HTTP header with the following format 'Authorization: Bearer <token>'.

Path Parameters

monitorId
integer
required

ID of the monitor to update

Body

application/json
alert_policy_id
number
required

Associated alert policy ID

name
string
required

Monitor name

protocol
enum<string>
required
Available options:
http,
tcp
request
object
required

Monitoring request, depends of the chosen protocol

interval
enum<number>
required

Monitoring interval in seconds

Available options:
30,
60,
120,
180,
300,
600,
900,
1800,
3600
timeout
enum<number>
required

Monitoring timeout in milliseconds

Available options:
1000,
2000,
3000,
4000,
5000,
6000,
7000,
8000,
9000,
10000,
15000,
20000,
25000,
30000
incident_confirmations
enum<number>
required

Number of uninterrupted failed checks required to create an incident

Available options:
1,
2,
3,
4,
5
recovery_confirmations
enum<number>
required

Number of uninterrupted successful checks required to resolve an incident

Available options:
1,
2,
3,
4,
5
regions
enum<string>[]
required

List of regions where monitoring checks are performed

Available options:
as-ind-bom,
as-jpn-nrt,
as-sgp-sin,
eu-deu-muc,
eu-gbr-lhr,
eu-swe-arn,
na-mex-mex,
na-usa-pdx,
na-usa-ric

Response

200
application/json
alert_policy_id
number
required

Associated alert policy ID

name
string
required

Monitor name

protocol
enum<string>
required
Available options:
http,
tcp
request
object
required

Monitoring request, depends of the chosen protocol

interval
enum<number>
required

Monitoring interval in seconds

Available options:
30,
60,
120,
180,
300,
600,
900,
1800,
3600
timeout
enum<number>
required

Monitoring timeout in milliseconds

Available options:
1000,
2000,
3000,
4000,
5000,
6000,
7000,
8000,
9000,
10000,
15000,
20000,
25000,
30000
incident_confirmations
enum<number>
required

Number of uninterrupted failed checks required to create an incident

Available options:
1,
2,
3,
4,
5
recovery_confirmations
enum<number>
required

Number of uninterrupted successful checks required to resolve an incident

Available options:
1,
2,
3,
4,
5
regions
enum<string>[]
required

List of regions where monitoring checks are performed

Available options:
as-ind-bom,
as-jpn-nrt,
as-sgp-sin,
eu-deu-muc,
eu-gbr-lhr,
eu-swe-arn,
na-mex-mex,
na-usa-pdx,
na-usa-ric
id
number

Monitor ID

project_id
number

Parent project ID

status
enum<string>
Available options:
fetching,
online,
offline,
partial
paused
boolean

Whether the monitor is currently paused

response_time
number | null

Rolling average response time of the last 10 requests, in milliseconds

last_checked_at
string | null

Date of the last monitoring check

created_at
string

Date of creation for the entity

updated_at
string

Date of last update for the entity