execution Class
Deprecated: The module is in maintenance mode only (just the the compilation issues are being fixed when referenced utilities and interfaces are being changed) and is not being extended when AFM executor have new functionality added.
Execution endpoints
executeAfm
-
projectId
-
execution
Execute AFM and fetch all data results
Parameters
-
projectId
String- GD project identifier
-
execution
AFM.IExecution
Returns
Structure with executionResponse
and executionResult
-
See https://github.com/gooddata/gooddata-typings/blob/v2.1.0/src/Execution.ts#L113
getData
-
projectId
-
columns
-
executionConfiguration
-
settings
For the given projectId it returns table structure with the given elements in column headers.
Parameters
-
projectId
String- GD project identifier
-
columns
Array- An array of attribute or metric identifiers.
-
executionConfiguration
Object- Execution configuration - can contain for example property "where" containing query-like filters property "orderBy" contains array of sorted properties to order in form [{column: 'identifier', direction: 'asc|desc'}]
-
settings
Object- Supports additional settings accepted by the underlying xhr.ajax() calls
Returns
Structure with headers
and rawData
keys filled with values from execution.
getExecutionResponse
-
projectId
-
execution
Execute AFM and return execution's response; the response describes dimensionality of the results and includes link to poll for the results.
Parameters
-
projectId
String- GD project identifier
-
execution
AFM.IExecution
Returns
Promise with executionResponse
See https://github.com/gooddata/gooddata-typings/blob/v2.1.0/src/Execution.ts#L69
getExecutionResult
-
executionResultUri
Get whole ExecutionResult
Parameters
-
executionResultUri
String
Returns
Promise with executionResult
or null
(null means empty response - HTTP 204)
See https://github.com/gooddata/gooddata-typings/blob/v2.1.0/src/Execution.ts#L88
getPartialExecutionResult
-
executionResultUri
-
limit
-
offset
Get one page of Result from Execution (with requested limit and offset)
Parameters
-
executionResultUri
String -
limit
Number- limit for each dimension
-
offset
Number- offset for each dimension
Returns
Promise with executionResult
or null
(null means empty response - HTTP 204)
See https://github.com/gooddata/gooddata-typings/blob/v2.1.0/src/Execution.ts#L88