]>
Commit | Line | Data |
---|---|---|
39ae355f TL |
1 | import { PrometheusRule } from './prometheus-alerts'; |
2 | ||
494da23a TL |
3 | export class AlertmanagerSilenceMatcher { |
4 | name: string; | |
5 | value: any; | |
6 | isRegex: boolean; | |
7 | } | |
8 | ||
9 | export class AlertmanagerSilenceMatcherMatch { | |
10 | status: string; | |
11 | cssClass: string; | |
12 | } | |
13 | ||
14 | export class AlertmanagerSilence { | |
15 | id?: string; | |
16 | matchers: AlertmanagerSilenceMatcher[]; | |
17 | startsAt: string; // DateStr | |
18 | endsAt: string; // DateStr | |
19 | updatedAt?: string; // DateStr | |
20 | createdBy: string; | |
21 | comment: string; | |
22 | status?: { | |
23 | state: 'expired' | 'active' | 'pending'; | |
24 | }; | |
39ae355f | 25 | silencedAlerts?: PrometheusRule[]; |
494da23a | 26 | } |