Summary
- Added bulk alert management to the Labs API. New
create-alerts,update-alerts, anddelete-alertsendpoints let clients manage up to 30, 30, and 20 alerts per request across six alert types: Dag success, Dag failure, Dag duration, Dag timeliness, task duration, and task failure.
Added
-
Endpoints
POST /organizations/{organizationId}/create-alerts(LabsCreateAlerts): Bulk create up to 30 alerts. Takes aCreateAlertsRequestand returns anAlertsList.POST /organizations/{organizationId}/update-alerts(LabsUpdateAlerts): Bulk update up to 30 alerts. Takes anUpdateAlertsRequestand returns anAlertsList.POST /organizations/{organizationId}/delete-alerts(LabsDeleteAlerts): Bulk delete up to 20 alerts. Takes aDeleteAlertsRequest. Returns204with no response body.
-
Schemas
Alert,AlertsList,AlertNotificationChannel,AlertRules,BasicSubjectProfile: Response shapes for an alert, a list of alerts, a notification channel, an alert’s rules, and the profile of the user or API token that created or updated an alert.CreateAlertsRequest,UpdateAlertsRequest,DeleteAlertsRequest: Bulk request wrappers.CreateAlertsRequestandUpdateAlertsRequesteach wrap a list ofCreateAlertRequestorUpdateAlertRequest, atype-discriminated union over the six alert types.DeleteAlertsRequestwraps a list ofalertIds.- Per-type request, properties, and rules schemas: each of the six alert types (
DAG_SUCCESS,DAG_FAILURE,DAG_DURATION,DAG_TIMELINESS,TASK_DURATION, andTASK_FAILURE) gets its own create and update request, properties, and rules schemas, for exampleCreateDagDurationAlertRequest,CreateDagDurationAlertProperties, andCreateDagDurationAlertRulesfor Dag duration alerts. Each type’s properties schema holds its type-specific configuration, for exampledagDurationSecondsfor Dag duration alerts ordagDeadlineanddaysOfWeekfor Dag timeliness alerts. PatternMatch,PatternMatchRequest: Scope an alert to specific Dag or task IDs using anentityType(DAG_IDorTASK_ID) andoperatorType(IS,IS_NOT,INCLUDES, orEXCLUDES).