public enum Window extends Enum<Window>
Enum Constant and Description |
---|
PREVIOUS_24_HOURS
The window for accessing a metric's history and statistics for each hour during the last day (24 hours).
|
PREVIOUS_52_WEEKS
The window for accessing a metric's history and statistics for each week during the last year (52 weeks).
|
PREVIOUS_60_MINUTES
The window for accessing a metric's history and statistics for each minute during the last hour (60 minutes).
|
PREVIOUS_60_SECONDS
The window for accessing a metric's history and statistics for ten 5-second intervals during the last minute (60 seconds).
|
PREVIOUS_7_DAYS
The window for accessing a metric's history and statistics for each day during the last week (7 days).
|
Modifier and Type | Method and Description |
---|---|
static Window |
fromLiteral(String literal)
Get the
Window that has the supplied literal. |
String |
getLiteral()
The literal string form of the window.
|
static Window |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Window[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Window PREVIOUS_60_SECONDS
public static final Window PREVIOUS_60_MINUTES
public static final Window PREVIOUS_24_HOURS
public static final Window PREVIOUS_7_DAYS
public static final Window PREVIOUS_52_WEEKS
public static Window[] values()
for (Window c : Window.values()) System.out.println(c);
public static Window 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 nullpublic String getLiteral()
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.