diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 07cf64fab0e..6606535523d 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -71059,6 +71059,14 @@ paths: /api/v2/apm/services: get: operationId: GetServiceList + parameters: + - description: Filter services by environment. Can be set to `*` to return all + services across all environments. + in: query + name: filter[env] + required: true + schema: + type: string responses: '200': content: diff --git a/examples/v2/apm/GetServiceList.java b/examples/v2/apm/GetServiceList.java index 025dbd99022..3dc8dc5fad3 100644 --- a/examples/v2/apm/GetServiceList.java +++ b/examples/v2/apm/GetServiceList.java @@ -11,7 +11,7 @@ public static void main(String[] args) { ApmApi apiInstance = new ApmApi(defaultClient); try { - ServiceList result = apiInstance.getServiceList(); + ServiceList result = apiInstance.getServiceList("filter[env]"); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ApmApi#getServiceList"); diff --git a/src/main/java/com/datadog/api/client/v2/api/ApmApi.java b/src/main/java/com/datadog/api/client/v2/api/ApmApi.java index 02920f126f7..852a7f1bc0c 100644 --- a/src/main/java/com/datadog/api/client/v2/api/ApmApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/ApmApi.java @@ -9,6 +9,7 @@ import jakarta.ws.rs.core.GenericType; import java.util.ArrayList; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.concurrent.CompletableFuture; @@ -48,11 +49,13 @@ public void setApiClient(ApiClient apiClient) { * *
See {@link #getServiceListWithHttpInfo}.
*
+ * @param filterEnv Filter services by environment. Can be set to * to return all
+ * services across all environments. (required)
* @return ServiceList
* @throws ApiException if fails to make API call
*/
- public ServiceList getServiceList() throws ApiException {
- return getServiceListWithHttpInfo().getData();
+ public ServiceList getServiceList(String filterEnv) throws ApiException {
+ return getServiceListWithHttpInfo(filterEnv).getData();
}
/**
@@ -60,10 +63,12 @@ public ServiceList getServiceList() throws ApiException {
*
*
See {@link #getServiceListWithHttpInfoAsync}.
*
+ * @param filterEnv Filter services by environment. Can be set to See {@link #getServiceListWithHttpInfo}.
*
+ * @param filterEnv Filter services by environment. Can be set to * to return all
+ * services across all environments. (required)
* @return CompletableFuture<ServiceList>
*/
- public CompletableFuture* to return all
+ * services across all environments. (required)
* @return ApiResponse<ServiceList>
* @throws ApiException if fails to make API call
* @http.response.details
@@ -81,18 +88,27 @@ public CompletableFuture
*
*/
- public ApiResponse 429 Too many requests - * to return all
+ * services across all environments. (required)
* @return CompletableFuture<ApiResponse<ServiceList>>
*/
- public CompletableFuture