text: (function() {
      'use strict';
  
      angular
          .module('erpApp')
          .factory('JhiMetricsService', JhiMetricsService);
  
      JhiMetricsService.$inject = ['$rootScope', '$http'];
  
      function JhiMetricsService ($rootScope, $http) {
          var service = {
              getMetrics: getMetrics,
              threadDump: threadDump
          };
  
          return service;
  
          function getMetrics () {
              return $http.get('management/jhipster/metrics').then(function (response) {
                  return response.data;
              });
          }
  
          function threadDump () {
              return $http.get('management/dump').then(function (response) {
                  return response.data;
              });
          }
      }
  })();
  