Statistics
Get Flow rule counters
Request URL
/api/info/flows/nagr/<flow-name>/rules/<rule-id>/statistics
Description
Use this API to get the statistics details for the specified flow and rule.
Method
GET
Request Body
NA
Example URL:
https://192.168.0.35:8091/api/info/flows/nagr/flow1/rules/10/statistics
Response Body
{
"ASIC-Stat-Id": "67043328",
"Total-packets-mirrored": "0",
"map_name": "flow1",
"rule_id": "10"
}
Status code
SERVER_ERROR(500) if there is any error with the server
OK(200) if the request completes successfully
Clear Flow counters
Request URL
/api/config/stats/clear
Description
Use this API to clear the opb flow/rule/all counters
Method
POST
Request Body
NA
Example URLs:
1) To clear all counters: https://192.168.0.35:8091/api/config/stats/clear/all 2)To clear all counters inside a map
https://192.168.0.35:8091/api/config/stats/clear/flows/flow1 3)To clear a counter with specific rule-id under a map
https://192.168.0.35:8091/api/config/stats/clear/flows/flow1/rule/10
Response Body
NA
Status code
SERVER_ERROR(500) if there is any error with the server
OK(200) if the request completes successful
Clear interface counters
Request URL
/api/interfaces/config/stats/clear
Description
Use this API to clear the opb flow/rule/all counters
Method
POST
Request Body
Example URLs:
To clear interface counters:
https://192.168.0.35:8091/api/interfaces/config/stats/clear
Response Body
NA
Status code
SERVER_ERROR(500) if there is any error with the server
OK(200) if the request completes successfully
Last updated
Was this helpful?