blob: 71e32f1d4d28339454df47ce05c2adf00f07beaa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import { Injectable } from '@angular/core';
import {HttpClient} from "@angular/common/http";
import {Observable} from "rxjs";
import {Constants} from "../../utils/constants";
import {ExternalComponentStatus} from "../../models/externalComponentStatus";
@Injectable()
export class HealthStatusService {
constructor(private _http: HttpClient) {
}
getProbe(): Observable<ExternalComponentStatus[]> {
let pathQuery = Constants.Path.SERVICES_PROBE_PATH;
return this._http.get<ExternalComponentStatus[]>(pathQuery).map(res => res);
}
}
|