Class PrometheusDataController
java.lang.Object
org.tailormap.api.controller.admin.PrometheusDataController
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, TagNames
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionPrometheusDataController(PrometheusService prometheusService, PrometheusResultProcessor prometheusResultProcessor, ApplicationRepository applicationRepository, TaskManagerService taskManagerService) -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.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
-
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)
-