Skip to content

Commit 651c09a

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Correct Incident App documentation around search endpoint (#2008)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent dee73bc commit 651c09a

File tree

3 files changed

+41
-65
lines changed

3 files changed

+41
-65
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:04.961391",
8-
"spec_repo_commit": "adf28ce4"
7+
"regenerated": "2023-10-04 20:38:56.966827",
8+
"spec_repo_commit": "79ab1c3c"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-10-04 17:33:04.978253",
13-
"spec_repo_commit": "adf28ce4"
12+
"regenerated": "2023-10-04 20:38:56.985498",
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/main/java/com/datadog/api/client/v2/api/IncidentsApi.java

Lines changed: 32 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -2584,12 +2584,10 @@ public SearchIncidentsOptionalParameters pageOffset(Long pageOffset) {
25842584
*
25852585
* <p>See {@link #searchIncidentsWithHttpInfo}.
25862586
*
2587-
* @param query Specifies which incidents should be returned. After entering a search query in
2588-
* your <a href="https://app.datadoghq.com/incidents">Incidents page</a>, use the query
2589-
* parameter value in the URL of the page as the value for this parameter. The query can
2590-
* contain any number of incident facets joined by <code>ANDs</code>, along with multiple
2591-
* values for each of those facets joined by <code>OR</code>s, for instance: <code>
2592-
* query="state:active AND severity:(SEV-2 OR SEV-1)"</code>. (required)
2587+
* @param query Specifies which incidents should be returned. The query can contain any number of
2588+
* incident facets joined by <code>ANDs</code>, along with multiple values for each of those
2589+
* facets joined by <code>OR</code>s. For example: <code>
2590+
* state:active AND severity:(SEV-2 OR SEV-1)</code>. (required)
25932591
* @return IncidentSearchResponse
25942592
* @throws ApiException if fails to make API call
25952593
*/
@@ -2602,12 +2600,10 @@ public IncidentSearchResponse searchIncidents(String query) throws ApiException
26022600
*
26032601
* <p>See {@link #searchIncidentsWithHttpInfoAsync}.
26042602
*
2605-
* @param query Specifies which incidents should be returned. After entering a search query in
2606-
* your <a href="https://app.datadoghq.com/incidents">Incidents page</a>, use the query
2607-
* parameter value in the URL of the page as the value for this parameter. The query can
2608-
* contain any number of incident facets joined by <code>ANDs</code>, along with multiple
2609-
* values for each of those facets joined by <code>OR</code>s, for instance: <code>
2610-
* query="state:active AND severity:(SEV-2 OR SEV-1)"</code>. (required)
2603+
* @param query Specifies which incidents should be returned. The query can contain any number of
2604+
* incident facets joined by <code>ANDs</code>, along with multiple values for each of those
2605+
* facets joined by <code>OR</code>s. For example: <code>
2606+
* state:active AND severity:(SEV-2 OR SEV-1)</code>. (required)
26112607
* @return CompletableFuture&lt;IncidentSearchResponse&gt;
26122608
*/
26132609
public CompletableFuture<IncidentSearchResponse> searchIncidentsAsync(String query) {
@@ -2623,12 +2619,10 @@ public CompletableFuture<IncidentSearchResponse> searchIncidentsAsync(String que
26232619
*
26242620
* <p>See {@link #searchIncidentsWithHttpInfo}.
26252621
*
2626-
* @param query Specifies which incidents should be returned. After entering a search query in
2627-
* your <a href="https://app.datadoghq.com/incidents">Incidents page</a>, use the query
2628-
* parameter value in the URL of the page as the value for this parameter. The query can
2629-
* contain any number of incident facets joined by <code>ANDs</code>, along with multiple
2630-
* values for each of those facets joined by <code>OR</code>s, for instance: <code>
2631-
* query="state:active AND severity:(SEV-2 OR SEV-1)"</code>. (required)
2622+
* @param query Specifies which incidents should be returned. The query can contain any number of
2623+
* incident facets joined by <code>ANDs</code>, along with multiple values for each of those
2624+
* facets joined by <code>OR</code>s. For example: <code>
2625+
* state:active AND severity:(SEV-2 OR SEV-1)</code>. (required)
26322626
* @param parameters Optional parameters for the request.
26332627
* @return IncidentSearchResponse
26342628
* @throws ApiException if fails to make API call
@@ -2643,12 +2637,10 @@ public IncidentSearchResponse searchIncidents(
26432637
*
26442638
* <p>See {@link #searchIncidentsWithHttpInfoAsync}.
26452639
*
2646-
* @param query Specifies which incidents should be returned. After entering a search query in
2647-
* your <a href="https://app.datadoghq.com/incidents">Incidents page</a>, use the query
2648-
* parameter value in the URL of the page as the value for this parameter. The query can
2649-
* contain any number of incident facets joined by <code>ANDs</code>, along with multiple
2650-
* values for each of those facets joined by <code>OR</code>s, for instance: <code>
2651-
* query="state:active AND severity:(SEV-2 OR SEV-1)"</code>. (required)
2640+
* @param query Specifies which incidents should be returned. The query can contain any number of
2641+
* incident facets joined by <code>ANDs</code>, along with multiple values for each of those
2642+
* facets joined by <code>OR</code>s. For example: <code>
2643+
* state:active AND severity:(SEV-2 OR SEV-1)</code>. (required)
26522644
* @param parameters Optional parameters for the request.
26532645
* @return CompletableFuture&lt;IncidentSearchResponse&gt;
26542646
*/
@@ -2666,12 +2658,10 @@ public CompletableFuture<IncidentSearchResponse> searchIncidentsAsync(
26662658
*
26672659
* <p>See {@link #searchIncidentsWithHttpInfo}.
26682660
*
2669-
* @param query Specifies which incidents should be returned. After entering a search query in
2670-
* your <a href="https://app.datadoghq.com/incidents">Incidents page</a>, use the query
2671-
* parameter value in the URL of the page as the value for this parameter. The query can
2672-
* contain any number of incident facets joined by <code>ANDs</code>, along with multiple
2673-
* values for each of those facets joined by <code>OR</code>s, for instance: <code>
2674-
* query="state:active AND severity:(SEV-2 OR SEV-1)"</code>. (required)
2661+
* @param query Specifies which incidents should be returned. The query can contain any number of
2662+
* incident facets joined by <code>ANDs</code>, along with multiple values for each of those
2663+
* facets joined by <code>OR</code>s. For example: <code>
2664+
* state:active AND severity:(SEV-2 OR SEV-1)</code>. (required)
26752665
* @return PaginationIterable&lt;IncidentSearchResponseIncidentsData&gt;
26762666
*/
26772667
public PaginationIterable<IncidentSearchResponseIncidentsData> searchIncidentsWithPagination(
@@ -2685,12 +2675,10 @@ public PaginationIterable<IncidentSearchResponseIncidentsData> searchIncidentsWi
26852675
*
26862676
* <p>See {@link #searchIncidentsWithHttpInfo}.
26872677
*
2688-
* @param query Specifies which incidents should be returned. After entering a search query in
2689-
* your <a href="https://app.datadoghq.com/incidents">Incidents page</a>, use the query
2690-
* parameter value in the URL of the page as the value for this parameter. The query can
2691-
* contain any number of incident facets joined by <code>ANDs</code>, along with multiple
2692-
* values for each of those facets joined by <code>OR</code>s, for instance: <code>
2693-
* query="state:active AND severity:(SEV-2 OR SEV-1)"</code>. (required)
2678+
* @param query Specifies which incidents should be returned. The query can contain any number of
2679+
* incident facets joined by <code>ANDs</code>, along with multiple values for each of those
2680+
* facets joined by <code>OR</code>s. For example: <code>
2681+
* state:active AND severity:(SEV-2 OR SEV-1)</code>. (required)
26942682
* @return IncidentSearchResponse
26952683
*/
26962684
public PaginationIterable<IncidentSearchResponseIncidentsData> searchIncidentsWithPagination(
@@ -2730,12 +2718,10 @@ public PaginationIterable<IncidentSearchResponseIncidentsData> searchIncidentsWi
27302718
/**
27312719
* Search for incidents matching a certain query.
27322720
*
2733-
* @param query Specifies which incidents should be returned. After entering a search query in
2734-
* your <a href="https://app.datadoghq.com/incidents">Incidents page</a>, use the query
2735-
* parameter value in the URL of the page as the value for this parameter. The query can
2736-
* contain any number of incident facets joined by <code>ANDs</code>, along with multiple
2737-
* values for each of those facets joined by <code>OR</code>s, for instance: <code>
2738-
* query="state:active AND severity:(SEV-2 OR SEV-1)"</code>. (required)
2721+
* @param query Specifies which incidents should be returned. The query can contain any number of
2722+
* incident facets joined by <code>ANDs</code>, along with multiple values for each of those
2723+
* facets joined by <code>OR</code>s. For example: <code>
2724+
* state:active AND severity:(SEV-2 OR SEV-1)</code>. (required)
27392725
* @param parameters Optional parameters for the request.
27402726
* @return ApiResponse&lt;IncidentSearchResponse&gt;
27412727
* @throws ApiException if fails to make API call
@@ -2808,12 +2794,10 @@ public ApiResponse<IncidentSearchResponse> searchIncidentsWithHttpInfo(
28082794
*
28092795
* <p>See {@link #searchIncidentsWithHttpInfo}.
28102796
*
2811-
* @param query Specifies which incidents should be returned. After entering a search query in
2812-
* your <a href="https://app.datadoghq.com/incidents">Incidents page</a>, use the query
2813-
* parameter value in the URL of the page as the value for this parameter. The query can
2814-
* contain any number of incident facets joined by <code>ANDs</code>, along with multiple
2815-
* values for each of those facets joined by <code>OR</code>s, for instance: <code>
2816-
* query="state:active AND severity:(SEV-2 OR SEV-1)"</code>. (required)
2797+
* @param query Specifies which incidents should be returned. The query can contain any number of
2798+
* incident facets joined by <code>ANDs</code>, along with multiple values for each of those
2799+
* facets joined by <code>OR</code>s. For example: <code>
2800+
* state:active AND severity:(SEV-2 OR SEV-1)</code>. (required)
28172801
* @param parameters Optional parameters for the request.
28182802
* @return CompletableFuture&lt;ApiResponse&lt;IncidentSearchResponse&gt;&gt;
28192803
*/

0 commit comments

Comments
 (0)