public-api
public-alerts
Preview Alerts
Preview which alerts match given filter criteria.
Analyzes historical alerts to show how many would match the specified filters. Useful for tuning alert rules or understanding alert patterns.
SDK Usage:
from anomalyarmor import Client
client = Client()
result = client.alerts.preview(
event_types=["freshness_stale"],
severities=["critical"],
lookback_hours=24,
)
print(f"Matching alerts: {result.alerts_would_match}")
print(f"By severity: {result.alerts_by_severity}")
post/api/v1/sdk/alerts/preview
Request
- Base URL: http://localhost:8000
- URL: http://localhost:8000/api/v1/sdk/alerts/preview
- Auth: none declared
Headers
Authorizationstring
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.