added last downtime log (closes #55)
added uptime statistics (closes #56) added german translations (closes #57)
This commit is contained in:
parent
acb39f6b2a
commit
e9599373ec
27 changed files with 819 additions and 265 deletions
|
@ -1,9 +1,9 @@
|
|||
import {Inject, Injectable, PLATFORM_ID} from '@angular/core';
|
||||
import {Observable} from "rxjs";
|
||||
import {CurrentStatus, MetaInfo} from "../_data/data";
|
||||
import {HttpClient} from "@angular/common/http";
|
||||
import {environment} from "../../environments/environment";
|
||||
import {isPlatformBrowser} from "@angular/common";
|
||||
import {Observable, of} from 'rxjs';
|
||||
import {CurrentStatus, MetaInfo, UptimeStatus} from '../_data/data';
|
||||
import {HttpClient} from '@angular/common/http';
|
||||
import {environment} from '../../environments/environment';
|
||||
import {isPlatformBrowser} from '@angular/common';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
|
@ -16,10 +16,14 @@ export class ApiService {
|
|||
}
|
||||
|
||||
public getServiceStates(): Observable<CurrentStatus> {
|
||||
return this.http.get<CurrentStatus>(this.api+ '/status');
|
||||
return this.http.get<CurrentStatus>(this.api + '/status');
|
||||
}
|
||||
|
||||
public getServiceUptime(id: string): Observable<UptimeStatus> {
|
||||
return this.http.get<UptimeStatus>(this.api + '/uptime', {params: {service: id}});
|
||||
}
|
||||
|
||||
public getMetaInfo(): Observable<MetaInfo> {
|
||||
return this.http.get<MetaInfo>(this.api+ '/info');
|
||||
return this.http.get<MetaInfo>(this.api + '/info');
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue