public static class QueryProperties.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
QueryProperties |
build() |
QueryProperties.Builder |
compartmentDepth(BigDecimal compartmentDepth)
The depth level of the compartment.
|
QueryProperties.Builder |
copy(QueryProperties model) |
QueryProperties.Builder |
dateRange(DateRange dateRange) |
QueryProperties.Builder |
filter(Filter filter) |
QueryProperties.Builder |
granularity(QueryProperties.Granularity granularity)
The usage granularity.
|
QueryProperties.Builder |
groupBy(List<String> groupBy)
Aggregate the result by.
|
QueryProperties.Builder |
groupByTag(List<Tag> groupByTag)
GroupBy a specific tagKey.
|
QueryProperties.Builder |
isAggregateByTime(Boolean isAggregateByTime)
Specifies whether aggregated by time.
|
QueryProperties.Builder |
queryType(QueryProperties.QueryType queryType)
The query usage type.
|
public QueryProperties.Builder groupBy(List<String> groupBy)
Aggregate the result by. For example: [ “tagNamespace”, “tagKey”, “tagValue”, “service”, “skuName”, “skuPartNumber”, “unit”, “compartmentName”, “compartmentPath”, “compartmentId”, “platform”, “region”, “logicalAd”, “resourceId”, “tenantId”, “tenantName” ]
groupBy
- the value to setpublic QueryProperties.Builder groupByTag(List<Tag> groupByTag)
GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only supports one tag in the list. For example: [ { “namespace”: “oracle”, “key”: “createdBy” ]
groupByTag
- the value to setpublic QueryProperties.Builder filter(Filter filter)
public QueryProperties.Builder compartmentDepth(BigDecimal compartmentDepth)
The depth level of the compartment.
compartmentDepth
- the value to setpublic QueryProperties.Builder granularity(QueryProperties.Granularity granularity)
The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY
granularity
- the value to setpublic QueryProperties.Builder queryType(QueryProperties.QueryType queryType)
The query usage type. COST by default if it is missing. Usage - Query the usage data. Cost - Query the cost/billing data. Allowed values are: USAGE COST USAGE_AND_COST
queryType
- the value to setpublic QueryProperties.Builder isAggregateByTime(Boolean isAggregateByTime)
Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up.
isAggregateByTime
- the value to setpublic QueryProperties.Builder dateRange(DateRange dateRange)
public QueryProperties build()
public QueryProperties.Builder copy(QueryProperties model)
Copyright © 2016–2024. All rights reserved.