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

    • 5
    • False
    • Hide

      None

      Show
      None
    • False
    • Unset
    • No
    • Normal

      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.

              mbarcina@redhat.com Mikel Barcina
              rhjmarc Jerome Marc
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: