cmem_client.models.status¤
Models for Corporate Memory aggregated status information.
Aggregates version and health metadata across the build (DataIntegration), explore (DataPlatform), shapes catalog, and graph store components.
Classes:
- CmemLicense – Corporate Memory license metadata from the DataPlatform info payload.
- ComponentStatus – Version and health of a single Corporate Memory component.
- ExploreStatus – Status of the explore (DataPlatform) component, including raw actuator payload.
- HealthState – Health state of a Corporate Memory component.
- StatusInfo – Aggregated status across all Corporate Memory components.
- StoreInfo – Graph store metadata embedded in the DataPlatform info payload.
- StoreStatus – Status of the graph store backing the DataPlatform.
- WorkspaceConfiguration – Workspace configuration metadata from the DataPlatform info payload.
Attributes:
- SHAPES_CATALOG_VERSION_QUERY – SPARQL query used to read the shapes catalog version from the explore store.
CmemLicense¤
Bases: Model
Corporate Memory license metadata from the DataPlatform info payload.
Attributes:
- edition (
str | None) – License edition (e.g. ‘PEDAL’). - grace_date (
str | None) – Date until which the license keeps working in grace period (ISO date string). - in_grace_period (
bool) – Whether the CMEM license is currently within its grace period. - model_config –
- valid_date (
str | None) – Date until which the license is valid (ISO date string).
edition¤
License edition (e.g. ‘PEDAL’).
grace_date¤
Date until which the license keeps working in grace period (ISO date string).
in_grace_period¤
Whether the CMEM license is currently within its grace period.
model_config¤
valid_date¤
Date until which the license is valid (ISO date string).
ComponentStatus¤
Bases: Model
Version and health of a single Corporate Memory component.
Attributes:
- error (
str | None) – Captured error message if status retrieval failed; None otherwise. - health (
HealthState) – Health state of the component. - model_config –
- version (
str) – Component version string as reported by its version/info endpoint.
error¤
Captured error message if status retrieval failed; None otherwise.
health¤
Health state of the component.
model_config¤
version¤
Component version string as reported by its version/info endpoint.
ExploreStatus¤
Bases: ComponentStatus
Status of the explore (DataPlatform) component, including raw actuator payload.
Attributes:
- error (
str | None) – Captured error message if status retrieval failed; None otherwise. - health (
HealthState) – Health state of the component. - health_details (
dict[str, Any] | None) – Raw payload of the DataPlatform /actuator/health endpoint (component breakdown). - info (
dict[str, Any] | None) – Raw payload of the DataPlatform /actuator/info endpoint. - license (
CmemLicense | None) – Typed CMEM license info, or None if not reported (DataPlatform < 24.1). - model_config –
- store_info (
StoreInfo | None) – Typed graph store info from the actuator payload, or None if absent. - version (
str) – Component version string as reported by its version/info endpoint. - workspace_configuration (
WorkspaceConfiguration | None) – Typed workspace configuration info, or None if absent. - workspaces_to_migrate (
list[Any]) – Workspace IDs flagged by the DataPlatform as requiring configuration migration.
error¤
Captured error message if status retrieval failed; None otherwise.
health¤
Health state of the component.
health_details¤
Raw payload of the DataPlatform /actuator/health endpoint (component breakdown).
info¤
Raw payload of the DataPlatform /actuator/info endpoint.
license¤
Typed CMEM license info, or None if not reported (DataPlatform < 24.1).
model_config¤
store_info¤
Typed graph store info from the actuator payload, or None if absent.
version¤
Component version string as reported by its version/info endpoint.
workspace_configuration¤
Typed workspace configuration info, or None if absent.
workspaces_to_migrate¤
Workspace IDs flagged by the DataPlatform as requiring configuration migration.
HealthState¤
Bases: StrEnum
Health state of a Corporate Memory component.
Functions:
- parse – Map a raw health string to a HealthState.
Attributes:
DOWN¤
UNKNOWN¤
UP¤
parse¤
Map a raw health string to a HealthState.
Treats only the literal “UP” as up; any other non-empty value is considered DOWN. Missing/empty values become UNKNOWN.
Returns:
HealthState– The matching HealthState.
SHAPES_CATALOG_VERSION_QUERY¤
SHAPES_CATALOG_VERSION_QUERY = 'PREFIX owl: <http://www.w3.org/2002/07/owl#>\nPREFIX : <https://vocab.eccenca.com/shacl/>\nSELECT ?version\nFROM :\nWHERE {\n : owl:versionInfo ?version\n}\nORDER BY ASC(?version)\n'
SPARQL query used to read the shapes catalog version from the explore store.
StatusInfo¤
Bases: Model
Aggregated status across all Corporate Memory components.
Functions:
- to_summary_dict – Render the documented
admin statusoutput contract as a plain dict.
Attributes:
- build (
ComponentStatus) – Status of the build (DataIntegration) component. - explore (
ExploreStatus) – Status of the explore (DataPlatform) component. - health (
HealthState) – Overall health: UP only if every component is UP, DOWN otherwise. - model_config –
- shapes (
ComponentStatus) – Status of the shapes catalog (queried from the explore store). - store (
StoreStatus) – Status of the graph store backing the DataPlatform.
build¤
Status of the build (DataIntegration) component.
explore¤
Status of the explore (DataPlatform) component.
health¤
Overall health: UP only if every component is UP, DOWN otherwise.
model_config¤
shapes¤
Status of the shapes catalog (queried from the explore store).
store¤
Status of the graph store backing the DataPlatform.
to_summary_dict¤
Render the documented admin status output contract as a plain dict.
Reproduces the structure historically consumed by cmemc’s admin status
command (--raw, --key, overall.healthy) and its shell completion of
status keys, sourced from this typed status model.
Returns:
dict– A dict with abuild,explore,shapes,storeandoveralldict– key, each holding the version and health of that component where available.
StoreInfo¤
Bases: Model
Graph store metadata embedded in the DataPlatform info payload.
Attributes:
- license_expiration (
str | None) – Graph store license expiration date (ISO date string), if reported. - model_config –
- type (
str) – Store implementation (e.g. ‘GRAPHDB’, ‘TENTRIS’). - version (
str) – Store version string.
license_expiration¤
Graph store license expiration date (ISO date string), if reported.
model_config¤
type¤
Store implementation (e.g. ‘GRAPHDB’, ‘TENTRIS’).
version¤
Store version string.
StoreStatus¤
Bases: ComponentStatus
Status of the graph store backing the DataPlatform.
Attributes:
- error (
str | None) – Captured error message if status retrieval failed; None otherwise. - health (
HealthState) – Health state of the component. - model_config –
- type (
str) – Store implementation (e.g. ‘GRAPHDB’, ‘TENTRIS’). - version (
str) – Component version string as reported by its version/info endpoint.
error¤
Captured error message if status retrieval failed; None otherwise.
health¤
Health state of the component.
model_config¤
type¤
Store implementation (e.g. ‘GRAPHDB’, ‘TENTRIS’).
version¤
Component version string as reported by its version/info endpoint.
WorkspaceConfiguration¤
Bases: Model
Workspace configuration metadata from the DataPlatform info payload.
Attributes:
- model_config –
- version (
int | None) – Workspace configuration version. - workspaces_to_migrate (
list[Any]) – Workspaces flagged as requiring configuration migration.
model_config¤
version¤
Workspace configuration version.
workspaces_to_migrate¤
Workspaces flagged as requiring configuration migration.
The DataPlatform reports each entry as an object (e.g. with iri/label/version); the items are kept untyped because they are only used to detect whether a migration is pending.