Package frc.robot.util
Class AlertUtil
java.lang.Object
frc.robot.util.AlertUtil
A utility class used for sending alerts to Elastic and Driver Station.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe notification level for an Alert. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidsendNotification(AlertUtil.AlertLevel level, String title, String message, Time timeout) Sends a notification 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.
-