Files
openobserve/src/handler/http
Patrick Sullivan a3294d946c feat: service layer alert errors (#5426)
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 -->
2024-12-23 17:36:48 -06:00
..