Class UiPerformanceEndpoints

java.lang.Object
io.github.tkasozi.endpoint.v1.UiPerformanceEndpoints

@RequestMapping("/observer/v1/ui/performance") @RestController @ResponseBody public class UiPerformanceEndpoints extends Object
Handles requests for UI performance metrics.
  • Constructor Details

    • UiPerformanceEndpoints

      public UiPerformanceEndpoints(EventLogRepository eventLogRepository)
  • Method Details

    • logPerformance

      @GetMapping(produces="application/json") public void logPerformance(@RequestParam("pathname") String pathName, @RequestParam("time") float time)
      Takes in a param and logs perf.
      Parameters:
      pathName - pathname for which metric is measured.
      time - time in milliseconds.