]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/api/logs.service.ts
import ceph quincy 17.2.4
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / api / logs.service.ts
CommitLineData
11fdf7f2
TL
1import { HttpClient } from '@angular/common/http';
2import { Injectable } from '@angular/core';
3
11fdf7f2 4@Injectable({
f67539c2 5 providedIn: 'root'
11fdf7f2
TL
6})
7export class LogsService {
8 constructor(private http: HttpClient) {}
9
10 getLogs() {
11 return this.http.get('api/logs/all');
12 }
13
9f95a23c 14 validateDashboardUrl(uid: string) {
11fdf7f2
TL
15 return this.http.get(`api/grafana/validation/${uid}`);
16 }
17}