Monitor groups

List monitor groups

get

List monitor groups

Authorizations
Query parameters
filterstringoptional

Use the filter query parameter to retrieve just a subset of a collection.

searchstringoptional

Use the search query parameter to restrict the results of a request to match a search criterion.

orderbystringoptional

Use the orderby query parameter to specify the sort order of the items returned from server.
The default order is ascending order.

skipinteger · int32 · default: 0optional

Use the skip query parameter to set the number of items to skip at the start of a collection.

topinteger · int32 · min: 1 · max: 100 · default: 100optional

Use the top query parameter to specify the page size of the result set.

Responses
curl -L \
  --url 'https://HOSTNAME:8887/api/monitor_groups' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "count": 100,
  "items": [
    {
      "id": "NzAwNTUxOTA5NzczMTQ4MTYw",
      "name": "text",
      "enabled": true,
      "description": "text"
    }
  ]
}

Create a monitor group

post

Create a new monitor group.

Authorizations
Body
namestring · min: 1 · max: 64optional

Name of monitor group

enabledbooleanoptional

Enable monitor group or not.

descriptionstring · max: 1024optional

Description for monitor group

Responses
curl -L \
  --request POST \
  --url 'https://HOSTNAME:8887/api/monitor_groups' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "text",
    "enabled": true,
    "description": "text"
  }'
{
  "id": "NzAwNTUxOTA5NzczMTQ4MTYw"
}

Retrieve a monitor group

get

Retrieves details of a monitor group.

Authorizations
Path parameters
idall ofrequired

The unique ID of monitor group.

The unique ID of the resource.

Responses
curl -L \
  --url 'https://HOSTNAME:8887/api/monitor_groups/{id}' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "id": "NzAwNTUxOTA5NzczMTQ4MTYw",
  "name": "text",
  "enabled": true,
  "description": "text"
}

Update an monitor group.

post

Update an monitor group

Authorizations
Path parameters
idall ofrequired

The unique ID of monitor group.

The unique ID of the resource.

Body
namestring · min: 1 · max: 64optional

Name of monitor group

enabledbooleanoptional

Enable monitor group or not.

descriptionstring · max: 1024optional

Description for monitor group

Responses
curl -L \
  --request POST \
  --url 'https://HOSTNAME:8887/api/monitor_groups/{id}' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "text",
    "enabled": true,
    "description": "text"
  }'

No body

Was this helpful?