Class PrometheusDataController
java.lang.Object
org.tailormap.api.controller.admin.PrometheusDataController
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
,TagNames
-
Field Summary
Fields inherited from interface org.tailormap.api.prometheus.TagNames
APP_ID_REPLACE_TOKEN, METRICS_APP_ID_TAG, METRICS_APP_LAYER_ID_TAG, METRICS_APP_LAYER_NAME_TAG, METRICS_APP_LAYER_TITLE_TAG, METRICS_APP_NAME_TAG, METRICS_APP_REQUEST_COUNTER_NAME, METRICS_APP_TYPE_TAG, NUMBER_OF_DAYS_REPLACE_TOKEN
-
Constructor Summary
ConstructorsConstructorDescriptionPrometheusDataController
(PrometheusService prometheusService, PrometheusResultProcessor prometheusResultProcessor, ApplicationRepository applicationRepository, TaskManagerService taskManagerService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
org.springframework.http.ResponseEntity<?>
getApplicationGraphicData
(int numberOfDays) org.springframework.http.ResponseEntity<?>
getApplicationLayersGraphicData
(Long applicationId, int numberOfDays) org.springframework.http.ResponseEntity<?>
handleException
(org.springframework.web.server.ResponseStatusException ex)
-
Constructor Details
-
PrometheusDataController
public PrometheusDataController(PrometheusService prometheusService, PrometheusResultProcessor prometheusResultProcessor, ApplicationRepository applicationRepository, TaskManagerService taskManagerService)
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
handleException
@ExceptionHandler(org.springframework.web.server.ResponseStatusException.class) public org.springframework.http.ResponseEntity<?> handleException(org.springframework.web.server.ResponseStatusException ex) -
getApplicationGraphicData
@GetMapping(path="${tailormap-api.admin.base-path}/graph/applications", produces="application/json") public org.springframework.http.ResponseEntity<?> getApplicationGraphicData(@RequestParam(defaultValue="30") int numberOfDays) -
getApplicationLayersGraphicData
@GetMapping(path="${tailormap-api.admin.base-path}/graph/applayers/{applicationId}", produces="application/json") public org.springframework.http.ResponseEntity<?> getApplicationLayersGraphicData(@PathVariable Long applicationId, @RequestParam(defaultValue="30") int numberOfDays)
-