{
"catalog": {
"id": "string"
},
"config": {
"drill": [
"string"
],
"echartType": "string",
"fields": [
{
"alias": "string",
"name": "string",
"option": {
"aggregator": "count",
"defaultValue": null,
"distinct": true,
"filter": {
"name": "string",
"op": "eq",
"value": null
}
}
}
],
"group": [
{
"alias": "string",
"name": "*",
"option": {
"format": "Y-m-dTH:M:00",
"method": "$dateToString"
}
}
],
"groupAlias": [
"string"
],
"limit": 1000,
"noGroupBy": true,
"offset": 0,
"order": [
{
"desc": true,
"name": "string"
}
],
"stack": [
"string"
],
"where": [
[
{
"name": "string",
"op": "eq",
"value": null
}
]
]
},
"datasetId": "string",
"name": "string",
"order": 0,
"style": {}
}
curl --location --request POST '/ds/view/preview' \
--header 'Authorization: {{ACCESS_TOKEN}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"catalog": {
"id": "string"
},
"config": {
"drill": [
"string"
],
"echartType": "string",
"fields": [
{
"alias": "string",
"name": "string",
"option": {
"aggregator": "count",
"defaultValue": null,
"distinct": true,
"filter": {
"name": "string",
"op": "eq",
"value": null
}
}
}
],
"group": [
{
"alias": "string",
"name": "*",
"option": {
"format": "Y-m-dTH:M:00",
"method": "$dateToString"
}
}
],
"groupAlias": [
"string"
],
"limit": 1000,
"noGroupBy": true,
"offset": 0,
"order": [
{
"desc": true,
"name": "string"
}
],
"stack": [
"string"
],
"where": [
[
{
"name": "string",
"op": "eq",
"value": null
}
]
]
},
"datasetId": "string",
"name": "string",
"order": 0,
"style": {}
}'
{
"args": [
null
],
"data": [
null
],
"fields": [
{
"biType": "string",
"biTypeFmt": "precision:ms",
"calculated": true,
"checked": true,
"colIndex": 0,
"createdAt": "2019-08-24T14:15:22Z",
"id": "string",
"isMeasure": true,
"name": "string",
"originalBiType": "string",
"originalName": "string",
"originalType": "varchar",
"size": 0,
"style": {},
"tableId": "string",
"tableName": "string",
"updatedAt": "2019-08-24T14:15:22Z",
"userColIdx": 0
}
],
"isDefault": true,
"sql": "string",
"stat": {
"grouped": true,
"limit": 0,
"nCategories": 0,
"nStacks": 0,
"nValues": 0,
"offset": 0,
"reqFields": 0,
"reqGroups": 0,
"reqStacks": 0,
"stacked": true
},
"style": {}
}