curl --location --request POST 'https://api.flashcat.cloud/api/n9e-plus/query-batch' \
--header 'X-User-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"queries": [
{
"ref": "A",
"ds_id": 1,
"ds_cate": "prometheus",
"query": {
"ql": "go_memstats_sys_bytes",
"start": 1713248879,
"end": 1713252479,
"step": 15,
"ref": "A",
"instant": false
}
},
{
"ref": "B",
"ds_id": 2,
"ds_cate": "aliyun-sls",
"query": {
"project": "sls-api-testing",
"logstore": "demo_nginx_access_log",
"from": 1713261406,
"to": 1713261586,
"lines": 500,
"offset": 0,
"reverse": false,
"query": "* | SELECT uri,time_series(__time__, '\''1m'\'', '\''%H:%i:%s'\'', '\''0'\'') t,COUNT(uri) c GROUP BY uri,t having c > 0 ORDER BY t asc limit 10000",
"keys": {
"valueKey": "c",
"labelKey": "uri",
"timeKey": "t",
"timeFormat": "%H:%i:%s"
}
}
}
],
"exps": [
{
"ref": "C",
"exp": "$A/$B"
}
]
}'{
"dat": [
{
"ref": "A",
"data": [
{
"ref": "A",
"metric": {
"__name__": "go_memstats_sys_bytes",
"instance": "localhost:17000",
"job": "nightingale"
},
"values": [
[
1713248879,
90132760
],
[
1713248894,
90132760
],
[
1713248909,
90132760
],
[
1713248924,
90132760
],
[
1713248939,
90132760
],
[
1713248954,
90132760
],
[
1713248969,
90132760
],
[
1713248984,
90132760
],
[
1713248999,
90132760
],
[
1713249014,
90132760
],
[
1713249029,
90394904
],
[
1713249044,
90394904
],
[
1713249059,
90394904
],
[
1713249074,
90394904
],
[
1713249089,
90394904
],
[
1713249104,
90394904
],
[
1713249119,
90394904
],
[
1713249134,
90394904
],
[
1713249149,
90394904
],
[
1713249164,
90394904
],
[
1713249179,
90394904
],
[
1713249194,
90394904
],
[
1713249209,
90394904
],
[
1713249224,
90394904
],
[
1713249239,
90394904
],
[
1713249254,
90394904
],
[
1713249269,
90394904
],
[
1713249284,
90394904
],
[
1713249299,
90394904
],
[
1713249314,
90394904
],
[
1713249329,
90394904
],
[
1713249344,
90394904
],
[
1713249359,
90394904
],
[
1713249374,
90394904
],
[
1713249389,
90394904
],
[
1713249404,