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 and Description |
---|
CustomExpression |
PredefinedExpression |
UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by
this version of the SDK.
|
Modifier and Type | Method and Description |
---|---|
static MetricExpressionRule.MetricExpressionRuleType |
create(String key) |
String |
getValue() |
static MetricExpressionRule.MetricExpressionRuleType |
valueOf(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.
|
public static final MetricExpressionRule.MetricExpressionRuleType PredefinedExpression
public static final MetricExpressionRule.MetricExpressionRuleType CustomExpression
public static final MetricExpressionRule.MetricExpressionRuleType UnknownEnumValue
public static MetricExpressionRule.MetricExpressionRuleType[] values()
for (MetricExpressionRule.MetricExpressionRuleType c : MetricExpressionRule.MetricExpressionRuleType.values()) System.out.println(c);
public static MetricExpressionRule.MetricExpressionRuleType 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 static MetricExpressionRule.MetricExpressionRuleType create(String key)
Copyright © 2016–2025. All rights reserved.