StatisticEnum.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. package org.dbsyncer.biz.enums;
  2. public enum StatisticEnum {
  3. /**
  4. * The sum of the amounts recorded.
  5. */
  6. TOTAL("total"),
  7. /**
  8. * The sum of the times recorded. Reported in the monitoring system's base unit of time
  9. */
  10. TOTAL_TIME("total"),
  11. /**
  12. * Rate per second for calls.
  13. */
  14. COUNT("count"),
  15. /**
  16. * The maximum amount recorded. When this represents a time, it is reported in the monitoring system's base unit of time.
  17. */
  18. MAX("max"),
  19. /**
  20. * Instantaneous value, such as those reported by gauges.
  21. */
  22. VALUE("value"),
  23. /**
  24. * Undetermined.
  25. */
  26. UNKNOWN("unknown"),
  27. /**
  28. * Number of currently active tasks for a long task timer.
  29. */
  30. ACTIVE_TASKS("active"),
  31. /**
  32. * Duration of a running task in a long task timer. Always reported in the monitoring system's base unit of time.
  33. */
  34. DURATION("duration");
  35. private final String tagValueRepresentation;
  36. StatisticEnum(String tagValueRepresentation) {
  37. this.tagValueRepresentation = tagValueRepresentation;
  38. }
  39. public String getTagValueRepresentation() {
  40. return tagValueRepresentation;
  41. }
  42. }