public static class HaMetricDefinition.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
HaMetricDefinition |
build() |
HaMetricDefinition.Builder |
copy(HaMetricDefinition model) |
HaMetricDefinition.Builder |
dimensions(Map<String,String> dimensions)
The dimension qualifiers provided in the definition of the returned metric.
|
HaMetricDefinition.Builder |
metadata(Map<String,String> metadata)
The metadata qualifiers provided in the definition of the returned metric.
|
HaMetricDefinition.Builder |
metricName(String metricName)
The name of the metric.
|
HaMetricDefinition.Builder |
timestamp(Date timestamp)
The data point date and time in UTC in ISO-8601 format, which is
“yyyy-MM-dd’T’hh:mm:ss.sss’Z’”.
|
HaMetricDefinition.Builder |
value(Double value)
The target value of the metric.
|
public HaMetricDefinition.Builder metricName(String metricName)
The name of the metric.
metricName
- the value to setpublic HaMetricDefinition.Builder metadata(Map<String,String> metadata)
The metadata qualifiers provided in the definition of the returned metric. Available metadata vary by metric.
metadata
- the value to setpublic HaMetricDefinition.Builder dimensions(Map<String,String> dimensions)
The dimension qualifiers provided in the definition of the returned metric. Available
dimensions vary by metric namespace. Each dimension takes the form of a key-value pair.
Example: {"resourceId": "ocid1.instance.region1.phx.exampleuniqueID"}
dimensions
- the value to setpublic HaMetricDefinition.Builder timestamp(Date timestamp)
The data point date and time in UTC in ISO-8601 format, which is “yyyy-MM-dd’T’hh:mm:ss.sss’Z’”.
timestamp
- the value to setpublic HaMetricDefinition.Builder value(Double value)
The target value of the metric.
value
- the value to setpublic HaMetricDefinition build()
public HaMetricDefinition.Builder copy(HaMetricDefinition model)
Copyright © 2016–2025. All rights reserved.