Skip to content

Commit 300749c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit fdc4847 of spec repo
1 parent 5629a9a commit 300749c

22 files changed

Lines changed: 1127 additions & 33 deletions

.generator/schemas/v1/openapi.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9229,19 +9229,11 @@ components:
92299229
description: The monitor `CRITICAL` threshold.
92309230
format: double
92319231
type: number
9232-
critical_query:
9233-
description: Query evaluated as a dynamic `CRITICAL` threshold. Only supported on metric monitors with a formula query and options['variables']. Cannot be combined with static thresholds. This field is in preview.
9234-
example: 'formula("2 * query1").rollup("avg").last("6mo")'
9235-
type: string
92369232
critical_recovery:
92379233
description: The monitor `CRITICAL` recovery threshold.
92389234
format: double
92399235
nullable: true
92409236
type: number
9241-
critical_recovery_query:
9242-
description: Query evaluated as a dynamic `CRITICAL` recovery threshold. Only supported on metric monitors with a formula query and options['variables']. Cannot be combined with static thresholds. This field is in preview.
9243-
example: 'formula("1.5 * query1").rollup("avg").last("3mo")'
9244-
type: string
92459237
ok:
92469238
description: The monitor `OK` threshold.
92479239
format: double
@@ -33708,10 +33700,6 @@ paths:
3370833700
- `operator`: <, <=, >, >=, ==, or !=
3370933701
- `#`: an integer or decimal number used to set the threshold
3371033702

33711-
To use a dynamic threshold on a metric monitor with a formula query, replace `#` with the `threshold` keyword
33712-
(for example, `... > threshold`) and provide the threshold as a query via `critical_query` on `options.thresholds`.
33713-
This feature is in preview.
33714-
3371533703
If you are using the `_change_` or `_pct_change_` time aggregator, instead use `change_aggr(time_aggr(time_window),
3371633704
timeshift):space_aggr:metric{tags} [by {key}] operator #` with:
3371733705

.generator/schemas/v2/openapi.yaml

