Package com.bytedesk.voc.feedback.stats
Class FeedbackStatsController
java.lang.Object
com.bytedesk.voc.feedback.stats.FeedbackStatsController
@RestController
@RequestMapping("/api/v1/voc/stats")
@PreAuthorize("hasRole(\'VOC_ADMIN\')")
public class FeedbackStatsController
extends Object
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<FeedbackStats>
getOverallStats
(LocalDateTime startTime, LocalDateTime endTime) getResponseTimeTrend
(LocalDateTime startTime, LocalDateTime endTime) getStatusDistribution
(LocalDateTime startTime, LocalDateTime endTime) getTypeDistribution
(LocalDateTime startTime, LocalDateTime endTime)
-
Field Details
-
statsService
-
-
Constructor Details
-
FeedbackStatsController
public FeedbackStatsController()
-
-
Method Details
-
getOverallStats
@GetMapping("/overall") public org.springframework.http.ResponseEntity<FeedbackStats> getOverallStats(@RequestParam @DateTimeFormat(iso=DATE_TIME) LocalDateTime startTime, @RequestParam @DateTimeFormat(iso=DATE_TIME) LocalDateTime endTime) -
getTypeDistribution
@GetMapping("/type-distribution") public org.springframework.http.ResponseEntity<Map<String,Long>> getTypeDistribution(@RequestParam @DateTimeFormat(iso=DATE_TIME) LocalDateTime startTime, @RequestParam @DateTimeFormat(iso=DATE_TIME) LocalDateTime endTime) -
getStatusDistribution
@GetMapping("/status-distribution") public org.springframework.http.ResponseEntity<Map<String,Long>> getStatusDistribution(@RequestParam @DateTimeFormat(iso=DATE_TIME) LocalDateTime startTime, @RequestParam @DateTimeFormat(iso=DATE_TIME) LocalDateTime endTime) -
getResponseTimeTrend
@GetMapping("/response-time-trend") public org.springframework.http.ResponseEntity<Map<String,Double>> getResponseTimeTrend(@RequestParam @DateTimeFormat(iso=DATE_TIME) LocalDateTime startTime, @RequestParam @DateTimeFormat(iso=DATE_TIME) LocalDateTime endTime)
-