These routes relate to retrieving and modifying all the active service checks for all teams. Service checks are designed for checking if services such as a web server, database, or email server remain up. These are active checks, not completed checks. For those, see the Team Check interface.
Gets all the active service checks for all teams.
Example request:
GET /checks/services HTTP/1.1
Host: example.com
Accept: application/json, text/javascript
Cookie: userid=admin
Example response:
HTTP/1.1 200 OK
Content-Type: application/json
{
'id': 'MongoDBUp',
'description': 'Checks whether MongoDB is up.',
'machine': 'MongoDB',
'type': 'service',
'class_name': 'SampleServiceCheck'
},
{
'id': 'EmailUp',
'description': 'Checks whether email is up.',
'machine': 'MongoDB',
'type': 'service',
'class_name': 'SampleServiceCheck'
}
Requires Authentication: Yes
Allowed Roles: Administrator, Organizer
Creates and activates a service check for all teams.
Example request:
POST /checks/services HTTP/1.1
Host: example.com
Accept: application/json, text/javascript
Cookie: userid=admin
Content-Type: application/json
{
"id": "SomeServiceUp",
"description": "Checking if SomeService is up",
"machine": "Apache",
"class_name": "SampleServiceCheck"
}
Example response:
HTTP/1.1 201 Created
Location: http://example.com/checks/services/SomeServiceUp
Requires Authentication: Yes
Allowed Roles: Administrator
Gets a specific service check that is active for all teams.
Example request:
GET /checks/services/SomeServiceUp HTTP/1.1
Host: example.com
Accept: application/json, text/javascript
Cookie: userid=admin
Example response:
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"description": "Checking if SomeService is up",
"machine": "Apache",
"class_name": "SampleServiceCheck"
}
]
Requires Authentication: Yes
Allowed Roles: Administrator, Organizer
Modifies a specific service check that is active for all teams.
Example request:
PATCH /checks/services/SomeServiceUp HTTP/1.1
Host: example.com
Accept: application/json, text/javascript
Cookie: userid=admin
Content-Type: application/json
{
'description': 'Checks whether THE some service service is really running.',
'machine': 'Apache',
'class_name': 'SampleServiceCheck'
}
Example response:
HTTP/1.1 204 No Content
Requires Authentication: Yes
Allowed Roles: Administrator
Deletes a specific service check that is active for all teams.
Example request:
DELETE /checks/services/SomeServiceUp HTTP/1.1
Host: example.com
Accept: application/json, text/javascript
Cookie: userid=admin
Example response:
HTTP/1.1 204 No Content
Requires Authentication: Yes
Allowed Roles: Administrator