Skip to main content

estimate_cost_savings

Creates, updates, deletes, gets or lists an estimate_cost_savings resource.

Overview​

Nameestimate_cost_savings
TypeResource
Idoci.database.estimate_cost_savings

Fields​

The following fields are returned by SELECT queries:

List of Cost Estimates.

NameDatatypeDescription
costSavingsWithElasticPoolnumber (double)Estimated cost savings in percentage with elastic pool utilization.
estimatedUsageWithoutElasticPoolinteger (int64)CPU cost for a given time period under regular billing plan, in ECPU hours.
isCpuAutoscalebooleanIndicates if CPU autoscaling is applied.
timeEndedstring (date-time)The epoch time at which cost aggregation ends.
timeStartedstring (date-time)The epoch time at which cost aggregation starts.
usageWithElasticPoolinteger (int64)CPU cost for a given time period under elastic pool billing plan, in ECPU hours.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectisCpuAutoscale, autonomousDatabaseId, regionopc-request-id, limit, pageGets the estimate cost savings of the Autonomous AI Database.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
autonomousDatabaseIdstringThe database [OCID](/Content/General/Concepts/identifiers.htm).
isCpuAutoscalebooleanIf provided as true, cost estimate with cpu autoscaling.
regionstringOCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION)
limitintegerThe maximum number of items to return per page.
opc-request-idstringUnique identifier for the request.
pagestringThe pagination token to continue listing from.

SELECT examples​

Gets the estimate cost savings of the Autonomous AI Database.

SELECT
costSavingsWithElasticPool,
estimatedUsageWithoutElasticPool,
isCpuAutoscale,
timeEnded,
timeStarted,
usageWithElasticPool
FROM oci.database.estimate_cost_savings
WHERE isCpuAutoscale = '{{ isCpuAutoscale }}' -- required
AND autonomousDatabaseId = '{{ autonomousDatabaseId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
AND limit = '{{ limit }}'
AND page = '{{ page }}'
;