DomainOpsDomainOps

Liveness API

Configure liveness monitoring probes, retrieve test results, daily statistics, and current uptime status.

GET/api/v1/livenessAuth required

List all liveness monitoring configurations.

Query Parameters

ParameterTypeRequiredDescription
endpoint_idstringNoFilter by endpoint UUID
domain_idstringNoFilter by domain UUID
is_enabledbooleanNoFilter by enabled state
limitnumberNoMax results, default 50
offsetnumberNoPagination offset, default 0

Response

json
{
  "configs": [
    {
      "id": "uuid",
      "endpoint_id": "uuid",
      "is_enabled": true,
      "timeout_seconds": 30,
      "created_at": "2026-01-01T00:00:00Z"
    }
  ],
  "total": 1
}
GET/api/v1/liveness/:idAuth required

Get a single liveness configuration by UUID.

Response

json
{
  "id": "uuid",
  "endpoint_id": "uuid",
  "endpoint_url": "https://example.com",
  "is_enabled": true,
  "timeout_seconds": 30,
  "created_at": "2026-01-01T00:00:00Z"
}
POST/api/v1/livenessAuth required

Create a liveness monitoring configuration for an endpoint.

Request Body

ParameterTypeRequiredDescription
endpoint_idstringYesUUID of the endpoint to monitor
is_enabledbooleanNoEnable monitoring immediately, default true
timeout_secondsnumberNoProbe timeout in seconds, default 30

Response

json
{
  "id": "uuid",
  "endpoint_id": "uuid",
  "is_enabled": true,
  "timeout_seconds": 30,
  "created_at": "2026-03-28T09:00:00Z"
}

Error Codes

StatusDescription
409Liveness config already exists for this endpoint
PUT/api/v1/liveness/:idAuth required

Update a liveness configuration.

Request Body

ParameterTypeRequiredDescription
is_enabledbooleanNoEnable or disable probing
timeout_secondsnumberNoUpdate probe timeout

Response

json
{
  "id": "uuid",
  "is_enabled": false,
  "timeout_seconds": 60,
  "updated_at": "2026-03-28T09:00:00Z"
}
DELETE/api/v1/liveness/:idAuth required

Delete a liveness configuration and all associated test result history.

Response

json
{
  "message": "Liveness config deleted",
  "deleted_id": "uuid"
}
GET/api/v1/liveness/:id/resultsAuth required

Get individual probe test results for a liveness configuration.

Query Parameters

ParameterTypeRequiredDescription
limitnumberNoMax results, default 50
offsetnumberNoPagination offset, default 0
hoursnumberNoHours of history to return, default 24

Response

json
{
  "results": [
    {
      "timestamp": "2026-03-28T09:00:00Z",
      "is_successful": true,
      "response_time_ms": 145,
      "status_code": 200
    }
  ],
  "total": 144
}
GET/api/v1/liveness/:id/statsAuth required

Get daily aggregated statistics for a liveness configuration.

Query Parameters

ParameterTypeRequiredDescription
daysnumberNoNumber of days of history, default 30

Response

json
{
  "stats": [
    {
      "date": "2026-03-28",
      "total_tests": 144,
      "successful_tests": 143,
      "success_rate": 99.3,
      "avg_response_time_ms": 152
    }
  ]
}
GET/api/v1/liveness/:id/statusAuth required

Get the current uptime status for a liveness configuration.

Response

json
{
  "status": "up",
  "uptime_24h": 99.8,
  "uptime_7d": 99.5,
  "avg_response_time_ms": 148,
  "consecutive_failures": 0
}