Aracılığıyla paylaş


AlertSeverity Class

public final class AlertSeverity
extends ExpandableStringEnum<AlertSeverity>

Severity of the alert.

Field Summary

Modifier and Type Field and Description
static final AlertSeverity CRITICAL

Static value Critical for AlertSeverity.

static final AlertSeverity INFORMATIONAL

Static value Informational for AlertSeverity.

static final AlertSeverity WARNING

Static value Warning for AlertSeverity.

Constructor Summary

Constructor Description
AlertSeverity()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of AlertSeverity value.

Method Summary

Modifier and Type Method and Description
static AlertSeverity fromString(String 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

CRITICAL

public static final AlertSeverity CRITICAL

Static value Critical for AlertSeverity.

INFORMATIONAL

public static final AlertSeverity INFORMATIONAL

Static value Informational for AlertSeverity.

WARNING

public static final AlertSeverity WARNING

Static value Warning for AlertSeverity.

Constructor Details

AlertSeverity

@Deprecated
public AlertSeverity()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of AlertSeverity value.

Method Details

fromString

public static AlertSeverity fromString(String 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<AlertSeverity> values()

Gets known AlertSeverity values.

Returns:

known AlertSeverity values.

Applies to