src/app/shared/api/cephfs.service.ts
Properties |
Methods |
constructor(http: HttpClient)
|
||||||
Defined in src/app/shared/api/cephfs.service.ts:10
|
||||||
Parameters :
|
getCephfs | ||||
getCephfs(id)
|
||||
Defined in src/app/shared/api/cephfs.service.ts:18
|
||||
Parameters :
Returns :
any
|
getClients | ||||
getClients(id)
|
||||
Defined in src/app/shared/api/cephfs.service.ts:22
|
||||
Parameters :
Returns :
any
|
getMdsCounters | ||||
getMdsCounters(id)
|
||||
Defined in src/app/shared/api/cephfs.service.ts:26
|
||||
Parameters :
Returns :
any
|
list |
list()
|
Defined in src/app/shared/api/cephfs.service.ts:14
|
Returns :
any
|
baseURL |
Type : string
|
Default value : 'api/cephfs'
|
Defined in src/app/shared/api/cephfs.service.ts:10
|
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { ApiModule } from './api.module';
@Injectable({
providedIn: ApiModule
})
export class CephfsService {
baseURL = 'api/cephfs';
constructor(private http: HttpClient) {}
list() {
return this.http.get(`${this.baseURL}`);
}
getCephfs(id) {
return this.http.get(`${this.baseURL}/${id}`);
}
getClients(id) {
return this.http.get(`${this.baseURL}/${id}/clients`);
}
getMdsCounters(id) {
return this.http.get(`${this.baseURL}/${id}/mds_counters`);
}
}