org.eclipse.cosmos.dc.mgmt.annotations
Enum ManagedMetric.TIME_SCOPE
java.lang.Object
java.lang.Enum<ManagedMetric.TIME_SCOPE>
org.eclipse.cosmos.dc.mgmt.annotations.ManagedMetric.TIME_SCOPE
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ManagedMetric.TIME_SCOPE>
- Enclosing class:
- ManagedMetric
public static enum ManagedMetric.TIME_SCOPE
- extends java.lang.Enum<ManagedMetric.TIME_SCOPE>
Enumeration used to specify the value of timeScope() in the annotation.
INTERVAL - the value of a metric is collected over some time interval.
POINT_IN_TIME - the value of a metric is counted, collected,
or measured at a single instant in time.
SINCE_RESET - the value of the metric is collected since the last reset of a resource, or since the manageable
resource started collecting data for a metric.
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
INTERVAL
public static final ManagedMetric.TIME_SCOPE INTERVAL
POINT_IN_TIME
public static final ManagedMetric.TIME_SCOPE POINT_IN_TIME
SINCE_RESET
public static final ManagedMetric.TIME_SCOPE SINCE_RESET
values
public static final ManagedMetric.TIME_SCOPE[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(ManagedMetric.TIME_SCOPE c : ManagedMetric.TIME_SCOPE.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static ManagedMetric.TIME_SCOPE valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name