Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Metric |
build() |
Metric.Builder |
compartmentId(String compartmentId)
The OCID
of the compartment containing the resources monitored by the metric.
|
Metric.Builder |
copy(Metric model) |
Metric.Builder |
dimensions(Map<String,String> dimensions)
Qualifiers provided in a metric definition.
|
Metric.Builder |
name(String name)
The name of the metric.
|
Metric.Builder |
namespace(String namespace)
The source service or application emitting the metric.
|
Metric.Builder |
resourceGroup(String resourceGroup)
Resource group provided with the posted metric.
|
public Metric.Builder name(String name)
The name of the metric.
Example: CpuUtilization
name
- the value to setpublic Metric.Builder namespace(String namespace)
The source service or application emitting the metric.
Example: oci_computeagent
namespace
- the value to setpublic Metric.Builder resourceGroup(String resourceGroup)
Resource group provided with the posted metric. A resource group is a custom string that you can match when retrieving custom metrics. Only one resource group can be applied per metric. A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
Example: frontend-fleet
resourceGroup
- the value to setpublic Metric.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the resources monitored by the metric.
compartmentId
- the value to setpublic Metric.Builder dimensions(Map<String,String> dimensions)
Qualifiers provided in a metric definition. 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 Metric build()
public Metric.Builder copy(Metric model)
Copyright © 2016–2024. All rights reserved.