Alert level functions

The Aruba Network Analytics Engine provides several predefined functions related to alerts.

The alert level functions get, set, or remove the alert level of the agent:

get_alert_level()

Gets the current alert level of the agent.

Example:

status = self.get_alert_level()
set_alert_level(<Alert_Level>)

Sets the alert level of the agent.

Example:

self.set_alert_level(AlertLevel.CRITICAL)

The <Alert_Level> must be one of the following values:

AlertLevel.CRITICAL

The agent has detected a critical issue.

AlertLevel.MAJOR

The agent has detected a major issue.

AlertLevel.MINOR

The agent has detected a minor issue.

remove_alert_level()

Removes the alert level of the agent.

Example:

self.remove_alert_level()