🔨 修改 influx 查询语句.

This commit is contained in:
lijiahangmax
2025-10-06 16:18:20 +08:00
parent 29e6db75ca
commit d58d46ca8c
4 changed files with 19 additions and 31 deletions

View File

@@ -59,17 +59,17 @@ public class MonitorHostChartRequest extends BaseQueryRequest {
@Schema(description = "时间窗口")
private String window;
@Schema(description = "时间区间")
private String range;
@Schema(description = "时间区间")
private Long start;
@Schema(description = "时间区间")
private Long end;
@NotBlank
@Schema(description = "聚合参数")
private String aggregate;
@Schema(description = "聚合参数")
private Long start;
@Schema(description = "聚合参数")
private Long end;
@Schema(description = "区间")
private String range;
}

View File

@@ -372,6 +372,7 @@ public class MonitorHostServiceImpl implements MonitorHostService {
} else {
Assert.notNull(request.getStart(), ErrorMessage.PARAM_MISSING);
Assert.notNull(request.getEnd(), ErrorMessage.PARAM_MISSING);
query.range(request.getStart(), request.getEnd());
}
// 设置名称
Set<String> names = null;