VppTsdbConstants.java 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. package com.usky.vpp.constant;
  2. import java.util.Arrays;
  3. import java.util.List;
  4. /**
  5. * VPP TDengine 指标常量(与 device_metrics 超级表及 EMS 存量表字段兼容)
  6. */
  7. public final class VppTsdbConstants {
  8. private VppTsdbConstants() {
  9. }
  10. /** 有功功率 / 实际负荷(优先匹配顺序) */
  11. public static final List<String> ACTIVE_POWER_METRICS = Arrays.asList(
  12. "active_power",
  13. "totalActivePower",
  14. "totalactivepower",
  15. "activepowera"
  16. );
  17. /** 实时上调能力 */
  18. public static final List<String> UP_CAPACITY_METRICS = Arrays.asList(
  19. "up_capacity_kw",
  20. "upCapacityKw"
  21. );
  22. /** 实时下调能力 */
  23. public static final List<String> DOWN_CAPACITY_METRICS = Arrays.asList(
  24. "down_capacity_kw",
  25. "downCapacityKw"
  26. );
  27. /** 资源看板实时指标 */
  28. public static final List<String> BOARD_REALTIME_METRICS = Arrays.asList(
  29. "device_status",
  30. "p",
  31. "ua",
  32. "ia"
  33. );
  34. /** 日发电量(光伏) */
  35. public static final String METRIC_EDAY = "eday";
  36. /** 正向总有功电能(用电累计) */
  37. public static final String METRIC_EPP = "epp";
  38. /** 反向总有功电能(发电累计) */
  39. public static final String METRIC_EPN = "epn";
  40. /** 尖/峰/平/谷 正向有功电度 */
  41. public static final String METRIC_EPP1 = "epp1";
  42. public static final String METRIC_EPP2 = "epp2";
  43. public static final String METRIC_EPP3 = "epp3";
  44. public static final String METRIC_EPP4 = "epp4";
  45. public static final String TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
  46. }