Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90233,6 +90233,8 @@ components:
filter:
description: Filter expression applied to the recommendations.
type: string
scope:
$ref: '#/components/schemas/RecommendationsFilterRequestScope'
sort:
description: Ordered list of sort clauses applied to the result set.
items:
Expand All @@ -90242,6 +90244,17 @@ components:
description: Active view name (for example, `active`, `dismissed`, `open`, `in-progress`, or `completed`).
type: string
type: object
RecommendationsFilterRequestScope:
description: Recommendations scope. Defaults to `ccm`; use `experiment` for experimental recommendations or `*` for both.
enum:
- ccm
- experiment
- "*"
type: string
x-enum-varnames:
- CCM
- EXPERIMENT
- ALL
RecommendationsFilterRequestSortItems:
description: A single sort clause applied to the cost recommendations result set.
properties:
Expand Down
1 change: 1 addition & 0 deletions packages/datadog-api-client-v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7388,6 +7388,7 @@ export { RecommendationAttributes } from "./models/RecommendationAttributes";
export { RecommendationData } from "./models/RecommendationData";
export { RecommendationDocument } from "./models/RecommendationDocument";
export { RecommendationsFilterRequest } from "./models/RecommendationsFilterRequest";
export { RecommendationsFilterRequestScope } from "./models/RecommendationsFilterRequestScope";
export { RecommendationsFilterRequestSortItems } from "./models/RecommendationsFilterRequestSortItems";
export { RecommendationsPageMeta } from "./models/RecommendationsPageMeta";
export { RecommendationsPageMetaPage } from "./models/RecommendationsPageMetaPage";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8194,6 +8194,7 @@ const enumsMap: { [key: string]: any[] } = {
RUMSortOrder: ["asc", "desc"],
ReadinessGateThresholdType: ["ANY", "ALL"],
RecommendationType: ["recommendation"],
RecommendationsFilterRequestScope: ["ccm", "experiment", "*"],
ReferenceTableCreateSourceType: ["LOCAL_FILE", "S3", "GCS", "AZURE"],
ReferenceTableSchemaFieldType: ["STRING", "INT32"],
ReferenceTableSortType: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2020-Present Datadog, Inc.
*/
import { RecommendationsFilterRequestScope } from "./RecommendationsFilterRequestScope";
import { RecommendationsFilterRequestSortItems } from "./RecommendationsFilterRequestSortItems";

import { AttributeTypeMap } from "../../datadog-api-client-common/util";
Expand All @@ -15,6 +16,10 @@ export class RecommendationsFilterRequest {
* Filter expression applied to the recommendations.
*/
"filter"?: string;
/**
* Recommendations scope. Defaults to `ccm`; use `experiment` for experimental recommendations or `*` for both.
*/
"scope"?: RecommendationsFilterRequestScope;
/**
* Ordered list of sort clauses applied to the result set.
*/
Expand Down Expand Up @@ -44,6 +49,10 @@ export class RecommendationsFilterRequest {
baseName: "filter",
type: "string",
},
scope: {
baseName: "scope",
type: "RecommendationsFilterRequestScope",
},
sort: {
baseName: "sort",
type: "Array<RecommendationsFilterRequestSortItems>",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2020-Present Datadog, Inc.
*/

import { UnparsedObject } from "../../datadog-api-client-common/util";

/**
* Recommendations scope. Defaults to `ccm`; use `experiment` for experimental recommendations or `*` for both.
*/

export type RecommendationsFilterRequestScope =
| typeof CCM
| typeof EXPERIMENT
| typeof ALL
| UnparsedObject;
export const CCM = "ccm";
export const EXPERIMENT = "experiment";
export const ALL = "*";
Loading