Get Events Statistics

Get Events Statistics

Get inspection counts for the events between start_time and end_time. If sampled_statistics is set to true, inspections counts are computed for each discrete time window selected between start_time and end_time

Request
URI
GET
https://api.example.com/napp/api/v1/malware-prevention/events/statistics
COPY
Query Parameters
integer
start_time
Required

Use this request param for specifiying starting time of a timeline. Value has to be specified in milliseconds since epoch.

integer
end_time
Required

Use this request param for specifiying ending time of a timeline. Value has to be specified in milliseconds since epoch.

boolean
sampled_statistics
Optional

If this property is set to true, the /events/statistics API will return statistics for a sampled distribution. Set this param to false to get statistics for total distribution.

string of array
site_id
Optional

ID of the NSX+ site which reported this file event. If the parameter is not passed, corresponding API will respond with results across all sites managed within NSX+ instance. This parameter will support single value. If value passed is empty string, it will be considered as valid input for filtering. This parameter is supported only in NSX+.


Authentication
This operation uses the following authentication methods.
Responses
200

Successful operation

Returns EventStatisticsResult of type(s) application/json
This response body class contains all of the following: InlineEventStatisticsResult0
{
    "results": [
        {
            "time_stamp": 1605291158565,
            "number_of_malicious_inspections": 5170,
            "number_of_suspicious_inspections": 5187,
            "number_of_blocked_inspections": 5
        },
        {
            "time_stamp": 1605377558565,
            "number_of_malicious_inspections": 10073,
            "number_of_suspicious_inspections": 9927,
            "number_of_blocked_inspections": 10015
        }
    ]
}