CrowdStrike Falcon CrowdStrike Subreddit

Using the Sensor Usage service collection

Uber class support Service class support Documentation Version Page Updated

Table of Contents

Operation IDDescription
GetSensorUsageWeekly
PEP8get_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.

GetSensorUsageWeekly

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

PEP8 method name

get_weekly_usage

Endpoint

MethodRoute
GET/billing-dashboards-usage/aggregates/weekly-average/v1

Required Scope

sensor-usage:read

Content-Type

  • Consumes: application/json
  • Produces: application/json

Keyword Arguments

NameServiceUberTypeData typeDescription
filterService Class SupportUber Class SupportquerystringThe FQL search filter.
parametersService Class SupportUber Class SupportquerydictionaryFull query string parameters payload in JSON format. Not required if using other keywords.
Allowed filters
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

Usage

Service class example (PEP8 syntax)
from falconpy import SensorUsage

falcon = SensorUsage(client_id=CLIENT_ID,
                     client_secret=CLIENT_SECRET
                     )

response = falcon.GetSensorUsageWeekly(filter="string")
print(response)
Service class example (Operation ID syntax)
from falconpy import SensorUsage

falcon = SensorUsage(client_id=CLIENT_ID,
                     client_secret=CLIENT_SECRET
                     )

response = falcon.GetSensorUsageWeekly(filter="string")
print(response)
Uber class example
from falconpy import APIHarness

falcon = APIHarness(client_id=CLIENT_ID,
                    client_secret=CLIENT_SECRET
                    )

response = falcon.command("GetSensorUsageWeekly", filter="string")
print(response)