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.
universal-statuspage/src/app/_data/data.ts

49 lines
739 B
TypeScript
Raw Normal View History

export type State = 'operational' | 'outage' | 'maintenance';
2020-05-04 23:33:14 +00:00
export interface CurrentStatus {
2020-05-04 23:33:14 +00:00
state: State;
groups: Group[];
}
export interface Group {
id: string;
name: string;
url?: string;
2020-05-04 23:33:14 +00:00
state: State;
services: Service[];
}
export interface Service {
id: string;
name: string;
url?: string;
2020-05-04 23:33:14 +00:00
state: State;
uptime: number;
2020-05-04 23:33:14 +00:00
}
export interface MetaInfo {
title: string;
description: string;
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;
}[];
}