Get Application Flow Counts

Get Application Flow Counts
Get ingress, egress, and intra-application flow counts for an application

Retrieve the ingress, egress, and intra-application unique flow counts for a specific application over a specified time interval.

  • ingress_flow_count - unique flows entering the application from outside
  • egress_flow_count - unique flows leaving the application to outside
  • intra_flow_count - unique flows between workloads within the same application

The {application-id} comes from the id field in POST /monitoring/applications/results-by-app results. If time_selection is omitted, defaults to the last 1 hour.

Request
URI
POST
https://{api_host}/intelligence/monitoring/applications/{application-id}/flow-counts
COPY
Path Parameters
string
application-id
Required  

The unique identifier of the application (UUID from POST /monitoring/applications/results-by-app)

application-id example
398d1f18-cbdf-4960-b881-bb4e160952a8

Request Body

Time range for the flow count query

AppMonitoringFlowCountsRequest of type(s) application/json
Required  
{
    "time_selection": {
        "start_time": 1781806113924
    }
}
object
time_selection
Optional

Time parameters for querying monitoring data. Specifies the start time for the query window, with the end time implicitly set to the current time. The system will examine monitoring metrics from the specified start_time to now.

Authentication
This operation uses the following authentication methods.
Responses
200

OK. Successfully retrieved flow counts.

Returns AppMonitoringFlowCountsResponse of type(s) application/json
{
    "ingress_flow_count": 0,
    "egress_flow_count": 0,
    "intra_flow_count": 0
}
integer As int64 As int64
ingress_flow_count
Optional

Number of unique flows entering the application from outside its boundary.

integer As int64 As int64
egress_flow_count
Optional

Number of unique flows leaving the application to outside its boundary.

integer As int64 As int64
intra_flow_count
Optional

Number of unique flows between workloads within the same application.


400

Bad Request

Returns BadRequest of type(s) application/json
{
    "error_code": 0,
    "module_name": "string",
    "error_message": "string"
}
integer
error_code
Required  

HTTP Status or Application error code.

string
module_name
Optional

Module where the error happened.

string
error_message
Required  

Message describing the error.


401

Unauthorized

Returns Unauthorized of type(s) application/json
{
    "error_code": 0,
    "module_name": "string",
    "error_message": "string"
}
integer
error_code
Required  

HTTP Status or Application error code.

string
module_name
Optional

Module where the error happened.

string
error_message
Required  

Message describing the error.


403

Forbidden

Returns Forbidden of type(s) application/json
{
    "error_code": 0,
    "module_name": "string",
    "error_message": "string"
}
integer
error_code
Required  

HTTP Status or Application error code.

string
module_name
Optional

Module where the error happened.

string
error_message
Required  

Message describing the error.


412

Precondition Failed

Returns PreconditionFailed of type(s) application/json
{
    "error_code": 0,
    "module_name": "string",
    "error_message": "string"
}
integer
error_code
Required  

HTTP Status or Application error code.

string
module_name
Optional

Module where the error happened.

string
error_message
Required  

Message describing the error.


428

Precondition Required

Returns PreconditionRequired of type(s) application/json
{
    "error_code": 0,
    "module_name": "string",
    "error_message": "string"
}
integer
error_code
Required  

HTTP Status or Application error code.

string
module_name
Optional

Module where the error happened.

string
error_message
Required  

Message describing the error.


429

Too Many Requests

Returns TooManyRequests of type(s) application/json
{
    "error_code": 0,
    "module_name": "string",
    "error_message": "string"
}
integer
error_code
Required  

HTTP Status or Application error code.

string
module_name
Optional

Module where the error happened.

string
error_message
Required  

Message describing the error.


default

Error

Returns Error of type(s) application/json
{
    "error_code": 0,
    "module_name": "string",
    "error_message": "string"
}
integer
error_code
Required  

HTTP Status or Application error code.

string
module_name
Optional

Module where the error happened.

string
error_message
Required  

Message describing the error.


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/intelligence/monitoring/applications/{application-id}/flow-counts