Status client#

class geonemo.client.StatusClient(
base_url=None,
*,
transport=None,
project_id=None,
token=None,
timeout=10.0,
client=None,
headers=None,
)#

Read the service plane’s public operational health history.

history(service_id, query=None)#

List probe observations for one service (GET /v1/status/services/{service_id}/history).

Parameters:
  • service_id – Service identifier.

  • query – Time range and paging; defaults to the first 100 observations.

Returns:

A ServiceHistory page.

Raises:
history_detail(service_id, query=None)#

Get a service’s history with coverage and timeline (GET /v1/status/services/{service_id}/history-detail).

Parameters:
  • service_id – Service identifier.

  • query – Time range and paging; defaults to the first 100 observations.

Returns:

A ServiceHistoryDetail.

Raises:
incidents(query=None)#

List service incidents (GET /v1/status/incidents).

Parameters:

query – Time range, paging and optional service or status filter.

Returns:

An IncidentPage.

Raises:

ServicesClientError – On transport or HTTP failure, or an invalid response.

liveness()#

Check that the service process is alive (GET /v1/health/live).

Returns:

The HealthResponse.

Raises:

ServicesClientError – On transport or HTTP failure, or an invalid response.

readiness()#

Check that the service is ready (GET /v1/health/ready).

An HTTP 503 response is returned as a HealthResponse rather than raised.

Returns:

The HealthResponse.

Raises:

ServicesClientError – On transport or HTTP failure, or an invalid response.

summary(*, window='24h')#

Summarize the status of all services (GET /v1/status).

Parameters:

window – Time window to summarize, such as 24h.

Returns:

The StatusSummary.

Raises:

ServicesClientError – On transport or HTTP failure, or an invalid response.