Class Elastic

java.lang.Object
frc.robot.util.Elastic

public final class Elastic extends Object
  • Constructor Details

    • Elastic

      public Elastic()
  • Method Details

    • sendNotification

      public static void sendNotification(Elastic.Notification notification)
      Sends an notification to the Elastic dashboard. The notification is serialized as a JSON string before being published.
      Parameters:
      notification - the Elastic.Notification object containing notification details
    • selectTab

      public static void selectTab(String tabName)
      Selects the tab of the dashboard with the given name. If no tab matches the name, this will have no effect on the widgets or tabs in view.

      If the given name is a number, Elastic will select the tab whose index equals the number provided.

      Parameters:
      tabName - the name of the tab to select
    • selectTab

      public static void selectTab(int tabIndex)
      Selects the tab of the dashboard at the given index. If this index is greater than or equal to the number of tabs, this will have no effect.
      Parameters:
      tabIndex - the index of the tab to select.