Class IngestMetricsController

java.lang.Object
org.tailormap.api.controller.IngestMetricsController
All Implemented Interfaces:
TagNames

@Validated public class IngestMetricsController extends Object implements TagNames
  • Constructor Details

    • IngestMetricsController

      public IngestMetricsController()
  • Method Details

    • ingestMetric

      @PutMapping(path="${tailormap-api.base-path}/{viewerKind}/{viewerName}/metrics/ingest/{appLayerIds}/{allowedMetric}") public org.springframework.http.ResponseEntity<Serializable> ingestMetric(@ModelAttribute Application app, @ModelAttribute ViewerResponse.KindEnum viewerKind, @PathVariable Set<String> appLayerIds, @PathVariable String allowedMetric)
      Ingests a metric for the given application layers and viewer kind.
      Parameters:
      app - the application
      viewerKind - the kind of viewer
      appLayerIds - the application layer IDs to ingest the metric for
      allowedMetric - the metric to ingest
      Returns:
      a ResponseEntity with status 204 No Content if successful, or 400 Bad Request if the metric is not allowed