Checks

Resource Operation Description
DELETE DELETE /v1/teams/(team_id)/sources/(source_id)/checks/(check_id) Lorem ipsum.
GET GET /v1/teams/(team_id)/sources/(source_id)/checks List the checks of a source.
  GET /v1/teams/(team_id)/rules/(rule_id)/checks Lorem ipsum.
  GET /v1/teams/(team_id)/checks List the checks of a team.
POST POST /v1/teams/(team_id)/sources/(source_id)/checks Add a new check.
PUT PUT /v1/teams/(team_id)/sources/(source_id)/checks/(check_id) Lorem ipsum.
  PUT /v1/teams/(team_id)/rules/(rule_id)/checks  
PUT /v1/teams/(team_id)/sources/(source_id)/checks/(check_id)
DELETE /v1/teams/(team_id)/sources/(source_id)/checks/(check_id)
GET /v1/teams/(team_id)/sources/(source_id)/checks

List the checks of a source.

Example request:

GET /teams/66859c4a-3e0a-4968-a5a4-4c3b8662acb7/sources/e2c1c635-2d7c-4881-83d1-e4e7027ac7a2/checks HTTP/1.1
Host: example.com
Accept: application/json

Example response:

HTTP/1.1 200 OK

  {
    'checks': [{
      'name': 'My check',
      'parameters': {'metric': 'foo', 'threshold': 100},
      'type': 'Threshold'
    }]
  }
Response Headers:
 
Status Codes:
  • 200 OK – the list of checks
POST /v1/teams/(team_id)/sources/(source_id)/checks

Add a new check.

Example request:

POST /v1/teams/66859c4a-3e0a-4968-a5a4-4c3b8662acb7/sources/e2c1c635-2d7c-4881-83d1-e4e7027ac7a2/checks HTTP/1.1
Host: example.com
Accept: application/json

{
  "name": "My check",
  "type": "Threshold",
  "parameters": {
    "metric": "foo",
    "threshold": 100
  }
}

Example response:

HTTP/1.1 201 CREATED

{
  'name': 'My check',
  'parameters': {
    'metric': 'foo',
    'threshold': 100
  },
  'type': 'Threshold'
}
Response Headers:
 
Status Codes:
GET /v1/teams/(team_id)/rules/(rule_id)/checks
PUT /v1/teams/(team_id)/rules/(rule_id)/checks
GET /v1/teams/(team_id)/checks

List the checks of a team.

Example request:

GET /teams/66859c4a-3e0a-4968-a5a4-4c3b8662acb7/checks HTTP/1.1
Host: example.com
Accept: application/json

Example response:

HTTP/1.1 200 OK

  {
    'checks': [{
      'name': 'My check',
      'parameters': {'metric': 'foo', 'threshold': 100},
      'type': 'Threshold'
    }]
  }
Response Headers:
 
Status Codes:
  • 200 OK – the list of checks