{
"datasource": {
"id": 0,
"type": "druid"
},
"force": true,
"queries": [
{
"annotation_layers": [
{
"annotationType": "FORMULA",
"color": "string",
"descriptionColumns": [
"string"
],
"hideLine": true,
"intervalEndColumn": "string",
"name": "string",
"opacity": "",
"overrides": {
"property1": null,
"property2": null
},
"show": true,
"showMarkers": true,
"sourceType": "",
"style": "dashed",
"timeColumn": "string",
"titleColumn": "string",
"value": null,
"width": 0
}
],
"applied_time_extras": {
"__time_range": "1 year ago : now"
},
"columns": [
"string"
],
"datasource": {
"id": 0,
"type": "druid"
},
"druid_time_origin": "string",
"extras": {
"druid_time_origin": "string",
"having": "string",
"having_druid": [
{
"col": "country",
"op": "==",
"val": [
"China",
"France",
"Japan"
]
}
],
"relative_end": "today",
"relative_start": "today",
"time_grain_sqla": "PT1S",
"time_range_endpoints": [
"unknown"
],
"where": "string"
},
"filters": [
{
"col": "country",
"op": "==",
"val": [
"China",
"France",
"Japan"
]
}
],
"granularity": "string",
"granularity_sqla": "string",
"groupby": [
"string"
],
"having": "string",
"having_filters": [
{
"col": "country",
"op": "==",
"val": [
"China",
"France",
"Japan"
]
}
],
"is_rowcount": true,
"is_timeseries": true,
"metrics": [
null
],
"order_desc": true,
"orderby": [
[
"my_col_1",
false
],
[
"my_col_2",
true
]
],
"post_processing": [
{
"operation": "aggregate",
"options": {
"aggregates": {
"age_mean": {
"column": "age",
"operator": "mean"
},
"age_q1": {
"column": "age",
"operator": "percentile",
"options": {
"q": 0.25
}
}
},
"groupby": [
"country",
"gender"
]
}
}
],
"result_type": null,
"row_limit": 0,
"row_offset": 0,
"time_range": "Last week",
"time_shift": "string",
"timeseries_limit": 0,
"timeseries_limit_metric": null,
"url_params": {
"property1": "string",
"property2": "string"
},
"where": "string"
}
],
"result_format": null,
"result_type": null
}
curl --location --request POST '/chart/data' \
--header 'Content-Type: application/json' \
--data-raw '{
"datasource": {
"id": 0,
"type": "druid"
},
"force": true,
"queries": [
{
"annotation_layers": [
{
"annotationType": "FORMULA",
"color": "string",
"descriptionColumns": [
"string"
],
"hideLine": true,
"intervalEndColumn": "string",
"name": "string",
"opacity": "",
"overrides": {
"property1": null,
"property2": null
},
"show": true,
"showMarkers": true,
"sourceType": "",
"style": "dashed",
"timeColumn": "string",
"titleColumn": "string",
"value": null,
"width": 0
}
],
"applied_time_extras": {
"__time_range": "1 year ago : now"
},
"columns": [
"string"
],
"datasource": {
"id": 0,
"type": "druid"
},
"druid_time_origin": "string",
"extras": {
"druid_time_origin": "string",
"having": "string",
"having_druid": [
{
"col": "country",
"op": "==",
"val": [
"China",
"France",
"Japan"
]
}
],
"relative_end": "today",
"relative_start": "today",
"time_grain_sqla": "PT1S",
"time_range_endpoints": [
"unknown"
],
"where": "string"
},
"filters": [
{
"col": "country",
"op": "==",
"val": [
"China",
"France",
"Japan"
]
}
],
"granularity": "string",
"granularity_sqla": "string",
"groupby": [
"string"
],
"having": "string",
"having_filters": [
{
"col": "country",
"op": "==",
"val": [
"China",
"France",
"Japan"
]
}
],
"is_rowcount": true,
"is_timeseries": true,
"metrics": [
null
],
"order_desc": true,
"orderby": [
[
"my_col_1",
false
],
[
"my_col_2",
true
]
],
"post_processing": [
{
"operation": "aggregate",
"options": {
"aggregates": {
"age_mean": {
"column": "age",
"operator": "mean"
},
"age_q1": {
"column": "age",
"operator": "percentile",
"options": {
"q": 0.25
}
}
},
"groupby": [
"country",
"gender"
]
}
}
],
"result_type": null,
"row_limit": 0,
"row_offset": 0,
"time_range": "Last week",
"time_shift": "string",
"timeseries_limit": 0,
"timeseries_limit_metric": null,
"url_params": {
"property1": "string",
"property2": "string"
},
"where": "string"
}
],
"result_format": null,
"result_type": null
}'
{
"result": [
{
"annotation_data": [
{
"property1": "string",
"property2": "string"
}
],
"applied_filters": [
{}
],
"cache_key": "string",
"cache_timeout": 0,
"cached_dttm": "string",
"data": [
{}
],
"error": "string",
"is_cached": true,
"query": "string",
"rejected_filters": [
{}
],
"rowcount": 0,
"stacktrace": "string",
"status": "stopped"
}
]
}