Flux
For all flux queries, you have a pagination that allows you to retrieve the data.
Fields with * are required.
Flux by detail
Get all flux of a sensor between two dates.
GET
https://api.control.serenicity.fr/api/v1/sensors/:sensor_id/flux
Return list of flux. Filtering options are available.
Path Parameters
sensor_id*
1
Query Parameters
from*
2022-01-01T00:00:00Z
Start date in ISO format
to*
2022-02-01T00:00:00Z
End date in ISO format
ip0
192.168.1.1
Filter with private IP/device
ip1
1.1.1.1
Filter with public IP
protocol
TCP
Filter on specific protocol
port
22
Filter on specific port
mac_address
00:15:5d:86:eb:5f
Filter on specific mac_address
only_toxic
true
Filter only toxic flux
only_in
true
Filter only ingoing flux
only_out
true
Filter only outgoing
sort_by
ip0
Sort by specific field. One of : ip0, ip1, startOfHour, sumFlux, dir, protocol, port
sort_desc
true
Sort desc according to sort by param
page
1
By default 1. The page has to be between last_page
and first_page
.
per_page
100
Number of flux per page. 100 by default.
Flux by IP0 and hour
Flux are grouped by local IP (IP0) and hour.
There are statistics for each IP0/hour on the volumetry of ingoing/outgoing flux (in_flux, out_flux
) and toxic flux (in_toxic_flux, out_toxic_flux
).
There are the same statistics about the count of toxic and total count of flux (toxic_count, count).
You can also find the cyberweather (cyt
).
Get all flux of a sensor grouped by hour and IP0 between two dates.
GET
https://api.control.serenicity.fr/api/v1/sensors/:sensor_id/flux-hour-ip0
Return list of flux with statistics. Filtering options are available.
Path Parameters
sensor_id*
1
Query Parameters
from*
2022-01-01T00:00:00Z
Start date in ISO format
to*
2022-02-01T00:00:00Z
End date in ISO format
ip0
192.168.1.1
Filter with private IP/device
sort_by
ip0
Sort by specific field. One of : ip0, utc_hour
sort_desc
true
Sort desc according to sort by param
page
1
By default 1. The page has to be between last_page
and first_page
.
per_page
100
Number of flux per page. 100 by default.
Flux by hour
Flux are grouped by hour.
There are statistics for each hour on ingoing/outgoing volume (in_flux, out_flux
) and toxic volume (in_toxic_flux, out_toxic_flux
).
There are the same statistics about the count of toxic and total count of flux (toxic_count, count).
You can also find the cyberweather (cyt
).
Get all flux of a sensor grouped by hour between two dates.
GET
https://api.control.serenicity.fr/api/v1/sensors/:sensor_id/flux-hour-sensor
Return list of flux with statistics. Filtering options are available.
Path Parameters
sensor_id*
1
Query Parameters
from*
2022-01-01T00:00:00Z
Start date in ISO format
to*
2022-02-01T00:00:00Z
End date in ISO format
sort_by
ip0
Sort by specific field. One of : utc_hour
sort_desc
true
Sort desc according to sort by param
page
1
By default 1. The page has to be between last_page
and first_page
.
per_page
100
Number of flux per page. 100 by default.
Last updated