AlertSeverity Class

public final class AlertSeverity
extends ExpandableStringEnum<AlertSeverity>

Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest. Relevant and required only for rules of the kind LogAlert.

Field Summary

Modifier and Type Field and Description
static final AlertSeverity FOUR

Static value 4 for AlertSeverity.

static final AlertSeverity ONE

Static value 1 for AlertSeverity.

static final AlertSeverity THREE

Static value 3 for AlertSeverity.

static final AlertSeverity TWO

Static value 2 for AlertSeverity.

static final AlertSeverity ZERO

Static value 0 for AlertSeverity.

Constructor Summary

Constructor Description
AlertSeverity()

Deprecated

Use the fromLong(long name) factory method.

Creates a new instance of AlertSeverity value.

Method Summary

Modifier and Type Method and Description
static AlertSeverity fromLong(long name)

Creates or finds a AlertSeverity from its string representation.

static Collection<AlertSeverity> values()

Gets known AlertSeverity values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

FOUR

public static final AlertSeverity FOUR

Static value 4 for AlertSeverity.

ONE

public static final AlertSeverity ONE

Static value 1 for AlertSeverity.

THREE

public static final AlertSeverity THREE

Static value 3 for AlertSeverity.

TWO

public static final AlertSeverity TWO

Static value 2 for AlertSeverity.

ZERO

public static final AlertSeverity ZERO

Static value 0 for AlertSeverity.

Constructor Details

AlertSeverity

@Deprecated
public AlertSeverity()

Deprecated

Use the fromLong(long name) factory method.

Creates a new instance of AlertSeverity value.

Method Details

fromLong

public static AlertSeverity fromLong(long name)

Creates or finds a AlertSeverity from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding AlertSeverity.

values

public static Collection values()

Gets known AlertSeverity values.

Returns:

known AlertSeverity values.

Applies to