12345678910111213141516171819 |
- import { Injectable } from '@angular/core';
- import { HttpClient } from '@angular/common/http';
- import { Observable } from 'rxjs';
-
- import { SERVER_API_URL } from 'app/app.constants';
-
- @Injectable({ providedIn: 'root' })
- export class JhiMetricsService {
- constructor(private http: HttpClient) {}
-
- getMetrics(): Observable<any> {
- return this.http.get(SERVER_API_URL + 'management/metrics');
- }
-
- threadDump(): Observable<any> {
- return this.http.get(SERVER_API_URL + 'management/threaddump');
- }
- }
|