Enum LogAnalyticsMetric.MetricType
- java.lang.Object
-
- java.lang.Enum<LogAnalyticsMetric.MetricType>
-
- com.oracle.bmc.loganalytics.model.LogAnalyticsMetric.MetricType
-
- All Implemented Interfaces:
BmcEnum
,Serializable
,Comparable<LogAnalyticsMetric.MetricType>
- Enclosing class:
- LogAnalyticsMetric
public static enum LogAnalyticsMetric.MetricType extends Enum<LogAnalyticsMetric.MetricType> implements BmcEnum
The metric type, specifying the type of aggreation to perform.Default value is COUNT.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Average
AverageDistribution
Count
CountDistribution
Sum
SumDistribution
UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by this version of the SDK.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LogAnalyticsMetric.MetricType
create(String key)
String
getValue()
static LogAnalyticsMetric.MetricType
valueOf(String name)
Returns the enum constant of this type with the specified name.static LogAnalyticsMetric.MetricType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Count
public static final LogAnalyticsMetric.MetricType Count
-
Sum
public static final LogAnalyticsMetric.MetricType Sum
-
Average
public static final LogAnalyticsMetric.MetricType Average
-
CountDistribution
public static final LogAnalyticsMetric.MetricType CountDistribution
-
SumDistribution
public static final LogAnalyticsMetric.MetricType SumDistribution
-
AverageDistribution
public static final LogAnalyticsMetric.MetricType AverageDistribution
-
UnknownEnumValue
public static final LogAnalyticsMetric.MetricType UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by this version of the SDK.
-
-
Method Detail
-
values
public static LogAnalyticsMetric.MetricType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LogAnalyticsMetric.MetricType c : LogAnalyticsMetric.MetricType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LogAnalyticsMetric.MetricType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
create
public static LogAnalyticsMetric.MetricType create(String key)
-
-