public static class ListMetricsDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ListMetricsDetails |
build() |
ListMetricsDetails.Builder |
copy(ListMetricsDetails model) |
ListMetricsDetails.Builder |
dimensionFilters(Map<String,String> dimensionFilters)
Qualifiers that you want to use when searching for metric definitions.
|
ListMetricsDetails.Builder |
groupBy(List<String> groupBy)
Group metrics by these fields in the response.
|
ListMetricsDetails.Builder |
name(String name)
The metric name to use when searching for metric definitions.
|
ListMetricsDetails.Builder |
namespace(String namespace)
The source service or application to use when searching for metric definitions.
|
ListMetricsDetails.Builder |
resourceGroup(String resourceGroup)
Resource group that you want to match.
|
ListMetricsDetails.Builder |
sortBy(ListMetricsDetails.SortBy sortBy)
The field to use when sorting returned metric definitions.
|
ListMetricsDetails.Builder |
sortOrder(ListMetricsDetails.SortOrder sortOrder)
The sort order to use when sorting returned metric definitions.
|
public ListMetricsDetails.Builder name(String name)
The metric name to use when searching for metric definitions.
Example: CpuUtilization
name
- the value to setpublic ListMetricsDetails.Builder namespace(String namespace)
The source service or application to use when searching for metric definitions.
Example: oci_computeagent
namespace
- the value to setpublic ListMetricsDetails.Builder resourceGroup(String resourceGroup)
Resource group that you want to match. A null value returns only metric data that has no resource groups. The specified resource group must exist in the definition of the posted metric. 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 ListMetricsDetails.Builder dimensionFilters(Map<String,String> dimensionFilters)
Qualifiers that you want to use when searching for metric definitions. Available dimensions vary by metric namespace. Each dimension takes the form of a key-value pair.
Example: {"resourceId": "ocid1.instance.region1.phx.exampleuniqueID"}
dimensionFilters
- the value to setpublic ListMetricsDetails.Builder groupBy(List<String> groupBy)
Group metrics by these fields in the response. For example, to list all metric namespaces
available in a compartment, groupBy the “namespace” field. Supported fields: namespace,
name, resourceGroup. If groupBy
is used, then dimensionFilters
is
ignored.
Example - group by namespace: [ "namespace" ]
groupBy
- the value to setpublic ListMetricsDetails.Builder sortBy(ListMetricsDetails.SortBy sortBy)
The field to use when sorting returned metric definitions. Only one sorting level is provided.
Example: NAMESPACE
sortBy
- the value to setpublic ListMetricsDetails.Builder sortOrder(ListMetricsDetails.SortOrder sortOrder)
The sort order to use when sorting returned metric definitions. Ascending (ASC) or descending (DESC).
Example: ASC
sortOrder
- the value to setpublic ListMetricsDetails build()
public ListMetricsDetails.Builder copy(ListMetricsDetails model)
Copyright © 2016–2024. All rights reserved.