🔨 修改 influx 查询语句.
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user