gooddata_sdk.compute.service.ComputeService

class gooddata_sdk.compute.service.ComputeService(api_client: gooddata_sdk.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: gooddata_sdk.client.GoodDataApiClient)

Methods

__init__(api_client)

for_exec_def(workspace_id, exec_def)

Starts computation in GoodData.CN workspace, using the provided execution definition.

for_exec_def(workspace_id: str, exec_def: gooddata_sdk.compute.model.execution.ExecutionDefinition) gooddata_sdk.compute.model.execution.ExecutionResponse

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

Returns