mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-06 00:09:22 +00:00
Introduces domain-specific errors for alerts in the service layer. These errors are then mapped to HTTP responses in the HTTP layer. This PR will be followed up by another PR to introduce new alerts endpoints for accessing alerts by their new KSUIDs and for accessing information about each alert's parent folder. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new `AlertError` enum for improved error handling in alert operations. - Enhanced error handling for alert management functions, allowing for more specific error responses. - **Bug Fixes** - Streamlined return types for alert management functions to enhance clarity and reduce complexity in error handling. - **Documentation** - Updated method signatures to reflect changes in error handling and return types across various alert management functions. - **Chores** - Refined error reporting mechanisms in multiple modules for consistency in error handling. <!-- end of auto-generated comment: release notes by coderabbit.ai -->