Enum Class MonitoringConstants.Period
java.lang.Object
java.lang.Enum<MonitoringConstants.Period>
org.ametys.runtime.plugins.admin.jvmstatus.monitoring.MonitoringConstants.Period
- All Implemented Interfaces:
Serializable
,Comparable<MonitoringConstants.Period>
,java.lang.constant.Constable
- Enclosing interface:
- MonitoringConstants
Period to archive and to render.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionLast 24 hours.Last hour.Last month.Last week.Last year. -
Method Summary
Modifier and TypeMethodDescriptionlong
getTime()
Returns the time in seconds for current period.static MonitoringConstants.Period
Returns the enum constant of this class with the specified name.static MonitoringConstants.Period[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LAST_HOUR
Last hour. -
LAST_DAY
Last 24 hours. -
LAST_WEEK
Last week. -
LAST_MONTH
Last month. -
LAST_YEAR
Last year.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getTime
Returns the time in seconds for current period.- Returns:
- the time.
-