Package com.oracle.bmc.autoscaling.model
Class CustomMetric.Builder
- java.lang.Object
- 
- com.oracle.bmc.autoscaling.model.CustomMetric.Builder
 
- 
- Enclosing class:
- CustomMetric
 
 public static class CustomMetric.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomMetricbuild()CustomMetric.Buildercopy(CustomMetric model)CustomMetric.BuildermetricCompartmentId(String metricCompartmentId)The OCID of the compartment containing the metrics.CustomMetric.Buildernamespace(String namespace)The namespace for the query.CustomMetric.BuilderpendingDuration(String pendingDuration)CustomMetric.Builderquery(String query)The Monitoring Query Language (MQL) expression to evaluate for the alarm.CustomMetric.BuilderresourceGroup(String resourceGroup)The resource group for the query.
 
- 
- 
- 
Method Detail- 
pendingDurationpublic CustomMetric.Builder pendingDuration(String pendingDuration) 
 - 
querypublic CustomMetric.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]{availabilityDomain="cumS:PHX-AD-1"}.groupBy(availabilityDomain).percentile(0.9) > 85 ----- - Parameters:
- query- the value to set
- Returns:
- this builder
 
 - 
namespacepublic CustomMetric.Builder namespace(String namespace) The namespace for the query.- Parameters:
- namespace- the value to set
- Returns:
- this builder
 
 - 
resourceGrouppublic CustomMetric.Builder resourceGroup(String resourceGroup) The resource group for the query.- Parameters:
- resourceGroup- the value to set
- Returns:
- this builder
 
 - 
metricCompartmentIdpublic CustomMetric.Builder metricCompartmentId(String metricCompartmentId) The OCID of the compartment containing the metrics.- Parameters:
- metricCompartmentId- the value to set
- Returns:
- this builder
 
 - 
buildpublic CustomMetric build() 
 - 
copypublic CustomMetric.Builder copy(CustomMetric model) 
 
- 
 
-