]>
Commit | Line | Data |
---|---|---|
11fdf7f2 TL |
1 | import { HttpClient } from '@angular/common/http'; |
2 | import { Injectable } from '@angular/core'; | |
3 | ||
4 | import { ApiModule } from './api.module'; | |
5 | ||
6 | @Injectable({ | |
7 | providedIn: ApiModule | |
8 | }) | |
9 | export class LogsService { | |
10 | constructor(private http: HttpClient) {} | |
11 | ||
12 | getLogs() { | |
13 | return this.http.get('api/logs/all'); | |
14 | } | |
15 | ||
9f95a23c | 16 | validateDashboardUrl(uid: string) { |
11fdf7f2 TL |
17 | return this.http.get(`api/grafana/validation/${uid}`); |
18 | } | |
19 | } |