package com.njcn.influxdb.param;

/**
 * 类的介绍：使用influxDB查询时的公共参数
 *
 * @author xuyang
 * @version 1.0.0
 * @createTime 2022/6/24 15:02
 */
public interface InfluxDBPublicParam {

    /**
     * 暂态事件汇总表
     */
    String PQS_EVENT_DETAIL = " pqs_eventdetail";

    /**
     * 电压波动闪变表
     */
    String DATA_FLICKER = "data_flicker";

    /**
     * 电压波动表
     */
    String DATA_FLUC = "data_fluc";

    /**
     * 谐波电流角度表
     */
    String DATA_HARM_PHASIC_I = "data_harmphasic_i";

    /**
     * 谐波电压角度表
     */
    String DATA_HARM_PHASIC_V = "data_harmphasic_v";

    /**
     * 有功功率表
     */
    String DATA_HARM_POWER_P = "data_harmpower_p";

    /**
     * 无功功率表
     */
    String DATA_HARM_POWER_Q = "data_harmpower_q";

    /**
     * 视在功率表
     */
    String DATA_HARM_POWER_S = "data_harmpower_s";

    /**
     * 谐波电流含有率表
     */
    String DATA_HARM_RATE_I = "data_harmrate_i";

    /**
     * 谐波电压含有率表
     */
    String DATA_HARM_RATE_V = "data_harmrate_v";

    /**
     * 电流表
     */
    String DATA_I = "data_i";

    /**
     * 电流间谐波幅值表
     */
    String DATA_IN_HARM_I = "data_inharm_i";

    /**
     * 电压间谐波幅值表
     */
    String DATA_IN_HARM_V = "data_inharm_v";

    /**
     * 长时闪变表
     */
    String DATA_PLT = "data_plt";

    /**
     * 电压表
     */
    String DATA_V = "data_v";

    /**
     * 日统计-电压波动闪变表
     */
    String DAY_FLICKER = "day_flicker";

    /**
     * 日统计-电压波动表
     */
    String DAY_FLUC = "day_fluc";

    /**
     * 日统计-谐波电流角度表
     */
    String DAY_HARM_PHASIC_I = "day_harmphasic_i";

    /**
     * 日统计-谐波电压角度表
     */
    String DAY_HARM_PHASIC_V = "day_harmphasic_v";

    /**
     * 日统计-有功功率表
     */
    String DAY_HARM_POWER_P = "day_harmpower_p";

    /**
     * 日统计-无功功率表
     */
    String DAY_HARM_POWER_Q = "day_harmpower_q";

    /**
     * 日统计-视在功率表
     */
    String DAY_HARM_POWER_S = "day_harmpower_s";

    /**
     * 日统计-谐波电流含有率表
     */
    String DAY_HARM_RATE_I = "day_harmrate_i";

    /**
     * 日统计-谐波电压含有率表
     */
    String DAY_HARM_RATE_V = "day_harmrate_v";

    /**
     * 日统计-电流表
     */
    String DAY_I = "day_i";

    /**
     * 日统计-电流间谐波幅值表
     */
    String DAY_IN_HARM_I = "day_inharm_i";

    /**
     * 日统计-电压间谐波幅值表
     */
    String DAY_IN_HARM_V = "day_inharm_v";

    /**
     * 日统计-长时闪变表
     */
    String DAY_PLT = "day_plt";

    /**
     * 日统计-电压表
     */
    String DAY_V = "day_v";

    /**
     * 时区
     */
    String TIME_ZONE = " tz('Asia/Shanghai')";

    String TZ = "Asia/Shanghai";


    /**
     * 日起始时间
     */
    String START_TIME = " 00:00:00";

    /**
     * 日结束时间
     */
    String END_TIME = " 23:59:59";

    /**
     * 时间
     */
    String TIME = "time";

    /**
     * 数据线路号
     */
    String LINE_ID = "line_id";

    /**
     * 装置ID
     */
    String DEV_ID = "dev_id";

    /**
     * 数据类型
     */
    String PHASIC_TYPE = "phasic_type";

    /**
     * 指标类型
     */
    String VALUE_TYPE = "value_type";

    /**
     * 数据质量标志
     */
    String QUALITY_FLAG = "quality_flag";

    /**
     * limit_rate
     */
    String LIMIT_RATE = "limit_rate";

    /**
     * limit_target
     */
    String LIMIT_TARGET = "limit_target";

    /**
     * pqs_comasses
     */
    String PQS_COMASSES = "pqs_comasses";

    /**
     * 终端运维日志表
     */
    String PQS_TERMINAL_LOGS = "pqs_terminal_logs";

    /**
     * 监测点状态信息表
     */
    String PQS_COMMUNICATE = "pqs_communicate";

    String PQS_ACTUAL_FLOW = "pqs_actual_flow";

    String CLD_STATIS_FLOW = "cld_statis_flow";

    /**
     * 终端在线率表
     */
    String PQS_ONLINERATE = "pqs_onlinerate";

    /**
     * 数据完整性表
     */
    String PQS_INTEGRITY = "pqs_integrity";

    /**
     * 终端在线率表公共字段
     */
    String ONLINE_MIN = "online_min";

    String OFFLINE_MIN = "offline_min";

    String ONLINE_RATE = "online_rate";

    /**
     * data表中InfluxDBPublicParam
     */
    String VALUETYPE = "value_type";


    /**
     * 数据完整性表公共字段
     */
    String DUE = "due";

    String REAL = "real";

    String DEV_INDEX = "dev_id";

    /**
     * 稳态数据分析字段
     */
    String PHASIC_TYPET = "T";

    /**
     * 每天固定时间分钟
     */
    Integer DAY_MINUTE = 1440;

}
