Skip to content

Commit f74ac02

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Correct Incident App documentation around search endpoint (#1699)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 75a4192 commit f74ac02

File tree

3 files changed

+15
-27
lines changed

3 files changed

+15
-27
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2023-10-04 17:33:10.073416",
8-
"spec_repo_commit": "adf28ce4"
7+
"regenerated": "2023-10-04 20:38:45.655558",
8+
"spec_repo_commit": "79ab1c3c"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-10-04 17:33:10.095399",
13-
"spec_repo_commit": "adf28ce4"
12+
"regenerated": "2023-10-04 20:38:45.670703",
13+
"spec_repo_commit": "79ab1c3c"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -234,21 +234,13 @@ components:
234234
schema:
235235
$ref: '#/components/schemas/IncidentRelatedObject'
236236
IncidentSearchQueryQueryParameter:
237-
description: 'Specifies which incidents should be returned. After entering a
238-
search query in your [Incidents page][1],
237+
description: 'Specifies which incidents should be returned. The query can contain
238+
any number of incident facets
239239

240-
use the query parameter value in the URL of the page as the value for this
241-
parameter.
240+
joined by `ANDs`, along with multiple values for each of those facets joined
241+
by `OR`s. For
242242

243-
244-
The query can contain any number of incident facets joined by `ANDs`, along
245-
with multiple values for each of
246-
247-
those facets joined by `OR`s, for instance: `query="state:active AND severity:(SEV-2
248-
OR SEV-1)"`.
249-
250-
251-
[1]: https://app.datadoghq.com/incidents'
243+
example: `state:active AND severity:(SEV-2 OR SEV-1)`.'
252244
explode: false
253245
in: query
254246
name: query

src/datadog_api_client/v2/api/incidents_api.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -920,11 +920,9 @@ def search_incidents(
920920
921921
Search for incidents matching a certain query.
922922
923-
:param query: Specifies which incidents should be returned. After entering a search query in your `Incidents page <https://app.datadoghq.com/incidents>`_ ,
924-
use the query parameter value in the URL of the page as the value for this parameter.
925-
926-
The query can contain any number of incident facets joined by ``ANDs`` , along with multiple values for each of
927-
those facets joined by ``OR`` s, for instance: ``query="state:active AND severity:(SEV-2 OR SEV-1)"``.
923+
:param query: Specifies which incidents should be returned. The query can contain any number of incident facets
924+
joined by ``ANDs`` , along with multiple values for each of those facets joined by ``OR`` s. For
925+
example: ``state:active AND severity:(SEV-2 OR SEV-1)``.
928926
:type query: str
929927
:param include: Specifies which types of related objects should be included in the response.
930928
:type include: IncidentRelatedObject, optional
@@ -966,11 +964,9 @@ def search_incidents_with_pagination(
966964
967965
Provide a paginated version of :meth:`search_incidents`, returning all items.
968966
969-
:param query: Specifies which incidents should be returned. After entering a search query in your `Incidents page <https://app.datadoghq.com/incidents>`_ ,
970-
use the query parameter value in the URL of the page as the value for this parameter.
971-
972-
The query can contain any number of incident facets joined by ``ANDs`` , along with multiple values for each of
973-
those facets joined by ``OR`` s, for instance: ``query="state:active AND severity:(SEV-2 OR SEV-1)"``.
967+
:param query: Specifies which incidents should be returned. The query can contain any number of incident facets
968+
joined by ``ANDs`` , along with multiple values for each of those facets joined by ``OR`` s. For
969+
example: ``state:active AND severity:(SEV-2 OR SEV-1)``.
974970
:type query: str
975971
:param include: Specifies which types of related objects should be included in the response.
976972
:type include: IncidentRelatedObject, optional

0 commit comments

Comments
 (0)