blob: 4305ab97ebedae0db75c8e7ffabe7cd3333df34e [file] [log] [blame]
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +03001import { Injectable } from '@angular/core';
2import {HttpClient} from "@angular/common/http";
3import {Observable} from "rxjs/Observable";
4import {Constants} from "../../utils/constants";
5import {ExternalComponentStatus} from "../../models/externalComponentStatus";
6
7@Injectable()
8export class HealthStatusService {
9
10 constructor(private _http: HttpClient) {
11 }
12
13 getProbe(): Observable<Array<ExternalComponentStatus>> {
14 let pathQuery = Constants.Path.SERVICES_PROBE_PATH;
15 return this._http.get<Array<ExternalComponentStatus>>(pathQuery).map(res => res);
16 }
17}