Package com.oracle.bmc.datascience.model
Class TargetCustomExpressionQueryScalingConfiguration.Builder
- java.lang.Object
-
- com.oracle.bmc.datascience.model.TargetCustomExpressionQueryScalingConfiguration.Builder
-
- Enclosing class:
- TargetCustomExpressionQueryScalingConfiguration
public static class TargetCustomExpressionQueryScalingConfiguration.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TargetCustomExpressionQueryScalingConfigurationbuild()TargetCustomExpressionQueryScalingConfiguration.Buildercopy(TargetCustomExpressionQueryScalingConfiguration model)TargetCustomExpressionQueryScalingConfiguration.BuildermetricNamespace(String metricNamespace)Namespace to read the metrics from.TargetCustomExpressionQueryScalingConfiguration.Builderquery(String query)The Monitoring Query Language (MQL) expression to evaluate for the alarm.TargetCustomExpressionQueryScalingConfiguration.Builderthreshold(Float threshold)A metric value at which the scaling operation will be triggered.
-
-
-
Method Detail
-
query
public TargetCustomExpressionQueryScalingConfiguration.Builder query(String query)
The Monitoring Query Language (MQL) expression to evaluate for the alarm.The Alarms feature of the Monitoring service interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, statistic, interval, and trigger rule (threshold or absence). Supported values for interval: 1m-60m (also 1h). You can optionally specify dimensions and grouping functions. Supported grouping functions: grouping(), groupBy(). Example of threshold alarm: CPUUtilization[1m]{resourceId = “Model_Deployment_OCID”}.grouping().mean() < 25 CPUUtilization[1m]{resourceId = “Model_Deployment_OCID”}.grouping().mean() > 75
- Parameters:
query- the value to set- Returns:
- this builder
-
threshold
public TargetCustomExpressionQueryScalingConfiguration.Builder threshold(Float threshold)
A metric value at which the scaling operation will be triggered.- Parameters:
threshold- the value to set- Returns:
- this builder
-
metricNamespace
public TargetCustomExpressionQueryScalingConfiguration.Builder metricNamespace(String metricNamespace)
Namespace to read the metrics from.Default value will be service metric namespace.
- Parameters:
metricNamespace- the value to set- Returns:
- this builder
-
build
public TargetCustomExpressionQueryScalingConfiguration build()
-
copy
public TargetCustomExpressionQueryScalingConfiguration.Builder copy(TargetCustomExpressionQueryScalingConfiguration model)
-
-