​
Select Service
ves-io-schema-app_firewall-CustomDataAPI-MetricsAllNamespaces
Published April 5, 2023 | Last modified June 22, 2026
Examples of performing app_firewall CustomDataAPI MetricsAllNamespaces
Usecase:
Perform MetricsAllNamespaces on app_firewall
Request:
Request using vesctl:
vesctl request rpc app_firewall.CustomDataAPI.MetricsAllNamespaces -i request.yaml --uri /public/namespaces/system/app_firewall/all_ns_metrics --http-method POST
where file request.yaml has following contents:
fieldSelector:- BOT_DETECTIONvesctl yaml response:
data:- data: - key: BOT_CLASSIFICATION: benign value: - timestamp: 1.547429640611e+09 value: "1024"Request using curl:
curl -X 'POST' -d '{"field_selector":["BOT_DETECTION"]}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_var_folders_q2_3kp8z3zs0x5_m7pk1bgb0_ph0000gp_T_go-build1655461974_b001_apidocs.test/host=MTY6VVHQPH/svc=S:examplesvc/site=mytestce01' 'https://acmecorp.console.ves.volterra.io/api/data/namespaces/system/app_firewall/all_ns_metrics'curl response:
HTTP/1.1 200 OKContent-Length: 399Content-Type: application/jsonDate: Fri, 19 Jun 2026 22:02:25 GMTVary: Accept-Encoding
{ "data": [ { "type": "BOT_DETECTION", "data": [ { "key": { "BOT_CLASSIFICATION": "benign" }, "value": [ { "timestamp": 1547429640.611, "value": "1024", "trend_value": null } ] } ], "unit": "UNIT_MILLISECONDS" } ], "step": ""}