package com.usky.vpp.constant;

import java.util.Arrays;
import java.util.List;

/**
 * VPP TDengine 指标常量（与 device_metrics 超级表及 EMS 存量表字段兼容）
 */
public final class VppTsdbConstants {

    private VppTsdbConstants() {
    }

    /** 有功功率 / 实际负荷（优先匹配顺序） */
    public static final List<String> ACTIVE_POWER_METRICS = Arrays.asList(
            "active_power",
            "totalActivePower",
            "totalactivepower",
            "activepowera"
    );

    /** 实时上调能力 */
    public static final List<String> UP_CAPACITY_METRICS = Arrays.asList(
            "up_capacity_kw",
            "upCapacityKw"
    );

    /** 实时下调能力 */
    public static final List<String> DOWN_CAPACITY_METRICS = Arrays.asList(
            "down_capacity_kw",
            "downCapacityKw"
    );

    /** 资源看板实时指标 */
    public static final List<String> BOARD_REALTIME_METRICS = Arrays.asList(
            "device_status",
            "p",
            "ua",
            "ia",
            "soc"
    );

    /** 日发电量（光伏） */
    public static final String METRIC_EDAY = "eday";

    /** 正向总有功电能（用电累计） */
    public static final String METRIC_EPP = "epp";

    /** 反向总有功电能（发电累计） */
    public static final String METRIC_EPN = "epn";

    /** 尖/峰/平/谷 正向有功电度 */
    public static final String METRIC_EPP1 = "epp1";
    public static final String METRIC_EPP2 = "epp2";
    public static final String METRIC_EPP3 = "epp3";
    public static final String METRIC_EPP4 = "epp4";

    /** 总有功功率 kW */
    public static final String METRIC_P = "p";

    /** 储能 SOC % */
    public static final String METRIC_SOC = "soc";


    public static final String TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
}
