This repository has been archived on 2023-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
2020-05-06 15:25:35 +00:00
|
|
|
export type State = 'operational' | 'outage' | 'maintenance';
|
2020-05-04 23:33:14 +00:00
|
|
|
|
2020-05-06 15:25:35 +00:00
|
|
|
export interface CurrentStatus {
|
2020-05-04 23:33:14 +00:00
|
|
|
state: State;
|
|
|
|
groups: Group[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Group {
|
|
|
|
id: string;
|
|
|
|
name: string;
|
2020-07-16 20:08:02 +00:00
|
|
|
url?: string;
|
2020-05-04 23:33:14 +00:00
|
|
|
state: State;
|
|
|
|
services: Service[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Service {
|
|
|
|
id: string;
|
|
|
|
name: string;
|
2020-07-16 20:08:02 +00:00
|
|
|
url?: string;
|
2020-05-04 23:33:14 +00:00
|
|
|
state: State;
|
2021-01-10 15:06:18 +00:00
|
|
|
uptime: number;
|
2020-05-04 23:33:14 +00:00
|
|
|
}
|
2020-05-06 15:25:35 +00:00
|
|
|
|
|
|
|
export interface MetaInfo {
|
|
|
|
title: string;
|
|
|
|
description: string;
|
2021-01-10 15:06:18 +00:00
|
|
|
translations?: {
|
|
|
|
[lang: string]: {
|
|
|
|
title: string;
|
|
|
|
description: string;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface UptimeStatus {
|
|
|
|
hours24: number;
|
|
|
|
days7: number;
|
|
|
|
days30: number;
|
|
|
|
days90: number;
|
|
|
|
days: {
|
|
|
|
date: Date;
|
|
|
|
uptime: number;
|
|
|
|
}[];
|
|
|
|
events: {
|
|
|
|
state: State;
|
|
|
|
date: Date;
|
|
|
|
}[];
|
2020-05-06 15:25:35 +00:00
|
|
|
}
|