MCPcopy
hub / github.com/zenml-io/zenml / get_store_info

Method get_store_info

src/zenml/zen_stores/sql_zen_store.py:1751–1768  ·  view source on GitHub ↗

Get information about the store. Returns: Information about the store.

(self)

Source from the content-addressed store, hash-verified

1749 FlavorRegistry().register_flavors(store=self)
1750
1751 def get_store_info(self) -> ServerModel:
1752 """Get information about the store.
1753
1754 Returns:
1755 Information about the store.
1756 """
1757 model = super().get_store_info()
1758 sql_url = make_url(self.config.url)
1759 model.database_type = ServerDatabaseType(sql_url.drivername)
1760 settings = self.get_server_settings(hydrate=True)
1761 # Fetch the deployment ID from the database and use it to replace
1762 # the one fetched from the global configuration
1763 model.id = settings.server_id
1764 model.name = settings.server_name
1765 model.active = settings.active
1766 model.last_user_activity = settings.last_user_activity
1767 model.analytics_enabled = settings.enable_analytics
1768 return model
1769
1770 def get_deployment_id(self) -> UUID:
1771 """Get the ID of the deployment.

Callers 15

create_userMethod · 0.95
active_projectMethod · 0.45
get_cloud_dashboard_urlFunction · 0.45
get_server_dashboard_urlFunction · 0.45
get_run_log_metadataFunction · 0.45
infoFunction · 0.45
statusFunction · 0.45
server_infoFunction · 0.45

Calls 2

get_server_settingsMethod · 0.95
ServerDatabaseTypeClass · 0.90

Tested by 1

_get_secrets_store_typeFunction · 0.36