gooddata_sdk.compute.service.ComputeService
- class gooddata_sdk.compute.service.ComputeService(api_client: GoodDataApiClient)
Bases:
object
Compute service drives computation of analytics for a GoodData.CN workspaces. The prescription of what to compute is encapsulated by the ExecutionDefinition which consists of attributes, metrics, filters and definition of dimensions that influence how to organize the data in the result.
- __init__(api_client: GoodDataApiClient)
Methods
__init__
(api_client)for_exec_def
(workspace_id, exec_def)Starts computation in GoodData.CN workspace, using the provided execution definition.
get_exec_metadata
(workspace_id, result_id)Gets execution result's metadata from GoodData.CN workspace for given execution result ID.
- for_exec_def(workspace_id: str, exec_def: ExecutionDefinition) Execution
Starts computation in GoodData.CN workspace, using the provided execution definition.
- Parameters
workspace_id – workspace identifier
exec_def – execution definition - this prescribes what to calculate, how to place labels and metric values into dimensions
- get_exec_metadata(workspace_id: str, result_id: str) ResultCacheMetadata
Gets execution result’s metadata from GoodData.CN workspace for given execution result ID.
- Parameters
workspace_id – workspace identifier
result_id – execution result ID
- Returns
execution result’s metadata