package com.njcn.gather.systemmonitor.disk.enums;

import lombok.Getter;

/**
 * 磁盘监控模块业务响应码。
 */
@Getter
public enum DiskMonitorResponseEnum {

    POLICY_NOT_FOUND("A01060", "磁盘监控策略不存在"),
    TARGET_NOT_FOUND("A01061", "磁盘监控盘符配置不存在"),
    DRIVE_LETTER_REPEAT("A01062", "盘符重复，请检查driveLetter参数"),
    DRIVE_LETTER_FORMAT_ERROR("A01063", "盘符格式错误，请使用类似 C: 的格式"),
    DAILY_RUN_TIME_FORMAT_ERROR("A01064", "每日统一执行时间格式错误，请使用HH:mm:ss"),
    USAGE_PERCENT_INVALID("A01065", "告警使用率必须大于等于预警使用率"),
    NOTIFY_PATH_EMPTY("A01066", "路径通知目标不能为空"),
    NOTIFY_HTTP_EMPTY("A01067", "HTTP通知目标不能为空"),
    NOTIFY_PATH_VALUE_EMPTY("A01068", "通知路径不能为空"),
    NOTIFY_HTTP_URL_INVALID("A01069", "HTTP通知目标格式错误，请检查url参数"),
    NO_ENABLED_TARGET("A01070", "暂无启用的磁盘监控盘符配置"),
    JOB_NOT_FOUND("A01071", "监控任务不存在"),
    POLICY_SAVE_FAILED("A01072", "磁盘监控配置保存失败"),
    DRIVE_SCAN_FAILED("A01073", "磁盘扫描失败"),
    NOTIFY_TARGET_NOT_FOUND("A01074", "通知测试盘符不存在"),
    NOTIFY_CHANNEL_MISSING("A01075", "当前盘符未配置可用通知通道"),
    POLICY_MODE_INVALID("A01076", "通知模式配置非法"),
    JOB_SOURCE_INVALID("A01077", "任务来源非法");

    private final String code;
    private final String message;

    DiskMonitorResponseEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
