Class AlertUtil

java.lang.Object
frc.robot.util.AlertUtil

public class AlertUtil extends Object
A utility class used for sending alerts to Elastic and Driver Station.
  • Constructor Details

    • AlertUtil

      public AlertUtil()
  • Method Details

    • sendNotification

      public static void sendNotification(AlertUtil.AlertLevel level, String title, String message, Time timeout)
      Sends a notification to Elastic and Driver Station.
      Parameters:
      level - The notification level for the notification.
      title - The title for the notification. This only gets displayed on Elastic, not on Driver Station.
      message - The description for the notification.
      timeout - The amount of time for the notification to show in Elastic. If set to zero, the notification will persist indefinitely.