Class SlaController
java.lang.Object
com.nmontytskyi.monitoring.server.controller.SlaController
@RestController
@RequestMapping("/api/services/{id}/sla")
@Validated
public class SlaController
extends Object
REST controller for SLA threshold management and compliance reporting.
Allows callers to retrieve the SLA compliance report for a service over a chosen
time window (DAY / WEEK / MONTH) and to update the SLA thresholds stored in
SlaDefinitionEntity.
- Author:
- Nazar Montytskyi
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<SlaReport> getSlaReport(Long id, SlaWindow window) org.springframework.http.ResponseEntity<Void> updateSla(Long id, SlaUpdateRequest request)
-
Constructor Details
-
SlaController
public SlaController()
-
-
Method Details
-
getSlaReport
-
updateSla
@PutMapping public org.springframework.http.ResponseEntity<Void> updateSla(@PathVariable Long id, @RequestBody SlaUpdateRequest request)
-