Lines changed: 332 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18165,6 +18165,25 @@ components:
1816518165
- tag_key
1816618166
- updated_at
1816718167
type: object
18168+
CostTagDescriptionResponse:
18169+
description: Single Cloud Cost Management tag key description returned by the get-by-key endpoint.
18170+
example:
18171+
data:
18172+
attributes:
18173+
cloud: aws
18174+
created_at: "2026-01-01T12:00:00Z"
18175+
description: AWS account that owns this cost.
18176+
source: human
18177+
tag_key: account_id
18178+
updated_at: "2026-01-01T12:00:00Z"
18179+
id: account_id
18180+
type: cost_tag_description
18181+
properties:
18182+
data:
18183+
$ref: "#/components/schemas/CostTagDescription"
18184+
required:
18185+
- data
18186+
type: object
1816818187
CostTagDescriptionSource:
1816918188
description: Origin of the description. `human` indicates the description was written by a user, `ai_generated` was produced by AI, and `datadog` is a default supplied by Datadog.
1817018189
enum:
@@ -18186,6 +18205,50 @@ components:
1818618205
type: string
1818718206
x-enum-varnames:
1818818207
- COST_TAG_DESCRIPTION
18208+
CostTagDescriptionUpsertRequest:
18209+
description: Request body for creating or updating a Cloud Cost Management tag key description.
18210+
example:
18211+
data:
18212+
attributes:
18213+
cloud: aws
18214+
description: AWS account that owns this cost.
18215+
id: account_id
18216+
type: cost_tag_description
18217+
properties:
18218+
data:
18219+
$ref: "#/components/schemas/CostTagDescriptionUpsertRequestData"
18220+
required:
18221+
- data
18222+
type: object
18223+
CostTagDescriptionUpsertRequestData:
18224+
description: Resource envelope carrying the tag key description being upserted. The `id` is informational; the authoritative tag key is taken from the URL path.
18225+
properties:
18226+
attributes:
18227+
$ref: "#/components/schemas/CostTagDescriptionUpsertRequestDataAttributes"
18228+
id:
18229+
description: Identifier of the tag key the description applies to. Matches the `tag_key` path parameter.
18230+
example: account_id
18231+
type: string
18232+
type:
18233+
$ref: "#/components/schemas/CostTagDescriptionType"
18234+
required:
18235+
- attributes
18236+
- type
18237+
type: object
18238+
CostTagDescriptionUpsertRequestDataAttributes:
18239+
description: Mutable attributes set when creating or updating a Cloud Cost Management tag key description.
18240+
properties:
18241+
cloud:
18242+
description: Cloud provider this description applies to (for example, `aws`). Omit to set the cross-cloud default for the tag key.
18243+
example: aws
18244+
type: string
18245+
description:
18246+
description: The human-readable description for the tag key.
18247+
example: AWS account that owns this cost.
18248+
type: string
18249+
required:
18250+
- description
18251+
type: object
1818918252
CostTagDescriptionsResponse:
1819018253
description: List of Cloud Cost Management tag key descriptions for the organization, optionally filtered to a single cloud provider.
1819118254
example:
@@ -34014,6 +34077,55 @@ components:
3401434077
required:
3401534078
- type
3401634079
type: object
34080+
GenerateCostTagDescriptionResponse:
34081+
description: Response wrapping an AI-generated Cloud Cost Management tag key description.
34082+
example:
34083+
data:
34084+
attributes:
34085+
description: AWS account that owns this cost.
34086+
id: account_id
34087+
type: cost_generated_tag_description
34088+
properties:
34089+
data:
34090+
$ref: "#/components/schemas/GeneratedCostTagDescription"
34091+
required:
34092+
- data
34093+
type: object
34094+
GeneratedCostTagDescription:
34095+
description: AI-generated Cloud Cost Management tag key description returned by the generate endpoint. The result is returned to the client but is not persisted by this endpoint.
34096+
properties:
34097+
attributes:
34098+
$ref: "#/components/schemas/GeneratedCostTagDescriptionAttributes"
34099+
id:
34100+
description: The tag key the AI description was generated for.
34101+
example: account_id
34102+
type: string
34103+
type:
34104+
$ref: "#/components/schemas/GeneratedCostTagDescriptionType"
34105+
required:
34106+
- attributes
34107+
- id
34108+
- type
34109+
type: object
34110+
GeneratedCostTagDescriptionAttributes:
34111+
description: Attributes of an AI-generated Cloud Cost Management tag key description.
34112+
properties:
34113+
description:
34114+
description: The AI-generated description for the tag key.
34115+
example: AWS account that owns this cost.
34116+
type: string
34117+
required:
34118+
- description
34119+
type: object
34120+
GeneratedCostTagDescriptionType:
34121+
default: cost_generated_tag_description
34122+
description: Type of the AI-generated Cloud Cost Management tag description resource.
34123+
enum:
34124+
- cost_generated_tag_description
34125+
example: cost_generated_tag_description
34126+
type: string
34127+
x-enum-varnames:
34128+
- COST_GENERATED_TAG_DESCRIPTION
3401734129
GetActionConnectionResponse:
3401834130
description: The response for found connection
3401934131
properties:
@@ -108434,6 +108546,226 @@ paths:
108434108546
operator: OR
108435108547
permissions:
108436108548
- cloud_cost_management_read
108549+
/api/v2/cost/tag_descriptions/{tag_key}:
108550+
delete:
108551+
description: Delete a Cloud Cost Management tag key description. When `cloud` is omitted, deletes every description for the tag key, falling back to Datadog's global default when available. When `cloud` is provided, deletes only the description scoped to that cloud provider.
108552+
operationId: DeleteCostTagDescriptionByKey
108553+
parameters:
108554+
- description: The tag key whose description is being deleted.
108555+
in: path
108556+
name: tag_key
108557+
required: true
108558+
schema:
108559+
type: string
108560+
- description: Cloud provider to scope the deletion to (for example, `aws`). Omit to delete every description for the tag key.
108561+
in: query
108562+
name: cloud
108563+
required: false
108564+
schema:
108565+
type: string
108566+
responses:
108567+
"204":
108568+
description: No Content
108569+
"400":
108570+
content:
108571+
application/json:
108572+
schema:
108573+
$ref: "#/components/schemas/APIErrorResponse"
108574+
description: Bad Request
108575+
"403":
108576+
content:
108577+
application/json:
108578+
schema:
108579+
$ref: "#/components/schemas/APIErrorResponse"
108580+
description: Forbidden
108581+
"429":
108582+
$ref: "#/components/responses/TooManyRequestsResponse"
108583+
security:
108584+
- apiKeyAuth: []
108585+
appKeyAuth: []
108586+
- AuthZ:
108587+
- cloud_cost_management_write
108588+
summary: Delete a Cloud Cost Management tag description
108589+
tags:
108590+
- Cloud Cost Management
108591+
"x-permission":
108592+
operator: OR
108593+
permissions:
108594+
- cloud_cost_management_write
108595+
get:
108596+
description: Get the Cloud Cost Management description for a single tag key. Use `filter[cloud]` to scope the lookup to a specific cloud provider; when omitted, the response resolves the description in fallback order (cloud-specific organization override, then cloudless organization default, then Datadog's global default).
108597+
operationId: GetCostTagDescriptionByKey
108598+
parameters:
108599+
- description: The tag key whose description is being fetched.
108600+
in: path
108601+
name: tag_key
108602+
required: true
108603+
schema:
108604+
type: string
108605+
- description: Cloud provider to scope the lookup to (for example, `aws`). Omit to use the resolved fallback.
108606+
in: query
108607+
name: filter[cloud]
108608+
required: false
108609+
schema:
108610+
type: string
108611+
responses:
108612+
"200":
108613+
content:
108614+
application/json:
108615+
examples:
108616+
default:
108617+
value:
108618+
data:
108619+
attributes:
108620+
cloud: aws
108621+
created_at: "2026-01-01T12:00:00Z"
108622+
description: AWS account that owns this cost.
108623+
source: human
108624+
tag_key: account_id
108625+
updated_at: "2026-01-01T12:00:00Z"
108626+
id: account_id
108627+
type: cost_tag_description
108628+
schema:
108629+
$ref: "#/components/schemas/CostTagDescriptionResponse"
108630+
description: OK
108631+
"400":
108632+
content:
108633+
application/json:
108634+
schema:
108635+
$ref: "#/components/schemas/APIErrorResponse"
108636+
description: Bad Request
108637+
"403":
108638+
content:
108639+
application/json:
108640+
schema:
108641+
$ref: "#/components/schemas/APIErrorResponse"
108642+
description: Forbidden
108643+
"404":
108644+
content:
108645+
application/json:
108646+
schema:
108647+
$ref: "#/components/schemas/APIErrorResponse"
108648+
description: Not Found
108649+
"429":
108650+
$ref: "#/components/responses/TooManyRequestsResponse"
108651+
security:
108652+
- apiKeyAuth: []
108653+
appKeyAuth: []
108654+
- AuthZ:
108655+
- cloud_cost_management_read
108656+
summary: Get a Cloud Cost Management tag description
108657+
tags:
108658+
- Cloud Cost Management
108659+
"x-permission":
108660+
operator: OR
108661+
permissions:
108662+
- cloud_cost_management_read
108663+
put:
108664+
description: Create or update a Cloud Cost Management tag key description. The new description and optional cloud scoping are supplied in the request body. Omit `cloud` to set a cross-cloud default for the tag key.
108665+
operationId: UpsertCostTagDescriptionByKey
108666+
parameters:
108667+
- description: The tag key whose description is being upserted.
108668+
in: path
108669+
name: tag_key
108670+
required: true
108671+
schema:
108672+
type: string
108673+
requestBody:
108674+
content:
108675+
application/json:
108676+
examples:
108677+
default:
108678+
value:
108679+
data:
108680+
attributes:
108681+
cloud: aws
108682+
description: AWS account that owns this cost.
108683+
id: account_id
108684+
type: cost_tag_description
108685+
schema:
108686+
$ref: "#/components/schemas/CostTagDescriptionUpsertRequest"
108687+
required: true
108688+
responses:
108689+
"204":
108690+
description: No Content
108691+
"400":
108692+
content:
108693+
application/json:
108694+
schema:
108695+
$ref: "#/components/schemas/APIErrorResponse"
108696+
description: Bad Request
108697+
"403":
108698+
content:
108699+
application/json:
108700+
schema:
108701+
$ref: "#/components/schemas/APIErrorResponse"
108702+
description: Forbidden
108703+
"429":
108704+
$ref: "#/components/responses/TooManyRequestsResponse"
108705+
security:
108706+
- apiKeyAuth: []
108707+
appKeyAuth: []
108708+
- AuthZ:
108709+
- cloud_cost_management_write
108710+
summary: Upsert a Cloud Cost Management tag description
108711+
tags:
108712+
- Cloud Cost Management
108713+
"x-permission":
108714+
operator: OR
108715+
permissions:
108716+
- cloud_cost_management_write
108717+
/api/v2/cost/tag_descriptions/{tag_key}/generate:
108718+
get:
108719+
description: Use AI to draft a Cloud Cost Management tag key description based on associated cost data. The generated description is returned in the response and is not persisted by this endpoint; follow up with `UpsertCostTagDescriptionByKey` to save it.
108720+
operationId: GenerateCostTagDescriptionByKey
108721+
parameters:
108722+
- description: The tag key to generate an AI description for.
108723+
in: path
108724+
name: tag_key
108725+
required: true
108726+
schema:
108727+
type: string
108728+
responses:
108729+
"200":
108730+
content:
108731+
application/json:
108732+
examples:
108733+
default:
108734+
value:
108735+
data:
108736+
attributes:
108737+
description: AWS account that owns this cost.
108738+
id: account_id
108739+
type: cost_generated_tag_description
108740+
schema:
108741+
$ref: "#/components/schemas/GenerateCostTagDescriptionResponse"
108742+
description: OK
108743+
"400":
108744+
content:
108745+
application/json:
108746+
schema:
108747+
$ref: "#/components/schemas/APIErrorResponse"
108748+
description: Bad Request
108749+
"403":
108750+
content:
108751+
application/json:
108752+
schema:
108753+
$ref: "#/components/schemas/APIErrorResponse"
108754+
description: Forbidden
108755+
"429":
108756+
$ref: "#/components/responses/TooManyRequestsResponse"
108757+
security:
108758+
- apiKeyAuth: []
108759+
appKeyAuth: []
108760+
- AuthZ:
108761+
- cloud_cost_management_read
108762+
summary: Generate a Cloud Cost Management tag description
108763+
tags:
108764+
- Cloud Cost Management
108765+
"x-permission":
108766+
operator: OR
108767+
permissions:
108768+
- cloud_cost_management_read
108437108769
/api/v2/cost/tag_keys:
108438108770
get:
108439108771
description: List Cloud Cost Management tag keys.

0 commit comments

Comments
 (0)