Skip to main content

recommendations

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

Overview

Namerecommendations
TypeResource
Iddatadog.cloud_costs.recommendations

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
search_cost_recommendationsinsertpage[size], page[token]List cost recommendations matching a filter, with pagination and sorting.

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.
page[size]stringNumber of results per page (1–10000).
page[token]stringPagination token from a previous response.

INSERT examples

List cost recommendations matching a filter, with pagination and sorting.

INSERT INTO datadog.cloud_costs.recommendations (
filter,
sort,
view,
page[size],
page[token]
)
SELECT
'{{ filter }}',
'{{ sort }}',
'{{ view }}',
'{{ page[size] }}',
'{{ page[token] }}'
RETURNING
data,
meta
;