File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -418,7 +418,7 @@ def list_filtered_findings(source_name):
418418
419419
420420def list_findings_at_time (source_name ):
421- # [START securitycenter_list_findings_at_time ]
421+ # [START securitycenter_list_findings_within_time_range ]
422422 from datetime import datetime , timedelta , timezone
423423
424424 from google .cloud import securitycenter_v1
@@ -441,9 +441,9 @@ def list_findings_at_time(source_name):
441441
442442 five_days_ago = datetime .now (timezone .utc ) - timedelta (days = 5 )
443443 timestamp_milliseconds = int (five_days_ago .timestamp () * 1000 )
444- # [END securitycenter_list_findings_at_time ]
444+ # [END securitycenter_list_findings_within_time_range ]
445445 i = - 1
446- # [START securitycenter_list_findings_at_time ]
446+ # [START securitycenter_list_findings_within_time_range ]
447447
448448 # More details about the request syntax:
449449 # https://cloud.google.com/security-command-center/docs/reference/rest/v1/folders.sources.findings/list
@@ -460,7 +460,7 @@ def list_findings_at_time(source_name):
460460 i , finding_result .finding .name , finding_result .finding .resource_name
461461 )
462462 )
463- # [END securitycenter_list_findings_at_time ]
463+ # [END securitycenter_list_findings_within_time_range ]
464464
465465 return i
466466
You can’t perform that action at this time.
0 commit comments