@@ -53,27 +53,27 @@ def find_asset_events(http_session: requests.AuthorizedSession,
5353 max_results : Optional [int ] = None ) -> None :
5454 """Find asset events in Chronicle using the Legacy Find Asset Events API.
5555
56- Args:
57- http_session: Authorized session for HTTP requests.
58- proj_id: GCP project id or number to which the target instance belongs.
59- proj_instance: Customer ID (uuid with dashes) for the instance.
60- proj_region: region in which the target project is located.
61- asset_indicator: JSON str containing the asset indicator to search for.
62- start_time: Start time in RFC3339 format (e.g., "2024-01-01T00:00:00Z").
63- end_time: End time in RFC3339 format (e.g., "2024-01-02T00:00:00Z").
64- reference_time: Optional reference time in RFC3339 format for
65- asset aliasing.
66- max_results: Optional maximum number of results to return
67- (default: 10000, max: 250000).
68-
69- Raises:
70- requests.exceptions.HTTPError: HTTP request resulted in an error
71- (response.status_code >= 400).
72- ValueError: If the time format is invalid.
73-
74- Requires the following IAM permission on the instance resource:
75- chronicle.legacies.legacyFindAssetEvents
76- """
56+ Args:
57+ http_session: Authorized session for HTTP requests.
58+ proj_id: GCP project id or number to which the target instance belongs.
59+ proj_instance: Customer ID (uuid with dashes) for the instance.
60+ proj_region: region in which the target project is located.
61+ asset_indicator: JSON str containing the asset indicator to search for.
62+ start_time: Start time in RFC3339 format (e.g., "2024-01-01T00:00:00Z").
63+ end_time: End time in RFC3339 format (e.g., "2024-01-02T00:00:00Z").
64+ reference_time: Optional reference time in RFC3339 format for
65+ asset aliasing.
66+ max_results: Optional maximum number of results to return
67+ (default: 10000, max: 250000).
68+
69+ Raises:
70+ requests.exceptions.HTTPError: HTTP request resulted in an error
71+ (response.status_code >= 400).
72+ ValueError: If the time format is invalid.
73+
74+ Requires the following IAM permission on the instance resource:
75+ chronicle.legacies.legacyFindAssetEvents
76+ """
7777 # Validate and parse the times to ensure they're in RFC3339 format
7878 for time_str in [start_time , end_time , reference_time
7979 ] if reference_time else [start_time , end_time ]:
0 commit comments