mex.backend.system package

Submodules

mex.backend.system.main module

mex.backend.system.main.check_neo4j_status() → VersionStatus

Check the status and version of the neo4j graph database.

mex.backend.system.main.check_system_status() → VersionStatus

Check that the backend server is healthy and responsive.

mex.backend.system.main.check_valkey_status() → VersionStatus

Check the status and version of the configured cache connector.

mex.backend.system.main.get_prometheus_metrics() → str

Get connector metrics for prometheus.

Monotonically increasing metrics are named with a _total suffix, as per prometheus convention, and are announced as counters. All others are gauges.

mex.backend.system.models module

class mex.backend.system.models.GraphStatus(*, status: str)

Bases: BaseModel

Model for graph status responses.

model_config = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

status: str
class mex.backend.system.models.SystemStatus(*, status: str, version: str)

Bases: BaseModel

Model for system status responses.

model_config = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

status: str
version: str

Module contents