import axios, { type AxiosPromise } from 'axios';

export default class MetricsService {
  getMetrics(): AxiosPromise<any> {
    return axios.get('management/jhimetrics');
  }

  retrieveThreadDump(): AxiosPromise<any> {
    return axios.get('management/threaddump');
  }
}
