Insights Hub 504 Gateway TimeOut while querying events

2021-07-16T11:17:12Z
APIs & Services

Summary


Details

I have a lot of events in my tenant and I want to query them at the same time. I am getting a 504 gateway error while doing that. What should I do?

Solution

Please consider below points for your query:

  • Increase the page size to 500 (max)
    • Use "enablePageCache" flag
      • We suggest around 4 parallel calls and try to limit number of events to query using a smaller time interval
        • Instead of querying for 1 month query per day.

          Additional information regarding the Event Management API can be found on following URL:

          https://developer.mindsphere.io/apis/advanced-eventmanagement/api-eventmanagement-overview.html

          Notes

          KB Article ID# PL8547785

          Contents

          SummaryDetails

          Associated Components

          Event Management Service