Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-28931

[RFE] getEvents method on Notifications API does not provide granular queries

    XMLWordPrintable

Details

    • False
    • Hide

      None

      Show
      None
    • False
    • Unset
    • No
    • Normal

    Description

      Context: I was speaking to a customer recently and they mentioned how difficult it was for some organization like them to open up their firewall for push request (e.g. coming from HCC). They mentioned that having the ability to query events directly (pull) is way easier for them to use as there is no ask to change the network security. This triggered my interest and I looked at implementing a source plugin for EDA using our Notifications Events API. Source code is available on this repository: https://github.com/jeromemarc/eda-insights-pulling/tree/main

      Limitation: While playing with our Notifications API to get a list of tiggered events with payloads, I realized that the only way to set a window range is using  startDate and endDate  arguments in date/days. So the smallest window range for querying the list of events triggered is basically 'midnight until now'. Example: [{{{}https://console.redhat.com//api/{}}}{{{}notifications{}}}{{{}/v1.0/{}}}{{{}notifications{}}}{{{}/events?endDate=2023-10-20&includePayload=true&limit=20&startDate=2023-10-19{}}}]

      RFE: Allow users to specify a smaller range (e.g. 30 minutes or 1h) allowing them to pull data on a regular interval from HCC. Note that this would also benefit our performance as the list would contain a smaller number of events returned for each query.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhjmarc Jerome Marc
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: