src/app/shared/api/logs.service.ts
Methods |
constructor(http: HttpClient)
|
||||||
Defined in src/app/shared/api/logs.service.ts:9
|
||||||
Parameters :
|
getLogs |
getLogs()
|
Defined in src/app/shared/api/logs.service.ts:12
|
Returns :
any
|
validateDashboardUrl | ||||
validateDashboardUrl(uid)
|
||||
Defined in src/app/shared/api/logs.service.ts:16
|
||||
Parameters :
Returns :
any
|
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { ApiModule } from './api.module';
@Injectable({
providedIn: ApiModule
})
export class LogsService {
constructor(private http: HttpClient) {}
getLogs() {
return this.http.get('api/logs/all');
}
validateDashboardUrl(uid) {
return this.http.get(`api/grafana/validation/${uid}`);
}
}