Project
- async AsyncCogniteClient.data_modeling.statistics.project() ProjectStatistics
Retrieve project-wide usage data and limits.
Returns the usage data and limits for a project’s data modelling usage, including data model schemas and graph instances
- Returns:
The requested statistics and limits
- Return type:
Examples
Fetch project statistics (and limits) and check the current number of data models vs. and how many more can be created:
>>> from cognite.client import CogniteClient, AsyncCogniteClient >>> client = CogniteClient() >>> # async_client = AsyncCogniteClient() # another option >>> stats = client.data_modeling.statistics.project() >>> data_model_count = stats.data_models.count >>> available_count = stats.data_models.limit - data_model_count