]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/models/prometheus-alerts.ts
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / models / prometheus-alerts.ts
1 class CommonAlert {
2 labels: {
3 alertname: string;
4 instance: string;
5 job: string;
6 severity: string;
7 };
8 annotations: {
9 description: string;
10 summary: string;
11 };
12 startsAt: string;
13 endsAt: string;
14 generatorURL: string;
15 }
16
17 export class PrometheusAlert extends CommonAlert {
18 status: {
19 state: 'unprocessed' | 'active' | 'suppressed';
20 silencedBy: null | string[];
21 inhibitedBy: null | string[];
22 };
23 receivers: string[];
24 fingerprint: string;
25 }
26
27 export class PrometheusNotificationAlert extends CommonAlert {
28 status: 'firing' | 'resolved';
29 }
30
31 export class PrometheusNotification {
32 status: 'firing' | 'resolved';
33 groupLabels: object;
34 commonAnnotations: object;
35 groupKey: string;
36 notified: string;
37 id: string;
38 alerts: PrometheusNotificationAlert[];
39 version: string;
40 receiver: string;
41 externalURL: string;
42 commonLabels: {
43 severity: string;
44 };
45 }
46
47 export class PrometheusCustomAlert {
48 status: 'resolved' | 'unprocessed' | 'active' | 'suppressed';
49 name: string;
50 url: string;
51 summary: string;
52 fingerprint?: string | boolean;
53 }