Flux

For all flux queries, you have a pagination that allows you to retrieve the data.

"meta": {
    "total": 122170,
    "per_page": 100,
    "current_page": 1,
    "last_page": 1222,
    "first_page": 1
},

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

Name
Type
Description

sensor_id*

1

Query Parameters

Name
Type
Description

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.

Query Parameters

Last updated