Class PrometheusDataController

java.lang.Object
org.tailormap.api.controller.admin.PrometheusDataController
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, TagNames

@RestController public class PrometheusDataController extends Object implements TagNames, org.springframework.beans.factory.InitializingBean
  • Constructor Details

  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.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)