@@ -97,4 +97,48 @@ def get_weekly_usage(self: object, parameters: dict = None, **kwargs) -> Union[D
9797 params = parameters
9898 )
9999
100+ @force_default (defaults = ["parameters" ], default_types = ["dict" ])
101+ def get_hourly_usage (self : object , parameters : dict = None , ** kwargs ) -> Union [Dict [str , Union [int , dict ]], Result ]:
102+ """Fetch hourly sensor usage average used to measure cloud usage.
103+
104+ Each data point represents the average of how many unique AIDs were seen per week for the previous 28 days.
105+
106+ Keyword arguments:
107+ filter -- The FQL search filter.
108+ Allowed fields:
109+ event_date - A specified date that will be final date of the results returned.
110+ Specified date cannot be after the default.
111+ Format: '2024-06-11'
112+ Default: the current date, minus 2 days, in UTC
113+ period - An integer surrounded by single quotes representing the number of days to return.
114+ Format: '30'
115+ Default: '28'
116+ Minimum: '1'
117+ Maximum: '395'
118+ selected_cids - A comma delimited list of CIDs to return data for.
119+ Caller must be a parent CID or have special access enabled.
120+ Format: 'cid_1,cid_2,cid_3'
121+ Default: for parent CIDs the default is the parent and all children,
122+ otherwise the current CID
123+ parameters -- Full parameters payload dictionary. Not required if using other keywords.
124+
125+ This method only supports keywords for providing arguments.
126+
127+ Returns: dict object containing API response.
128+
129+ HTTP Method: GET
130+
131+ Swagger URL
132+ https://assets.falcon.crowdstrike.com/support/api/swagger.html#/sensor-usage-api/GetSensorUsageWeekly
133+ Endpoint is not in Swagger file, but allows you to pull `hourly` usage which is used to determine cloud usage
134+ """
135+ return process_service_request (
136+ calling_object = self ,
137+ endpoints = Endpoints ,
138+ operation_id = "GetSensorUsageHourly" ,
139+ keywords = kwargs ,
140+ params = parameters
141+ )
142+
100143 GetSensorUsageWeekly = get_weekly_usage
144+ GetSensorUsageHourly = get_hourly_usage
0 commit comments