aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/server/healthStatusService/health-status.service.ts
blob: 4305ab97ebedae0db75c8e7ffabe7cd3333df34e (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/Observable";
import {Constants} from "../../utils/constants";
import {ExternalComponentStatus} from "../../models/externalComponentStatus";

@Injectable()
export class HealthStatusService {

  constructor(private _http: HttpClient) {
  }

  getProbe(): Observable<Array<ExternalComponentStatus>> {
    let pathQuery = Constants.Path.SERVICES_PROBE_PATH;
    return this._http.get<Array<ExternalComponentStatus>>(pathQuery).map(res => res);
  }
}