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.5
PowerShellv2.2.9
Gov0.22.0
TypeScriptv0.6.0
Rustv0.7.1
Rubyv1.4.0


OperationDescription
GetSensorUsageHourly
get_hourly_usage
Fetches hourly average.
GetSensorUsageWeekly
get_weekly_usage
Fetches weekly average.

Fetches hourly average.

Method GET
Route /billing-dashboards-usage/aggregates/hourly-average/v1
Scope Sensor Usage: READ
PEP 8 get_hourly_usage
filter query · string
The FQL search filter.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import SensorUsage
falcon = SensorUsage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_hourly_usage(filter="string")
print(response)
[
{
"chrome_os": 0.0,
"containers": 0.0,
"date": "string",
"lumos": 0.0,
"mobile": 0.0,
"public_cloud_with_containers": 0.0,
"public_cloud_without_containers": 0.0,
"servers_with_containers": 0.0,
"servers_without_containers": 0.0,
"workstations": 0.0
}
]


Fetches weekly average.

Method GET
Route /billing-dashboards-usage/aggregates/weekly-average/v1
Scope Sensor Usage: READ
PEP 8 get_weekly_usage
filter query · string
The FQL search filter.
parameters query · dictionary
Full query string parameters payload in JSON format. Not required when using other keywords.
from falconpy import SensorUsage
falcon = SensorUsage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.get_weekly_usage(filter="string")
print(response)
[
{
"chrome_os": 0.0,
"containers": 0.0,
"date": "string",
"lumos": 0.0,
"mobile": 0.0,
"public_cloud_with_containers": 0.0,
"public_cloud_without_containers": 0.0,
"servers_with_containers": 0.0,
"servers_without_containers": 0.0,
"workstations": 0.0
}
]