@@ -17831,6 +17831,76 @@ components:
1783117831 required:
1783217832 - data
1783317833 type: object
17834+ CostRecommendationArray:
17835+ description: A page of cost recommendations with pagination metadata.
17836+ properties:
17837+ data:
17838+ description: The list of cost recommendations on this page.
17839+ items:
17840+ $ref: "#/components/schemas/CostRecommendationData"
17841+ type: array
17842+ meta:
17843+ $ref: "#/components/schemas/RecommendationsPageMeta"
17844+ required:
17845+ - data
17846+ type: object
17847+ CostRecommendationData:
17848+ description: A single cost recommendation entry in JSON:API form.
17849+ properties:
17850+ attributes:
17851+ $ref: "#/components/schemas/CostRecommendationDataAttributes"
17852+ id:
17853+ description: Unique identifier for the recommendation.
17854+ type: string
17855+ type:
17856+ $ref: "#/components/schemas/CostRecommendationDataType"
17857+ required:
17858+ - type
17859+ type: object
17860+ CostRecommendationDataAttributes:
17861+ description: Attributes describing a single cost recommendation.
17862+ properties:
17863+ dd_resource_key:
17864+ description: Datadog resource key identifying the recommended resource.
17865+ type: string
17866+ potential_daily_savings:
17867+ $ref: "#/components/schemas/CostRecommendationDataAttributesPotentialDailySavings"
17868+ recommendation_type:
17869+ description: The kind of recommendation (for example, `terminate` or `rightsize`).
17870+ type: string
17871+ resource_id:
17872+ description: Cloud provider identifier of the resource.
17873+ type: string
17874+ resource_type:
17875+ description: Resource type (for example, `aws_ec2_instance`).
17876+ type: string
17877+ tags:
17878+ description: Tags attached to the recommended resource.
17879+ items:
17880+ description: A single resource tag.
17881+ type: string
17882+ type: array
17883+ type: object
17884+ CostRecommendationDataAttributesPotentialDailySavings:
17885+ description: Estimated daily savings if the recommendation is applied.
17886+ properties:
17887+ amount:
17888+ description: Numeric amount of the potential daily savings.
17889+ format: double
17890+ type: number
17891+ currency:
17892+ description: ISO 4217 currency code for the savings amount.
17893+ type: string
17894+ type: object
17895+ CostRecommendationDataType:
17896+ default: recommendation
17897+ description: Recommendation resource type.
17898+ enum:
17899+ - recommendation
17900+ example: recommendation
17901+ type: string
17902+ x-enum-varnames:
17903+ - RECOMMENDATION
1783417904 CostTag:
1783517905 description: A Cloud Cost Management tag.
1783617906 properties:
@@ -62894,6 +62964,64 @@ components:
6289462964 type: string
6289562965 x-enum-varnames:
6289662966 - RECOMMENDATION
62967+ RecommendationsFilterRequest:
62968+ description: Request body for filtering cost recommendations.
62969+ example:
62970+ filter: "@resource_table:aws_ec2_instance"
62971+ sort:
62972+ - expression: potential_daily_savings.amount
62973+ order: DESC
62974+ properties:
62975+ filter:
62976+ description: Filter expression applied to the recommendations.
62977+ type: string
62978+ scope:
62979+ description: Recommendations scope. Defaults to `ccm`; use `experiment` for experimental recommendations or `*` for both.
62980+ type: string
62981+ sort:
62982+ description: Ordered list of sort clauses applied to the result set.
62983+ items:
62984+ $ref: "#/components/schemas/RecommendationsFilterRequestSortItems"
62985+ type: array
62986+ view:
62987+ description: Active view name (for example, `active`, `dismissed`, `open`, `in-progress`, or `completed`).
62988+ type: string
62989+ type: object
62990+ RecommendationsFilterRequestSortItems:
62991+ description: A single sort clause applied to the cost recommendations result set.
62992+ properties:
62993+ expression:
62994+ description: Field to sort by (for example, `potential_daily_savings.amount`).
62995+ type: string
62996+ order:
62997+ description: Sort direction, either `ASC` or `DESC`.
62998+ type: string
62999+ type: object
63000+ RecommendationsPageMeta:
63001+ description: Top-level JSON:API meta object for paginated cost recommendation responses.
63002+ properties:
63003+ page:
63004+ $ref: "#/components/schemas/RecommendationsPageMetaPage"
63005+ type: object
63006+ RecommendationsPageMetaPage:
63007+ description: Pagination metadata for a page of cost recommendations.
63008+ properties:
63009+ filter:
63010+ description: The filter expression that was applied to produce this page.
63011+ type: string
63012+ next_page_token:
63013+ description: Opaque token used to fetch the next page; absent on the last page.
63014+ type: string
63015+ page_size:
63016+ description: Number of items returned in this page (1–10000).
63017+ format: int32
63018+ maximum: 10000
63019+ minimum: 1
63020+ type: integer
63021+ page_token:
63022+ description: Pagination token echoed back from the request.
63023+ type: string
63024+ type: object
6289763025 ReferenceTableCreateSourceType:
6289863026 description: The source type for creating reference table data. Only these source types can be created through this API.
6289963027 enum:
@@ -105252,6 +105380,76 @@ paths:
105252105380 operator: OR
105253105381 permissions:
105254105382 - cloud_cost_management_read
105383+ /api/v2/cost/recommendations:
105384+ post:
105385+ description: List cost recommendations matching a filter, with pagination and sorting.
105386+ operationId: SearchCostRecommendations
105387+ parameters:
105388+ - description: Number of results per page (1–10000).
105389+ in: query
105390+ name: page[size]
105391+ schema:
105392+ type: string
105393+ - description: Pagination token from a previous response.
105394+ in: query
105395+ name: page[token]
105396+ schema:
105397+ type: string
105398+ requestBody:
105399+ content:
105400+ application/json:
105401+ examples:
105402+ default:
105403+ value:
105404+ filter: "@resource_table:aws_ec2_instance"
105405+ sort:
105406+ - expression: potential_daily_savings.amount
105407+ order: DESC
105408+ schema:
105409+ $ref: "#/components/schemas/RecommendationsFilterRequest"
105410+ required: true
105411+ responses:
105412+ "200":
105413+ content:
105414+ application/json:
105415+ examples:
105416+ default:
105417+ value:
105418+ data:
105419+ - attributes:
105420+ dd_resource_key: "arn:aws:ec2:us-east-1:123456789012:instance/i-1234567890abcdef0"
105421+ potential_daily_savings:
105422+ amount: 1.23
105423+ currency: USD
105424+ recommendation_type: terminate
105425+ resource_id: i-1234567890abcdef0
105426+ resource_type: aws_ec2_instance
105427+ tags:
105428+ - "env:prod"
105429+ - "team:ccm"
105430+ id: encoded-event-id-1
105431+ type: recommendation
105432+ meta:
105433+ page:
105434+ filter: "@resource_table:aws_ec2_instance"
105435+ next_page_token: ""
105436+ page_size: 100
105437+ schema:
105438+ $ref: "#/components/schemas/CostRecommendationArray"
105439+ description: OK
105440+ "429":
105441+ $ref: "#/components/responses/TooManyRequestsResponse"
105442+ security:
105443+ - apiKeyAuth: []
105444+ appKeyAuth: []
105445+ - AuthZ:
105446+ - cloud_cost_management_read
105447+ summary: Search cost recommendations
105448+ tags:
105449+ - Cloud Cost Management
105450+ x-unstable: |-
105451+ **Note**: This endpoint is in preview and is subject to change.
105452+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
105255105453 /api/v2/cost/tag_descriptions:
105256105454 get:
105257105455 description: List Cloud Cost Management tag key descriptions for the organization. Use `filter[cloud]` to scope the result to a single cloud provider; when omitted, both cross-cloud defaults and cloud-specific descriptions are returned.
0 commit comments