cmem_client.models.status¤
Models for eccenca Corporate Memory aggregated status information.
Aggregates version and health metadata across the build (DataIntegration), explore (DataPlatform), shapes catalog, graph store, marketplace, and Graph Insights 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.
- GraphInsightsStatus – Status of the Graph Insights (semspect) extension.
- HealthState – Health state of a Corporate Memory component.
- MarketplaceStatus – Status of the local marketplace bundled beside this Corporate Memory instance.
- 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 Corporate Memory 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 Corporate Memory 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 Corporate Memory 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 Corporate Memory 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.
GraphInsightsStatus¤
Bases: ComponentStatus
Status of the Graph Insights (semspect) extension.
Attributes:
- applicable (
bool) – Whether Graph Insights is expected on this deployment. - 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.
applicable¤
Whether Graph Insights is expected on this deployment.
Graph Insights is an optional extension, so this is set to False when it is not active for this deployment and user. Not applicable Graph Insights status is left out of both the overall health rollup and the summary dict.
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.
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.
MarketplaceStatus¤
Bases: ComponentStatus
Status of the local marketplace bundled beside this Corporate Memory instance.
Attributes:
- applicable (
bool) – Whether the marketplace is expected on this deployment. - 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.
applicable¤
Whether the marketplace is expected on this deployment.
The marketplace was introduced in Corporate Memory v26.2; on an older build it is optional, so a DOWN marketplace on such a build is set to False here. Not applicable marketplace status is left out of both the overall health rollup and the summary dict, instead of being reported as DOWN.
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.
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. - graphinsights (
GraphInsightsStatus) – Status of the Graph Insights (semspect) extension. - health (
HealthState) – Overall health: UP only if every applicable component is UP, DOWN otherwise. - marketplace (
MarketplaceStatus) – Status of the local marketplace bundled beside this Corporate Memory instance. - 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.
graphinsights¤
Status of the Graph Insights (semspect) extension.
health¤
Overall health: UP only if every applicable component is UP, DOWN otherwise.
Graph Insights only counts once its health is known: a Graph Insights build without actuator endpoints reports UNKNOWN, which is not treated as a failure.
marketplace¤
Status of the local marketplace bundled beside this Corporate Memory instance.
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.