public enum Scope extends Enum<Scope>
Scope
enumeration is used to define the area that an alert has
the most meaning. This is primary used as a way for a UI to determine the
correct views that the alert should be visible in.Enum Constant and Description |
---|
ANY
The alert can be shown in any context (HOST or SERVICE).
|
HOST
The alert only makes sense when viewing a host that the alert runs on.
|
SERVICE
The alert only makes sense when viewing a service that the alert is defined
for.
|
Modifier and Type | Method and Description |
---|---|
static Scope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Scope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Scope HOST
public static final Scope SERVICE
public static final Scope ANY
public static Scope[] values()
for (Scope c : Scope.values()) System.out.println(c);
public static Scope valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2022 Apache Software Foundation. All rights reserved.