added frontend template
This commit is contained in:
commit
2bea201bb3
41 changed files with 15481 additions and 0 deletions
20
frontend/src/app/_data/data.ts
Normal file
20
frontend/src/app/_data/data.ts
Normal file
|
@ -0,0 +1,20 @@
|
|||
export type State = 'operational' | 'outage' | 'maintenance'; // ok, alerting, paused
|
||||
|
||||
export interface ApiResponse {
|
||||
state: State;
|
||||
groups: Group[];
|
||||
}
|
||||
|
||||
export interface Group {
|
||||
id: string;
|
||||
name: string;
|
||||
state: State;
|
||||
services: Service[];
|
||||
}
|
||||
|
||||
export interface Service {
|
||||
id: string;
|
||||
name: string;
|
||||
url: string;
|
||||
state: State;
|
||||
}
|
Reference in a new issue