Statistics

Get Flow rule counters

Request URL

/api/info/flows/<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

Response Body

{

"map_name": "flow1",

"ASIC-Stat-Id": "27",

"rule_id": "1",

"Total-packets-mirrored": "0"

}

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/all or /api/config/stats/clear/flows/flow1 or /api/config/stats/clear/flows/flow1/rules/10

Description

Use this API to clear the opb flow/rule/all counters

Method

POST

Request Body

NA

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 interface counters

Method

POST

Request Body

NA

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