]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/api/health.service.ts
update ceph source to reef 18.1.2
[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
18 getClusterCapacity() {
19 return this.http.get('api/health/get_cluster_capacity');
20 }
21
22 getClusterFsid() {
23 return this.http.get('api/health/get_cluster_fsid');
24 }
25
26 getOrchestratorName() {
27 return this.http.get('api/health/get_orchestrator_name');
28 }
29 }