Query Sample¶
This page is generated from the checked-in sample manifest at config/samples/usageapi_v1beta1_query.yaml.
| Field | Value |
|---|---|
| Resource | usageapi/Query |
| API Version | usageapi.oracle.com/v1beta1 |
| Source Path | config/samples/usageapi_v1beta1_query.yaml |
#
# Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#
#
# Replace the OCI identifiers below before running e2e.
# Update metadata.name and spec.queryDefinition.displayName if you want to force a
# fresh create instead of binding to an existing Query with the same saved
# definition in the same compartment.
#
apiVersion: usageapi.oracle.com/v1beta1
kind: Query
metadata:
name: query-sample
spec:
compartmentId: ocid1.compartment.oc1..exampleuniqueID
queryDefinition:
displayName: "query-sample"
reportQuery:
tenantId: ocid1.tenancy.oc1..exampleuniqueID
granularity: MONTHLY
queryType: COST
groupBy:
- service
dateRangeName: LAST_THREE_MONTHS
costAnalysisUI:
graph: BARS
isCumulativeGraph: false
version: 1