mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 23:55:58 -05:00
fix time passed to boto3
This commit is contained in:
@@ -61,14 +61,14 @@ class AwsCloudwatchClient(Client):
|
||||
logGroupName=log_group_name,
|
||||
filterPattern=my_filter,
|
||||
nextToken=next_token,
|
||||
startTime=beginning,
|
||||
startTime=int(beginning.timestamp() * 1000),
|
||||
endTime=now,
|
||||
)
|
||||
else:
|
||||
response = self._client.filter_log_events(
|
||||
logGroupName=log_group_name,
|
||||
filterPattern=my_filter,
|
||||
startTime=beginning,
|
||||
startTime=int(beginning.timestamp() * 1000),
|
||||
endTime=now,
|
||||
)
|
||||
log_events = response.get("events", [])
|
||||
|
||||
Reference in New Issue
Block a user