summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/src/app/shared/api/logs.service.ts
blob: 252769dbd014152c4a9c42b4f4e42287d754466d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';

@Injectable({
  providedIn: 'root'
})
export class LogsService {
  constructor(private http: HttpClient) {}

  getLogs() {
    return this.http.get('api/logs/all');
  }

  validateDashboardUrl(uid: string) {
    return this.http.get(`api/grafana/validation/${uid}`);
  }
}