Skip to content

Filter API Sequences to Keep Only Alerts from Today #185

@MateoLostanlen

Description

@MateoLostanlen

Description:
The platform currently fetches the latest sequences from the API using the following code:

response = api_client.fetch_latest_sequences()
api_sequences = pd.DataFrame(response.json())

However, started_at is returned in UTC (UTC+0) and needs to be filtered to retain only alerts from today based on the local time zone.

Expected Behavior:

  • Convert started_at from UTC to the local time zone.
  • Filter api_sequences to keep only sequences where started_at falls within today’s date in the local time zone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions