Skip to main content

projected_cost

Creates, updates, deletes, gets or lists a projected_cost resource.

Overview

Nameprojected_cost
TypeResource
Iddatadog.organization.projected_cost

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringUnique ID of the response.
attributesobjectProjected Cost attributes data.
typestringType of cost data. (projected_cost) (default: projected_cost, example: projected_cost)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_projected_costselectview, include_connected_accountsGet projected cost across multi-org and single root-org accounts.<br />Projected cost data is only available for the current month and becomes available around the 12th of the month.<br /><br />This endpoint is only accessible for [parent-level organizations](https:​//docs.datadoghq.com/account_management/multi_organization/).

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
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.
include_connected_accountsbooleanBoolean to specify whether to include accounts connected to the current account as partner customers in the Datadog partner network program. Defaults to false.
viewstringString to specify whether cost is broken down at a parent-org level or at the sub-org level. Available views are summary and sub-org. Defaults to summary.

SELECT examples

Get projected cost across multi-org and single root-org accounts.<br />Projected cost data is only available for the current month and becomes available around the 12th of the month.<br /><br />This endpoint is only accessible for [parent-level organizations](https:​//docs.datadoghq.com/account_management/multi_organization/).

SELECT
id,
attributes,
type
FROM datadog.organization.projected_cost
WHERE view = '{{ view }}'
AND include_connected_accounts = '{{ include_connected_accounts }}'
;