package com.qqchen.deploy.backend.deploy.dto;

import com.qqchen.deploy.backend.deploy.enums.MonitorTimeRange;
import com.qqchen.deploy.backend.framework.enums.MonitorMetricEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * 服务器监控指标查询参数
 */
@Data
@Schema(description = "服务器监控指标查询参数")
public class ServerMonitorMetricsQuery {

    @Schema(description = "服务器ID", required = true)
    private Long serverId;

    @NotNull(message = "时间范围不能为空")
    @Schema(description = "时间范围", required = true, example = "LAST_1_HOUR")
    private MonitorTimeRange timeRange;

    @Schema(description = "查询的指标类型列表（为空则查询所有）", example = "[\"CPU\", \"MEMORY\"]")
    private List<MonitorMetricEnum> metrics;
}
