]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/api/health.service.ts
a8f7c467a0ca742c5e11911e2fc9e479f2af7caf
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / api / health.service.ts
1 import { HttpClient } from '@angular/common/http';
2 import { Injectable } from '@angular/core';
3
4 @Injectable({
5 providedIn: 'root'
6 })
7 export class HealthService {
8 constructor(private http: HttpClient) {}
9
10 getFullHealth() {
11 return this.http.get('api/health/full');
12 }
13
14 getMinimalHealth() {
15 return this.http.get('api/health/minimal');
16 }
17 }