public static class CustomExpressionQueryScalingConfiguration.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CustomExpressionQueryScalingConfiguration |
build() |
CustomExpressionQueryScalingConfiguration.Builder |
copy(CustomExpressionQueryScalingConfiguration model) |
CustomExpressionQueryScalingConfiguration.Builder |
instanceCountAdjustment(Integer instanceCountAdjustment) |
CustomExpressionQueryScalingConfiguration.Builder |
pendingDuration(String pendingDuration) |
CustomExpressionQueryScalingConfiguration.Builder |
query(String query)
The Monitoring Query Language (MQL) expression to evaluate for the alarm.
|
public CustomExpressionQueryScalingConfiguration.Builder pendingDuration(String pendingDuration)
public CustomExpressionQueryScalingConfiguration.Builder instanceCountAdjustment(Integer instanceCountAdjustment)
public CustomExpressionQueryScalingConfiguration.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
-----
query
- the value to setpublic CustomExpressionQueryScalingConfiguration build()
public CustomExpressionQueryScalingConfiguration.Builder copy(CustomExpressionQueryScalingConfiguration model)
Copyright © 2016–2024. All rights reserved.