Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace QueryProperties

The query properties.

Properties

Optional compartmentDepth

compartmentDepth: undefined | number

The depth level of the compartment. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

dateRange

Optional filter

filter: model.Filter

granularity

granularity: Granularity

The usage granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation. Allowed values are: DAILY MONTHLY

Optional groupBy

groupBy: Array<string>

Aggregate the result by. For example: [ "tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName" ]

Optional groupByTag

groupByTag: Array<Tag>

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" ]

Optional isAggregateByTime

isAggregateByTime: undefined | false | true

Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up.

Optional queryType

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

Functions

getDeserializedJsonObj

getJsonObj