Resource Status Tracking (API)
Limit to ServiceIDs
Limit to ResourceIDs
A page number
1Number of items per page
50List of resource state deviations, allowing to identify resources that have diverged from their expected states
Service Unavailable (Infrastructure error)
GET /api/v2/resources/states/deviations HTTP/1.1
Host:
Accept: */*
{
"data": [
{
"resource": {
"id": "myService-myResource",
"name": "myResource"
},
"state": {
"desired": "connected",
"current": "connected"
},
"runnerInfo": {
"name": "protocol-mapper",
"status": "healthy"
},
"deviated": true,
"info": "Host not reachable"
}
],
"meta": {
"pagination": {
"totalPages": 1,
"totalRows": 1,
"pageNumber": 1,
"totalRowsInPage": 1,
"nextPage": 1,
"rowsPerPage": 50
}
}
}Limit to ServiceIDs
A page number
1Number of items per page
50Number of resources currently in a deviated state. If no filter is applied the number represents the system wide deviations.
Service Unavailable (Infrastructure error)
GET /api/v2/resources/states/deviations/count HTTP/1.1
Host:
Accept: */*
{
"data": [
{
"serviceId": "myService",
"count": 42
}
],
"meta": {
"pagination": {
"totalPages": 1,
"totalRows": 1,
"pageNumber": 1,
"totalRowsInPage": 1,
"nextPage": 1,
"rowsPerPage": 50
}
}
}Order response by field
serviceIdPossible values: Ascending or descending order
ASCPossible values: A page number
1Number of items per page
50The value used to retrieve services by matching service IDs
Returns a list of deviated ServiceIds along with their number of deviated resources
Bad Request
Internal Server Error
Service Unavailable (Infrastructure error)
GET /api/v2/resources/states/deviations/services HTTP/1.1
Host:
Accept: */*
{
"jsonapi": {
"version": "1.1.1"
},
"data": [
{
"serviceId": "myService",
"count": 42
}
],
"meta": {
"pagination": {
"totalPages": 1,
"totalRows": 1,
"pageNumber": 1,
"totalRowsInPage": 1,
"nextPage": 1,
"rowsPerPage": 50
}
}
}Limit to ServiceIDs
Limit to ResourceIDs
Return only deviated resources
Flag indicating if a deviation was detected or not
falseA page number
1Number of items per page
50List of resources including their state and status.
If no ServiceIDs and no ResourceIDs are provided, it acts as a wildcard request.
Filtering for ResourceIds takes precedence over filtering for ServiceIds. Meaning as soon as ResourceIDs are provided, the ServiceIDs will be ignored.
Service Unavailable (Infrastructure error)
GET /api/v2/resources/states HTTP/1.1
Host:
Accept: */*
{
"data": [
{
"resource": {
"id": "myService-myResource",
"name": "myResource"
},
"state": {
"desired": "connected",
"current": "connected"
},
"runnerInfo": {
"name": "protocol-mapper",
"status": "healthy"
},
"deviated": true,
"info": "Host not reachable"
}
],
"meta": {
"pagination": {
"totalPages": 1,
"totalRows": 1,
"pageNumber": 1,
"totalRowsInPage": 1,
"nextPage": 1,
"rowsPerPage": 50
}
}
}Limit to specific runners
A page number
1Number of items per page
50List of heartbeats
Service Unavailable (Infrastructure error)
GET /api/v2/resource-runners HTTP/1.1
Host:
Accept: */*
{
"data": [
{
"name": "protocol-mapper",
"healthy": true,
"last": 1716543812,
"misses": 1,
"remainingMissedHeartbeats": 1,
"hostname": "text",
"version": "text"
}
],
"meta": {
"pagination": {
"totalPages": 1,
"totalRows": 1,
"pageNumber": 1,
"totalRowsInPage": 1,
"nextPage": 1,
"rowsPerPage": 50
}
}
}Every RST related http endpoint definition
Service Unavailable (Infrastructure error)
GET /api/v2/resources/rst/httpschemas HTTP/1.1
Host:
Accept: */*
{
"data": {
"[a-zA-Z0-9]+": {},
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}Last updated
Was this helpful?

