Get Aggregate Definition Details
GET/aggregates/orgId/:orgId
Obtain details about aggregate definitions. You can query by ID, project, project ID, cube ID, status, and subtype.
Request
Path Parameters
ID of the organization for which you want to obtain aggregate definition details.
Query Parameters
ID of the aggregate definition
Name of the project for which you need definitions
ID of the project for which you need definitions
ID of the cube for which you need definitions
Status of the definitions you need. Value should be 'active', 'invalid', or 'pending'.
Type of the definitions you need. Value should be 'prediction_defined', 'demand_defined', or 'manual' (for user-defined aggregates).
Responses
- 200
- 400
- 401
- 404
- 500
Success.
- application/json
- Schema
- Example (from schema)
- Example
Schema
any
{
"response": [
{
"data": [
{
"id": "c197f3b9-7f4b-4f0a-84b4-def0159a53d3",
"name": "UDA color",
"type": "user_defined",
"subtype": "manual",
"incremental": false,
"organization_id": "default",
"project_id": "8d42bf05-2571-437a-586c-9b60862b5936",
"project_caption": "Alpha",
"cube_id": "d623656f-9a54-4e13-49b6-dabc108128f3",
"cube_name": "Alpha 1",
"cube_caption": "Alpha 1",
"connection_id": "con1",
"system_defined_with_distinct_count": false,
"promoted": false,
"distribution": {
"distribution_keys": [],
"bucket_count": null
},
"partitions": [],
"indexes": {
"index_columns": []
},
"attributes": [
{
"name": "Color",
"type": "dimension",
"partitioned": false
},
{
"name": "Color Key",
"type": "key",
"partitioned": false
}
],
"stats": {
"created_at": "2023-07-03T09:43:16.622946Z",
"average_build_duration": 236,
"query_utilization": 0
},
"latest_instance": {
"id": "e0bc4492-8ce8-495d-a227-254f6dab834d",
"status": "active",
"message": "Normal aggregate activated",
"table_name": "as_agg_e0bc4492_uda_color",
"table_schema": "as_adventure",
"stats": {
"materialization_start_time": "2023-07-03T09:43:16.840573Z",
"materialization_end_time": "2023-07-03T09:43:17.077188Z",
"build_duration": 236,
"number_of_rows": 8
},
"build_query_id": "0a0c1e36-9065-4357-bf73-81b5789c38e3",
"project_id": "8d42bf05-2571-437a-586c-9b60862b5936",
"cube_id": "d623656f-9a54-4e13-49b6-dabc108128f3",
"definition_id": "c197f3b9-7f4b-4f0a-84b4-def0159a53d3",
"connection_id": "con1"
},
"active_instance": {
"id": "e0bc4492-8ce8-495d-a227-254f6dab834d",
"status": "active",
"message": "Normal aggregate activated",
"table_name": "as_agg_e0bc4492_uda_color",
"table_schema": "as_adventure",
"stats": {
"materialization_start_time": "2023-07-03T09:43:16.840573Z",
"materialization_end_time": "2023-07-03T09:43:17.077188Z",
"build_duration": 236,
"number_of_rows": 8
},
"build_query_id": "0a0c1e36-9065-4357-bf73-81b5789c38e3",
"project_id": "8d42bf05-2571-437a-586c-9b60862b5936",
"cube_id": "d623656f-9a54-4e13-49b6-dabc108128f3",
"definition_id": "c197f3b9-7f4b-4f0a-84b4-def0159a53d3",
"connection_id": "con1"
},
"most_recent_status": "active",
"blocked": false
}
],
"total": 1,
"limit": 10,
"offset": 0,
"force_pull": false
}
],
"status": {
"i18n_message": "response.ok",
"message": "OK"
}
}
{
"response": [
{
"data": [
{
"id": "c197f3b9-7f4b-4f0a-84b4-def0159a53d3",
"name": "UDA color",
"type": "user_defined",
"subtype": "manual",
"incremental": false,
"organization_id": "default",
"project_id": "8d42bf05-2571-437a-586c-9b60862b5936",
"project_caption": "Alpha",
"cube_id": "d623656f-9a54-4e13-49b6-dabc108128f3",
"cube_name": "Alpha 1",
"cube_caption": "Alpha 1",
"connection_id": "con1",
"system_defined_with_distinct_count": false,
"promoted": false,
"distribution": {
"distribution_keys": [],
"bucket_count": null
},
"partitions": [],
"indexes": {
"index_columns": []
},
"attributes": [
{
"name": "Color",
"type": "dimension",
"partitioned": false
},
{
"name": "Color Key",
"type": "key",
"partitioned": false
}
],
"stats": {
"created_at": "2023-07-03T09:43:16.622946Z",
"average_build_duration": 236,
"query_utilization": 0
},
"latest_instance": {
"id": "e0bc4492-8ce8-495d-a227-254f6dab834d",
"status": "active",
"message": "Normal aggregate activated",
"table_name": "as_agg_e0bc4492_uda_color",
"table_schema": "as_adventure",
"stats": {
"materialization_start_time": "2023-07-03T09:43:16.840573Z",
"materialization_end_time": "2023-07-03T09:43:17.077188Z",
"build_duration": 236,
"number_of_rows": 8
},
"build_query_id": "0a0c1e36-9065-4357-bf73-81b5789c38e3",
"project_id": "8d42bf05-2571-437a-586c-9b60862b5936",
"cube_id": "d623656f-9a54-4e13-49b6-dabc108128f3",
"definition_id": "c197f3b9-7f4b-4f0a-84b4-def0159a53d3",
"connection_id": "con1"
},
"active_instance": {
"id": "e0bc4492-8ce8-495d-a227-254f6dab834d",
"status": "active",
"message": "Normal aggregate activated",
"table_name": "as_agg_e0bc4492_uda_color",
"table_schema": "as_adventure",
"stats": {
"materialization_start_time": "2023-07-03T09:43:16.840573Z",
"materialization_end_time": "2023-07-03T09:43:17.077188Z",
"build_duration": 236,
"number_of_rows": 8
},
"build_query_id": "0a0c1e36-9065-4357-bf73-81b5789c38e3",
"project_id": "8d42bf05-2571-437a-586c-9b60862b5936",
"cube_id": "d623656f-9a54-4e13-49b6-dabc108128f3",
"definition_id": "c197f3b9-7f4b-4f0a-84b4-def0159a53d3",
"connection_id": "con1"
},
"most_recent_status": "active",
"blocked": false
}
],
"total": 1,
"limit": 10,
"offset": 0,
"force_pull": false
}
],
"status": {
"i18n_message": "response.ok",
"message": "OK"
}
}
Invalid request for example: Invalid parameters, missing parameters.
Unauthorized. This error will occur if calling user does not have access right for the API.
Unauthorized. This error will occur if calling user does not have access right for the API.
A server error occurred. Check the logs for more details.