الانتقال إلى المحتوى الرئيسي
POST
Creates an uptime check.

التفويضات

X-API-Key
string
header
مطلوب

Your Gorelo API key. See Generate API key. If your data is hosted in Australia, click the base URL at the top of this page and select https://api.aue.gorelo.io.

الجسم

Uptime check details.

Request body for creating an uptime check. The owning service provider is resolved from the request context, not from the body.

TypeId
integer<int32>

What the check does: 1 ICMP, 2 HTTP, 3 TCP. Required.

مثال:

1

Target
object

What an uptime check points at. Which fields are populated depends on the check type: ICMP uses Ip, TCP uses Ip and Port, HTTP uses Url. The others are null.

AdoptClientAssets
boolean

Move unassigned devices whose public IP matches this check's address to the check's client. Only acted on for ICMP checks that carry both a client and a location; stored either way.

ClientId
integer<int64> | null

Identifier of the client the check belongs to. When supplied, LocationId is required with it.

LocationId
integer<int64> | null

Identifier of the client location the check belongs to.

Description
string | null

What the check watches, free text. Max 250 characters.

Frequency
integer<int32>

How often the check runs, in minutes. Required.

مثال:

1

NumberOfRetriesAfterFailure
integer<int32> | null

How many times a failure is rechecked before the check counts as down. Defaults to 2.

مثال:

2

RegionId
integer<int32>

Which monitoring region runs the check: 1 Seattle, 2 Sydney, 3 UK, 4 Frankfurt. Required.

مثال:

1

Link to the ISP or provider status page for this endpoint. Max 500 characters.

TagIds
integer<int64>[] | null

Identifiers of tags to apply to the check.

الاستجابة

OK

StatusCode
enum<integer>
الخيارات المتاحة:
100,
101,
102,
103,
200,
201,
202,
203,
204,
205,
206,
207,
208,
226,
300,
301,
302,
303,
304,
305,
306,
307,
308,
400,
401,
402,
403,
404,
405,
406,
407,
408,
409,
410,
411,
412,
413,
414,
415,
416,
417,
421,
422,
423,
424,
426,
428,
429,
431,
451,
500,
501,
502,
503,
504,
505,
506,
507,
508,
510,
511
IsSuccess
boolean
Data
object

The identifier of the created uptime check.

DataContext
object | null
مثال:

null

Notifications
object[]