Package com.oracle.bmc.datascience.model
Enum MetricExpressionRule.MetricExpressionRuleType
- java.lang.Object
-
- java.lang.Enum<MetricExpressionRule.MetricExpressionRuleType>
-
- com.oracle.bmc.datascience.model.MetricExpressionRule.MetricExpressionRuleType
-
- All Implemented Interfaces:
BmcEnum,Serializable,Comparable<MetricExpressionRule.MetricExpressionRuleType>
- Enclosing class:
- MetricExpressionRule
public static enum MetricExpressionRule.MetricExpressionRuleType extends Enum<MetricExpressionRule.MetricExpressionRuleType> implements BmcEnum
The metric expression for creating the alarm used to trigger autoscaling actions on the model deployment.The following values are supported:
PREDEFINED_EXPRESSION: An expression built using CPU or Memory metrics emitted by the Model Deployment Monitoring.
CUSTOM_EXPRESSION: A custom Monitoring Query Language (MQL) expression.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CustomExpressionPredefinedExpressionUnknownEnumValueThis 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 MetricExpressionRule.MetricExpressionRuleTypecreate(String key)StringgetValue()static MetricExpressionRule.MetricExpressionRuleTypevalueOf(String name)Returns the enum constant of this type with the specified name.static MetricExpressionRule.MetricExpressionRuleType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PredefinedExpression
public static final MetricExpressionRule.MetricExpressionRuleType PredefinedExpression
-
CustomExpression
public static final MetricExpressionRule.MetricExpressionRuleType CustomExpression
-
UnknownEnumValue
public static final MetricExpressionRule.MetricExpressionRuleType 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 MetricExpressionRule.MetricExpressionRuleType[] 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 (MetricExpressionRule.MetricExpressionRuleType c : MetricExpressionRule.MetricExpressionRuleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MetricExpressionRule.MetricExpressionRuleType 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 MetricExpressionRule.MetricExpressionRuleType create(String key)
-
-