​
Select Service
ves-io-schema-flow-CustomAPI-TopTalkers
Published April 5, 2023 | Last modified November 14, 2025
Examples of performing flow CustomAPI TopTalkers
Usecase:
Top Talkers
Request:
Request using vesctl:
vesctl request rpc flow.CustomAPI.TopTalkers -i request.yaml --uri /public/namespaces/system/flows/top_talkers --http-method POST
where file request.yaml has following contents:
endTime: "1593622800"
fieldSelector:
- BYTES
filter: '{SITE="site-1"}'
groupBy:
- SITE
- SRC_IP
startTime: "1593619200"
Copied!
vesctl yaml response:
data:
- data:
- labels:
SITE: site-1
SRC_IP: 73.83.237.45
value:
- timestamp: 1593622800
value: "1024"
- labels:
SITE: site-2
SRC_IP: 73.83.237.45
value:
- timestamp: 1593622800
value: "1024"
Copied!
Request using curl:
curl -X 'POST' -d '{"filter":"{SITE=\"site-1\"}","group_by":["SITE","SRC_IP"],"field_selector":["BYTES"],"start_time":"1593619200","end_time":"1593622800"}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_var_folders_q2_3kp8z3zs0x5_m7pk1bgb0_ph0000gp_T_go-build4194363419_b001_apidocs.test/host=MTY6VVHQPH/svc=S:examplesvc/site=mytestce01' 'https://acmecorp.console.ves.volterra.io/api/data/namespaces/system/flows/top_talkers'
Copied!
curl response:
HTTP/1.1 200 OK
Content-Length: 688
Content-Type: application/json
Date: Thu, 13 Nov 2025 23:06:06 GMT
Vary: Accept-Encoding
{
"data": [
{
"type": "BYTES",
"data": [
{
"labels": {
"SITE": "site-1",
"SRC_IP": "73.83.237.45"
},
"value": [
{
"timestamp": 1593622800,
"value": "1024",
"trend_value": null
}
]
},
{
"labels": {
"SITE": "site-2",
"SRC_IP": "73.83.237.45"
},
"value": [
{
"timestamp": 1593622800,
"value": "1024",
"trend_value": null
}
]
}
],
"unit": "UNIT_MILLISECONDS"
}
]
}
Copied!