This URL is used to retrieve the flows statistics for a Sensor.
Resource URL
GET /sensor/{sensorId}/trafficstats/flows
Request Parameters
URL Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Sensor id | Number | Yes |
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Field Name | Description | Data Type |
|---|---|---|
| Shows overall flow usage for a given Sensor | String |
| Shows whether inbound SYN cookie protection is active or inactive. Can have two values:
| String |
| Shows whether outbound SYN cookie protection is active or inactive. Can have two values:
| String |
| Shows total number of flows processed | String |
| Shows total number of active flows | String |
| Shows total number of active flows using SYN cookies | String |
| Shows total number of flows using SYN state | String |
| Shows total number of flows using wait state | String |
| Shows total number of inactive flows | String |
| Shows total number of flows that are timed out | String |
| Shows total number of active UDP flows | String |
Example
Request
GET https://<NSM_IP>/sdkapi/sensor/1009/trafficstats/flows
Response
{
"overallFlowUsage":0,
"inboundSynCookieProtection":"Inactive",
"outboundSynCookieProtection":"Inactive",
"totalFlowsProcessed":59271,
"totalFlowsActive":0,
"totalFlowsActiveUsingSYNcookies":0,
"totalFlowsInSYNState":0,
"totalFlowsInTimeWaitState":0,
"totalFlowsInactive":205,
"totalFlowsTimedOut":4287,
"udpFlowsActive":0
}
Error Information
Following error code is returned by this URL:
No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 404 | Invalid Sensor: When the device id given is not valid |