View Javadoc
1   package com.guinetik.hexafun.examples.sysmon;
2   
3   import static com.guinetik.hexafun.examples.tui.Ansi.*;
4   
5   /**
6    * Output format options for the System Monitor.
7    *
8    * <p>Each format represents a different adapter that transforms
9    * {@link SystemMetrics} into a specific string representation.</p>
10   */
11  public enum SysmonFormat {
12      TUI("TUI", "Colorful gauges", CYAN),
13      CLI("CLI", "Plain text", GREEN),
14      JSON("JSON", "Machine readable", YELLOW),
15      PROMETHEUS("Prometheus", "Metrics format", MAGENTA);
16  
17      final String label;
18      final String desc;
19      final String color;
20  
21      SysmonFormat(String label, String desc, String color) {
22          this.label = label;
23          this.desc = desc;
24          this.color = color;
25      }
26  }