|
7 | 7 |
|
8 | 8 | import { ActionGroup } from '../../../alerts/common'; |
9 | 9 |
|
| 10 | +export type MonitorStatusActionGroup = ActionGroup<'xpack.uptime.alerts.actionGroups.monitorStatus'>; |
| 11 | +export type TLSActionGroup = ActionGroup<'xpack.uptime.alerts.actionGroups.tls'>; |
| 12 | +export type DurationAnomalyActionGroup = ActionGroup<'xpack.uptime.alerts.actionGroups.durationAnomaly'>; |
| 13 | + |
| 14 | +export const MONITOR_STATUS: MonitorStatusActionGroup = { |
| 15 | + id: 'xpack.uptime.alerts.actionGroups.monitorStatus', |
| 16 | + name: 'Uptime Down Monitor', |
| 17 | +}; |
| 18 | + |
| 19 | +export const TLS: TLSActionGroup = { |
| 20 | + id: 'xpack.uptime.alerts.actionGroups.tls', |
| 21 | + name: 'Uptime TLS Alert', |
| 22 | +}; |
| 23 | + |
| 24 | +export const DURATION_ANOMALY: DurationAnomalyActionGroup = { |
| 25 | + id: 'xpack.uptime.alerts.actionGroups.durationAnomaly', |
| 26 | + name: 'Uptime Duration Anomaly', |
| 27 | +}; |
| 28 | + |
10 | 29 | export const ACTION_GROUP_DEFINITIONS: { |
11 | | - MONITOR_STATUS: ActionGroup<'xpack.uptime.alerts.actionGroups.monitorStatus'>; |
12 | | - TLS: ActionGroup<'xpack.uptime.alerts.actionGroups.tls'>; |
13 | | - DURATION_ANOMALY: ActionGroup<'xpack.uptime.alerts.actionGroups.durationAnomaly'>; |
| 30 | + MONITOR_STATUS: MonitorStatusActionGroup; |
| 31 | + TLS: TLSActionGroup; |
| 32 | + DURATION_ANOMALY: DurationAnomalyActionGroup; |
14 | 33 | } = { |
15 | | - MONITOR_STATUS: { |
16 | | - id: 'xpack.uptime.alerts.actionGroups.monitorStatus', |
17 | | - name: 'Uptime Down Monitor', |
18 | | - }, |
19 | | - TLS: { |
20 | | - id: 'xpack.uptime.alerts.actionGroups.tls', |
21 | | - name: 'Uptime TLS Alert', |
22 | | - }, |
23 | | - DURATION_ANOMALY: { |
24 | | - id: 'xpack.uptime.alerts.actionGroups.durationAnomaly', |
25 | | - name: 'Uptime Duration Anomaly', |
26 | | - }, |
| 34 | + MONITOR_STATUS, |
| 35 | + TLS, |
| 36 | + DURATION_ANOMALY, |
27 | 37 | }; |
28 | 38 |
|
29 | 39 | export const CLIENT_ALERT_TYPES = { |
|
0 commit comments