Skip to content

Reorder incident search parameters #2076

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-04-11 15:05:33.216821",
"spec_repo_commit": "d209cd40"
"regenerated": "2025-04-11 22:26:39.963032",
"spec_repo_commit": "357a756f"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-04-11 15:05:33.232842",
"spec_repo_commit": "d209cd40"
"regenerated": "2025-04-11 22:26:39.978836",
"spec_repo_commit": "357a756f"
}
}
}
2 changes: 1 addition & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41360,8 +41360,8 @@ paths:
description: Search for incidents matching a certain query.
operationId: SearchIncidents
parameters:
- $ref: '#/components/parameters/IncidentSearchIncludeQueryParameter'
- $ref: '#/components/parameters/IncidentSearchQueryQueryParameter'
- $ref: '#/components/parameters/IncidentSearchIncludeQueryParameter'
- $ref: '#/components/parameters/IncidentSearchSortQueryParameter'
- $ref: '#/components/parameters/PageSize'
- $ref: '#/components/parameters/PageOffset'
Expand Down
8 changes: 4 additions & 4 deletions features/support/scenarios_model_mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3826,14 +3826,14 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
"operationResponseType": "IncidentTypeResponse",
},
"v2.SearchIncidents": {
"include": {
"type": "IncidentRelatedObject",
"format": "",
},
"query": {
"type": "string",
"format": "",
},
"include": {
"type": "IncidentRelatedObject",
"format": "",
},
"sort": {
"type": "IncidentSearchSortOrder",
"format": "",
Expand Down
12 changes: 6 additions & 6 deletions packages/datadog-api-client-v2/apis/IncidentsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -898,17 +898,17 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory {
requestContext.setHttpConfig(_config.httpConfig);

// Query Params
if (include !== undefined) {
if (query !== undefined) {
requestContext.setQueryParam(
"include",
ObjectSerializer.serialize(include, "IncidentRelatedObject", ""),
"query",
ObjectSerializer.serialize(query, "string", ""),
""
);
}
if (query !== undefined) {
if (include !== undefined) {
requestContext.setQueryParam(
"query",
ObjectSerializer.serialize(query, "string", ""),
"include",
ObjectSerializer.serialize(include, "IncidentRelatedObject", ""),
""
);
}
Expand Down