From b989eaf0c91a6adae15a9d6c9e67c5832bb3a925 Mon Sep 17 00:00:00 2001 From: Manan Pujara <104253184+MananPoojara@users.noreply.github.com> Date: Wed, 17 Apr 2024 12:09:58 +0530 Subject: [PATCH] #1759 Update PushController.java Signed-off-by: Manan Pujara <104253184+MananPoojara@users.noreply.github.com> --- .../hertzbeat/push/controller/PushController.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/push/src/main/java/org/apache/hertzbeat/push/controller/PushController.java b/push/src/main/java/org/apache/hertzbeat/push/controller/PushController.java index adc59a47d64..3c2ad340c95 100644 --- a/push/src/main/java/org/apache/hertzbeat/push/controller/PushController.java +++ b/push/src/main/java/org/apache/hertzbeat/push/controller/PushController.java @@ -32,7 +32,7 @@ /** * push controller */ -@Tag(name = "Metrics Push API | 监控数据推送API") +@Tag(name = "Metrics Push API") @RestController @RequestMapping(value = "/api/push", produces = {APPLICATION_JSON_VALUE}) public class PushController { @@ -41,17 +41,17 @@ public class PushController { private PushService pushService; @PostMapping - @Operation(summary = "Push metric data to hertzbeat", description = "推送监控数据到hertzbeat") + @Operation(summary = "Push metric data to hertzbeat", description = "Push metric data to hertzbeat") public ResponseEntity> pushMetrics(@RequestBody PushMetricsDto pushMetricsDto) { pushService.pushMetricsData(pushMetricsDto); return ResponseEntity.ok(Message.success("Push success")); } @GetMapping() - @Operation(summary = "Get metric data for hertzbeat", description = "获取监控数据") + @Operation(summary = "Get metric data for hertzbeat", description = "Get metric data for hertzbeat") public ResponseEntity> getMetrics( - @Parameter(description = "监控id", example = "6565463543") @RequestParam("id") final Long id, - @Parameter(description = "上一次拉取的时间", example = "6565463543") @RequestParam("time") final Long time) { + @Parameter(description = "Monitor ID", example = "6565463543") @RequestParam("id") final Long id, + @Parameter(description = "Last pull time", example = "6565463543") @RequestParam("time") final Long time) { PushMetricsDto pushMetricsDto = pushService.getPushMetricData(id, time); return ResponseEntity.ok(Message.success(pushMetricsDto)); }