Skip to content

Sensor Usage

The Sensor Usage service collection provides operations for retrieving sensor usage statistics. Fetch hourly or weekly averages representing how many unique AIDs were active over the previous 28 days, with support for FQL filters to narrow results by date, period, and CID selection.

LanguageLast Update
Pythonv1.6.1
PowerShellv2.2.9
Gov0.20.0
TypeScriptv0.6.0
Rustv0.7.0
Rubyv1.2.0
OperationDescription
GetSensorUsageHourly
get_hourly_usage
Fetches hourly average. Each data point represents the average of how many unique AIDs were seen per hour for the previous 28 days.
GetSensorUsageWeekly
get_weekly_usage
Fetches weekly average. Each data point represents the average of how many unique AIDs were seen per week for the previous 28 days.

Fetches hourly average. Each data point represents the average of how many unique AIDs were seen per hour for the previous 28 days.

GET /billing-dashboards-usage/aggregates/hourly-average/v1
Scope Sensor Usage: READ Consumes · Produces application/json
PEP 8 get_hourly_usage
NameTypeData typeDescription
filterquerystringThe FQL search filter.
parametersquerydictionaryFull query string parameters payload in JSON format. Not required if using other keywords.
FilterDescription
event_dateA specified date that will be final date of the results returned. Specified date cannot be after the default. Format: 2024-06-11, Default: the current date, minus 2 days, in UTC
periodAn integer surrounded by single quotes representing the number of days to return. Format: 30, Default: 28, Minimum: 1, Maximum: 395
selected_cidsA comma delimited list of CIDs to return data for. Caller must be a parent CID or have special access enabled. Format: cid_1,cid_2,cid_3, Default: for parent CIDs the default is the parent and all children, otherwise the current CID
from falconpy import SensorUsage
falcon = SensorUsage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_hourly_usage(filter="string")
print(response)

Fetches weekly average. Each data point represents the average of how many unique AIDs were seen per week for the previous 28 days.

GET /billing-dashboards-usage/aggregates/weekly-average/v1
Scope Sensor Usage: READ Consumes · Produces application/json
PEP 8 get_weekly_usage
NameTypeData typeDescription
filterquerystringThe FQL search filter.
parametersquerydictionaryFull query string parameters payload in JSON format. Not required if using other keywords.
FilterDescription
event_dateA specified date that will be final date of the results returned. Specified date cannot be after the default. Format: 2024-06-11, Default: the current date, minus 2 days, in UTC
periodAn integer surrounded by single quotes representing the number of days to return. Format: 30, Default: 28, Minimum: 1, Maximum: 395
selected_cidsA comma delimited list of CIDs to return data for. Caller must be a parent CID or have special access enabled. Format: cid_1,cid_2,cid_3, Default: for parent CIDs the default is the parent and all children, otherwise the current CID
from falconpy import SensorUsage
falcon = SensorUsage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_weekly_usage(filter="string")
print(response)