Package io.github.tkasozi.endpoint.v1
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
logPerformance
(String pathName, float time) Takes in a param and logs perf.
-
Constructor Details
-
UiPerformanceEndpoints
-
-
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.
-