You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can cause a built-up of 4xx errors on clusters that make regular/repeated calls to that API.
What is the expected behavior?
Rather than throw an error, the GetAlerts API could be refactored to instead return an empty list when there are no detectors defined for the specified detectorType.
The text was updated successfully, but these errors were encountered:
What is the bug?
The GetAlerts API throws a
404 NOT_FOUND
error when there are no detectors for the specifieddetectorType
.https://github.com/opensearch-project/security-analytics/blob/main/src/main/java/org/opensearch/securityanalytics/transport/TransportGetAlertsAction.java#L126
This can cause a built-up of
4xx
errors on clusters that make regular/repeated calls to that API.What is the expected behavior?
Rather than throw an error, the GetAlerts API could be refactored to instead return an empty list when there are no detectors defined for the specified
detectorType
.The text was updated successfully, but these errors were encountered: