package com.xzzn.common.constant;

/**
 * 数据存储 Redis key 常量
 * 
 * @author xzzn
 */
public class RedisKeyConstants
{
    /**
     * pcs数据 redis key
     */
    public static final String PCS = "PCS_";

    /**
     * pcs branch数据 redis key
     */
    public static final String BRANCH = "BRANCH_";

    /**
     * stack电池堆数据 redis key
     */
    public static final String STACK = "STACK_";

    /**
     * cluster电池簇数据 redis key
     */
    public static final String CLUSTER = "CLUSTER_";

    /**
     * battery单体电池数据 redis key
     */
    public static final String BATTERY = "BATTERY_";

    /**
     * 电表数据 redis key
     */
    public static final String AMMETER = "AMMETER_";

    /**
     * 动环数据 redis key
     */
    public static final String DH = "DH_";

    /**
     * 消防数据 redis key
     */
    public static final String XF = "XF_";

    /**
     * 电池组 redis key
     */
    public static final String GROUP = "GROUP_";

    /**
     * BMSD原始数据 redis key
     */
    public static final String ORIGINAL_BMSD = "BMSD_";

    /**
     * 冷却数据 redis key
     */
    public static final String COOLING = "COOLING_";

    /**
     * EMS数据 redis key
     */
    public static final String EMS = "EMS_";

    /**
     * 点位匹配数据 redis key
     */
    public static final String POINT_MATCH = "POINT_MATCH_";

    /**
     * 点位枚举匹配数据 redis key
     */
    public static final String POINT_ENUM_MATCH = "POINT_ENUM_MATCH_";

    /**
     * topic对应站点ID redis key
     */
    public static final String SITE_ID = "SITE_ID_";

    /**
     * 存放单个设备同步过来的原始数据-最晚一次数据
     */
    public static final String ORIGINAL_MQTT_DATA = "MQTT_";

    /**
     * 存放单个设备同步过来的告警点位原始数据-最晚一次数据
     */
    public static final String ORIGINAL_MQTT_DATA_ALARM = "MQTT_ALARM_";

    /**  存放订阅失败告警信息 */
    public static final String TOPIC_FAILED_ALRAM_RECORD = "topic_failed_";
    /**  topic 内没有数据设备维度告警 */
    public static final String TOPIC_EMPTY_ALARM_RECORD = "topic_empty_";
    /**  modbus读取 没有数据设备维度告警 */
    public static final String MODBUS_EMPTY_ALARM_RECORD = "modbus_empty_";
    /**  modbus读取 设备离线告警 */
    public static final String MODBUS_OFFLINE_ALARM_RECORD = "modbus_offline_";

    /** 设备信息初始化 */
    public static final String INIT_DEVICE_INFO = "init_device_info";

    /** 设备配置缓存（按站点+设备） */
    public static final String DEVICE_SETTING = "DEVICE_SETTING_";
    /** 告警匹配信息 */
    public static final String ALARM_MATCH_INFO = "alarm_message_info";

    /** 现有的告警数据 */
    public static final String LATEST_ALARM_RECORD = "LATEST_ALARM_RECORD";

    /** 预存电价时间配置 */
    public static final String ENERGY_PRICE_TIME = "energy_price_time_";

    /** dds昨日累计总收益 */
    public static final String DDS_TOTAL_REVENUE = "total_revenue_";
    /** fx实时总收益和当日实时收益 */
    public static final String FXX_REALTIME_REVENUE = "realtime_revenue_";

    /** 每个设备最新数据-设置失效时间-判断是否正常同步数据 */
    public static final String  SYNC_DATA= "SYNC_DATA_";

    /** 每个设备最新数据-设置失效时间-判断是否正常同步数据 */
    public static final String  SYNC_DATA_ALARM = "SYNC_DATA_ALARM_";

    /** 点位配置缓存（按站点+设备） */
    public static final String POINT_CONFIG_DEVICE = "POINT_CONFIG_DEVICE_";

    /** 点位配置缓存（按站点+pointId） */
    public static final String POINT_CONFIG_POINT = "POINT_CONFIG_POINT_";

    /** 单站监控最新数据（按站点+模块） */
    public static final String SITE_MONITOR_LATEST = "SITE_MONITOR_LATEST_";

    /** 单站监控点位映射（按站点） */
    public static final String SITE_MONITOR_POINT_MATCH = "SITE_MONITOR_POINT_MATCH_";

    /** 站点保护约束（按站点） */
    public static final String PROTECTION_CONSTRAINT = "PROTECTION_CONSTRAINT_";
}
