diff --git a/administrative/README.md b/administrative/README.md index 0b1951232..6999e73bf 100644 --- a/administrative/README.md +++ b/administrative/README.md @@ -2,7 +2,7 @@ Administrative API -- API version: 7.0.29 +- API version: 7.0.32 Manage users, accounts, and account groups in the ThousandEyes platform using the Administrative API. This API provides the following operations to manage your organization: diff --git a/agents/README.md b/agents/README.md index 60f8df0e8..7bd520cab 100644 --- a/agents/README.md +++ b/agents/README.md @@ -2,7 +2,7 @@ Agents API -- API version: 7.0.29 +- API version: 7.0.32 ## Overview diff --git a/alerts/README.md b/alerts/README.md index 1d0484994..780f0f301 100644 --- a/alerts/README.md +++ b/alerts/README.md @@ -2,7 +2,7 @@ Alerts API -- API version: 7.0.29 +- API version: 7.0.32 You can manage the following alert functionalities on the ThousandEyes platform using the Alerts API: diff --git a/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/State.java b/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/State.java index d53b80694..31fa2ac45 100644 --- a/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/State.java +++ b/alerts/src/main/java/com/thousandeyes/sdk/alerts/model/State.java @@ -26,8 +26,6 @@ */ public enum State { - ACTIVE("active"), - CLEAR("clear"), TRIGGER("trigger"), diff --git a/alerts/src/test/java/com/thousandeyes/sdk/alerts/AlertsApiTest.java b/alerts/src/test/java/com/thousandeyes/sdk/alerts/AlertsApiTest.java index 351ff82d3..b142f19f0 100644 --- a/alerts/src/test/java/com/thousandeyes/sdk/alerts/AlertsApiTest.java +++ b/alerts/src/test/java/com/thousandeyes/sdk/alerts/AlertsApiTest.java @@ -148,7 +148,7 @@ public void getAlertRequestAndResponseDeserializationTest() "metrics" : "metrics" }, "id" : "3379", - "state" : "active", + "state" : "trigger", "type" : "cea_agent" }, { "name" : "Bucharest, Romania", @@ -159,12 +159,12 @@ public void getAlertRequestAndResponseDeserializationTest() "metrics" : "metrics" }, "id" : "3379", - "state" : "active", + "state" : "trigger", "type" : "cea_agent" } ], "id" : "e9c3bf02-a48c-4aa8-9e5f-898800d6f569", "suppressed" : false, - "state" : "active", + "state" : "trigger", "startDate" : "2022-07-17T22:00:54Z" } """; @@ -267,7 +267,7 @@ public void getAlertsRequestAndResponseDeserializationTest() "state" : "ACTIVE", "ruleId" : 127094, "permalink" : "https://app.thousandeyes.com/alerts/list?__a=75&alertId=2783&agentId=12", - "alertState" : "active", + "alertState" : "trigger", "startDate" : "2022-07-17T22:00:54Z", "alertRuleId" : "127094" }, { @@ -335,7 +335,7 @@ public void getAlertsRequestAndResponseDeserializationTest() "state" : "ACTIVE", "ruleId" : 127094, "permalink" : "https://app.thousandeyes.com/alerts/list?__a=75&alertId=2783&agentId=12", - "alertState" : "active", + "alertState" : "trigger", "startDate" : "2022-07-17T22:00:54Z", "alertRuleId" : "127094" } ], diff --git a/bgp-monitors/README.md b/bgp-monitors/README.md index e76d4c8d4..f63fd94d3 100644 --- a/bgp-monitors/README.md +++ b/bgp-monitors/README.md @@ -2,7 +2,7 @@ BGP Monitors API -- API version: 7.0.29 +- API version: 7.0.32 Retrieve information about BGP monitors available to your ThousandEyes account. ThousandEyes ingests BGP routing data from dozens of global BGP collectors and automatically integrates that visibility as a configurable layer under service, network, and path visualization layers. diff --git a/credentials/README.md b/credentials/README.md index 731b8b389..0d06bcec7 100644 --- a/credentials/README.md +++ b/credentials/README.md @@ -2,7 +2,7 @@ Credentials API -- API version: 7.0.29 +- API version: 7.0.32 Manage credentials for transaction tests using the Credentials API. diff --git a/dashboards/README.md b/dashboards/README.md index 980df9423..406f1b339 100644 --- a/dashboards/README.md +++ b/dashboards/README.md @@ -2,7 +2,7 @@ Dashboards API -- API version: 7.0.29 +- API version: 7.0.32 Manage ThousandEyes Dashboards. diff --git a/emulation/README.md b/emulation/README.md index 7ac8083db..d7e78aed0 100644 --- a/emulation/README.md +++ b/emulation/README.md @@ -2,7 +2,7 @@ Emulation API -- API version: 7.0.29 +- API version: 7.0.32 The Emulation API facilitates the retrieval of user-agent strings for HTTP, pageload, and transaction tests. It also enables the retrieval and addition of emulated devices for pageload and transaction tests. diff --git a/endpoint-agents/README.md b/endpoint-agents/README.md index 795673e2f..9ce0a27da 100644 --- a/endpoint-agents/README.md +++ b/endpoint-agents/README.md @@ -2,7 +2,7 @@ Endpoint Agents API -- API version: 7.0.29 +- API version: 7.0.32 Manage ThousandEyes Endpoint Agents using this API. diff --git a/endpoint-instant-tests/README.md b/endpoint-instant-tests/README.md index 6382e3107..46c8a5b66 100644 --- a/endpoint-instant-tests/README.md +++ b/endpoint-instant-tests/README.md @@ -2,7 +2,7 @@ Endpoint Instant Scheduled Tests API -- API version: 7.0.29 +- API version: 7.0.32 You can create and execute a new endpoint instant scheduled test within ThousandEyes using this API. The test parameters are specified in the `POST` data. diff --git a/endpoint-labels/README.md b/endpoint-labels/README.md index 2b1ccc736..939d82d2c 100644 --- a/endpoint-labels/README.md +++ b/endpoint-labels/README.md @@ -2,7 +2,7 @@ Endpoint Agent Labels API -- API version: 7.0.29 +- API version: 7.0.32 Manage labels applied to endpoint agents using this API. diff --git a/endpoint-test-results/.openapi-generator/FILES b/endpoint-test-results/.openapi-generator/FILES index 1fb9ce385..b3e054328 100644 --- a/endpoint-test-results/.openapi-generator/FILES +++ b/endpoint-test-results/.openapi-generator/FILES @@ -12,6 +12,7 @@ src/main/java/com/thousandeyes/sdk/endpoint/tests/results/LocalNetworkEndpointTe src/main/java/com/thousandeyes/sdk/endpoint/tests/results/NetworkDynamicEndpointTestResultsApi.java src/main/java/com/thousandeyes/sdk/endpoint/tests/results/NetworkEndpointScheduledTestResultsApi.java src/main/java/com/thousandeyes/sdk/endpoint/tests/results/RealUserEndpointTestResultsApi.java +src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/ApplicationMetrics.java src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/ApplicationScoreQuality.java src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/AsnDetails.java src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/ConditionalOperator.java @@ -58,6 +59,7 @@ src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/EndpointTestsDat src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/EndpointTestsDataThresholdFilters.java src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/Error.java src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/ExpandEndpointHttpServerOptions.java +src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/ExpandLocalNetworkTopologyOptions.java src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/GatewayNetworkPing.java src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/Hop.java src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/HttpEndpointTestResult.java @@ -108,6 +110,7 @@ src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/PathVisEndpointT src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/PathVisEndpointTestResults.java src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/PhysicalMemoryUsedBytes.java src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/Platform.java +src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/ProcessMetrics.java src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/RealUserEndpointTest.java src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/RealUserEndpointTestBase.java src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/RealUserEndpointTestCoordinates.java @@ -126,6 +129,7 @@ src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/RealUserEndpoint src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/RealUserEndpointTestResultsRequest.java src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/SelfLinks.java src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/SortOrder.java +src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/SystemMetricDetails.java src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/SystemMetrics.java src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/TargetNetworkPing.java src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/TargetProfile.java diff --git a/endpoint-test-results/README.md b/endpoint-test-results/README.md index 4045fd364..9d81ba704 100644 --- a/endpoint-test-results/README.md +++ b/endpoint-test-results/README.md @@ -2,7 +2,7 @@ Endpoint Test Results API -- API version: 7.0.29 +- API version: 7.0.32 Retrieve results for scheduled and dynamic tests on endpoint agents. diff --git a/endpoint-test-results/docs/LocalNetworkEndpointTestResultsApi.md b/endpoint-test-results/docs/LocalNetworkEndpointTestResultsApi.md index 52fa5b83f..e9cc2a0b7 100644 --- a/endpoint-test-results/docs/LocalNetworkEndpointTestResultsApi.md +++ b/endpoint-test-results/docs/LocalNetworkEndpointTestResultsApi.md @@ -15,7 +15,7 @@ All URIs are relative to *https://api.thousandeyes.com/v7* ## filterLocalNetworksTestResultsTopologies -> LocalNetworkTopologyResults filterLocalNetworksTestResultsTopologies(aid, window, startDate, endDate, cursor, endpointNetworkTopologyResultRequest) +> LocalNetworkTopologyResults filterLocalNetworksTestResultsTopologies(aid, window, startDate, endDate, cursor, expand, endpointNetworkTopologyResultRequest) List endpoint network topologies probes @@ -47,9 +47,10 @@ public class Example { OffsetDateTime startDate = OffsetDateTime.parse("2022-07-17T22:00:54Z"); // OffsetDateTime | Use with the `endDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. OffsetDateTime endDate = OffsetDateTime.parse("2022-07-18T22:00:54Z"); // OffsetDateTime | Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. String cursor = "cursor_example"; // String | (Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter. + List expand = Arrays.asList(); // List | This parameter is optional and determines whether to expand resources related to local network topologies. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as `systemMetricDetails`, append `?expand=system-metric-detail` to the query. EndpointNetworkTopologyResultRequest endpointNetworkTopologyResultRequest = new EndpointNetworkTopologyResultRequest(); // EndpointNetworkTopologyResultRequest | try { - LocalNetworkTopologyResults result = apiInstance.filterLocalNetworksTestResultsTopologies(aid, window, startDate, endDate, cursor, endpointNetworkTopologyResultRequest); + LocalNetworkTopologyResults result = apiInstance.filterLocalNetworksTestResultsTopologies(aid, window, startDate, endDate, cursor, expand, endpointNetworkTopologyResultRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling LocalNetworkEndpointTestResultsApi#filterLocalNetworksTestResultsTopologies"); @@ -72,6 +73,7 @@ public class Example { | **startDate** | **OffsetDateTime**| Use with the `endDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. | [optional] | | **endDate** | **OffsetDateTime**| Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. | [optional] | | **cursor** | **String**| (Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter. | [optional] | +| **expand** | [**List<ExpandLocalNetworkTopologyOptions>**](ExpandLocalNetworkTopologyOptions.md)| This parameter is optional and determines whether to expand resources related to local network topologies. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as `systemMetricDetails`, append `?expand=system-metric-detail` to the query. | [optional] | | **endpointNetworkTopologyResultRequest** | [**EndpointNetworkTopologyResultRequest**](EndpointNetworkTopologyResultRequest.md)| | [optional] | ### Return type @@ -102,7 +104,7 @@ public class Example { ## filterLocalNetworksTestResultsTopologiesWithHttpInfo -> ApiResponse filterLocalNetworksTestResultsTopologies filterLocalNetworksTestResultsTopologiesWithHttpInfo(aid, window, startDate, endDate, cursor, endpointNetworkTopologyResultRequest) +> ApiResponse filterLocalNetworksTestResultsTopologies filterLocalNetworksTestResultsTopologiesWithHttpInfo(aid, window, startDate, endDate, cursor, expand, endpointNetworkTopologyResultRequest) List endpoint network topologies probes @@ -135,9 +137,10 @@ public class Example { OffsetDateTime startDate = OffsetDateTime.parse("2022-07-17T22:00:54Z"); // OffsetDateTime | Use with the `endDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. OffsetDateTime endDate = OffsetDateTime.parse("2022-07-18T22:00:54Z"); // OffsetDateTime | Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. String cursor = "cursor_example"; // String | (Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter. + List expand = Arrays.asList(); // List | This parameter is optional and determines whether to expand resources related to local network topologies. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as `systemMetricDetails`, append `?expand=system-metric-detail` to the query. EndpointNetworkTopologyResultRequest endpointNetworkTopologyResultRequest = new EndpointNetworkTopologyResultRequest(); // EndpointNetworkTopologyResultRequest | try { - ApiResponse response = apiInstance.filterLocalNetworksTestResultsTopologiesWithHttpInfo(aid, window, startDate, endDate, cursor, endpointNetworkTopologyResultRequest); + ApiResponse response = apiInstance.filterLocalNetworksTestResultsTopologiesWithHttpInfo(aid, window, startDate, endDate, cursor, expand, endpointNetworkTopologyResultRequest); System.out.println("Status code: " + response.getStatusCode()); System.out.println("Response headers: " + response.getHeaders()); System.out.println("Response body: " + response.getData()); @@ -162,6 +165,7 @@ public class Example { | **startDate** | **OffsetDateTime**| Use with the `endDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. | [optional] | | **endDate** | **OffsetDateTime**| Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. | [optional] | | **cursor** | **String**| (Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter. | [optional] | +| **expand** | [**List<ExpandLocalNetworkTopologyOptions>**](ExpandLocalNetworkTopologyOptions.md)| This parameter is optional and determines whether to expand resources related to local network topologies. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as `systemMetricDetails`, append `?expand=system-metric-detail` to the query. | [optional] | | **endpointNetworkTopologyResultRequest** | [**EndpointNetworkTopologyResultRequest**](EndpointNetworkTopologyResultRequest.md)| | [optional] | ### Return type @@ -349,7 +353,7 @@ ApiResponse<[**LocalNetworkResults**](LocalNetworkResults.md)> ## getLocalNetworksTestResultsTopology -> LocalNetworkTopologyDetailResults getLocalNetworksTestResultsTopology(networkTopologyId, aid) +> LocalNetworkTopologyDetailResults getLocalNetworksTestResultsTopology(networkTopologyId, aid, expand) Retrieve endpoint local network topology @@ -378,8 +382,9 @@ public class Example { LocalNetworkEndpointTestResultsApi apiInstance = new LocalNetworkEndpointTestResultsApi(defaultClient); String networkTopologyId = "00160:39c518560de9:1491651900:236e6f18"; // String | The network topology ID. String aid = "1234"; // String | A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. + List expand = Arrays.asList(); // List | This parameter is optional and determines whether to expand resources related to local network topologies. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as `systemMetricDetails`, append `?expand=system-metric-detail` to the query. try { - LocalNetworkTopologyDetailResults result = apiInstance.getLocalNetworksTestResultsTopology(networkTopologyId, aid); + LocalNetworkTopologyDetailResults result = apiInstance.getLocalNetworksTestResultsTopology(networkTopologyId, aid, expand); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling LocalNetworkEndpointTestResultsApi#getLocalNetworksTestResultsTopology"); @@ -399,6 +404,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **networkTopologyId** | **String**| The network topology ID. | | | **aid** | **String**| A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. | [optional] | +| **expand** | [**List<ExpandLocalNetworkTopologyOptions>**](ExpandLocalNetworkTopologyOptions.md)| This parameter is optional and determines whether to expand resources related to local network topologies. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as `systemMetricDetails`, append `?expand=system-metric-detail` to the query. | [optional] | ### Return type @@ -427,7 +433,7 @@ public class Example { ## getLocalNetworksTestResultsTopologyWithHttpInfo -> ApiResponse getLocalNetworksTestResultsTopology getLocalNetworksTestResultsTopologyWithHttpInfo(networkTopologyId, aid) +> ApiResponse getLocalNetworksTestResultsTopology getLocalNetworksTestResultsTopologyWithHttpInfo(networkTopologyId, aid, expand) Retrieve endpoint local network topology @@ -457,8 +463,9 @@ public class Example { LocalNetworkEndpointTestResultsApi apiInstance = new LocalNetworkEndpointTestResultsApi(defaultClient); String networkTopologyId = "00160:39c518560de9:1491651900:236e6f18"; // String | The network topology ID. String aid = "1234"; // String | A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. + List expand = Arrays.asList(); // List | This parameter is optional and determines whether to expand resources related to local network topologies. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as `systemMetricDetails`, append `?expand=system-metric-detail` to the query. try { - ApiResponse response = apiInstance.getLocalNetworksTestResultsTopologyWithHttpInfo(networkTopologyId, aid); + ApiResponse response = apiInstance.getLocalNetworksTestResultsTopologyWithHttpInfo(networkTopologyId, aid, expand); System.out.println("Status code: " + response.getStatusCode()); System.out.println("Response headers: " + response.getHeaders()); System.out.println("Response body: " + response.getData()); @@ -480,6 +487,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **networkTopologyId** | **String**| The network topology ID. | | | **aid** | **String**| A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. | [optional] | +| **expand** | [**List<ExpandLocalNetworkTopologyOptions>**](ExpandLocalNetworkTopologyOptions.md)| This parameter is optional and determines whether to expand resources related to local network topologies. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as `systemMetricDetails`, append `?expand=system-metric-detail` to the query. | [optional] | ### Return type diff --git a/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/LocalNetworkEndpointTestResultsApi.java b/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/LocalNetworkEndpointTestResultsApi.java index 109267ac8..59d6acf63 100644 --- a/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/LocalNetworkEndpointTestResultsApi.java +++ b/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/LocalNetworkEndpointTestResultsApi.java @@ -23,6 +23,7 @@ import org.apache.commons.lang3.reflect.TypeUtils; import com.thousandeyes.sdk.endpoint.tests.results.model.EndpointNetworkTopologyResultRequest; import com.thousandeyes.sdk.endpoint.tests.results.model.Error; +import com.thousandeyes.sdk.endpoint.tests.results.model.ExpandLocalNetworkTopologyOptions; import com.thousandeyes.sdk.endpoint.tests.results.model.LocalNetworkResults; import com.thousandeyes.sdk.endpoint.tests.results.model.LocalNetworkTopologyDetailResults; import com.thousandeyes.sdk.endpoint.tests.results.model.LocalNetworkTopologyResults; @@ -72,11 +73,12 @@ public LocalNetworkEndpointTestResultsApi(ApiClient apiClient) { * @param window A dynamic time interval up to the current time of the request. Specify the interval as a number followed by an optional type: `s` for seconds (default if no type is specified), `m` for minutes, `h` for hours, `d` for days, and `w` for weeks. For a precise date range, use `startDate` and `endDate`. (optional) * @param startDate Use with the `endDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. (optional) * @param endDate Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. (optional) + * @param expand This parameter is optional and determines whether to expand resources related to local network topologies. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as `systemMetricDetails`, append `?expand=system-metric-detail` to the query. (optional * @param endpointNetworkTopologyResultRequest (optional) * @return Paginator */ - public Paginator filterLocalNetworksTestResultsTopologiesPaginated(String aid, String window, OffsetDateTime startDate, OffsetDateTime endDate, EndpointNetworkTopologyResultRequest endpointNetworkTopologyResultRequest) { - return new Paginator<>(cursor -> filterLocalNetworksTestResultsTopologies(aid, window, startDate, endDate, cursor, endpointNetworkTopologyResultRequest), + public Paginator filterLocalNetworksTestResultsTopologiesPaginated(String aid, String window, OffsetDateTime startDate, OffsetDateTime endDate, List expand, EndpointNetworkTopologyResultRequest endpointNetworkTopologyResultRequest) { + return new Paginator<>(cursor -> filterLocalNetworksTestResultsTopologies(aid, window, startDate, endDate, cursor, expand, endpointNetworkTopologyResultRequest), LocalNetworkTopologyResults::getResults); } @@ -88,12 +90,13 @@ public Paginator fi * @param startDate Use with the `endDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. (optional) * @param endDate Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. (optional) * @param cursor (Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter. (optional) + * @param expand This parameter is optional and determines whether to expand resources related to local network topologies. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as `systemMetricDetails`, append `?expand=system-metric-detail` to the query. (optional * @param endpointNetworkTopologyResultRequest (optional) * @return LocalNetworkTopologyResults * @throws ApiException if fails to make API call */ - public LocalNetworkTopologyResults filterLocalNetworksTestResultsTopologies(String aid, String window, OffsetDateTime startDate, OffsetDateTime endDate, String cursor, EndpointNetworkTopologyResultRequest endpointNetworkTopologyResultRequest) throws ApiException { - ApiResponse response = filterLocalNetworksTestResultsTopologiesWithHttpInfo(aid, window, startDate, endDate, cursor, endpointNetworkTopologyResultRequest); + public LocalNetworkTopologyResults filterLocalNetworksTestResultsTopologies(String aid, String window, OffsetDateTime startDate, OffsetDateTime endDate, String cursor, List expand, EndpointNetworkTopologyResultRequest endpointNetworkTopologyResultRequest) throws ApiException { + ApiResponse response = filterLocalNetworksTestResultsTopologiesWithHttpInfo(aid, window, startDate, endDate, cursor, expand, endpointNetworkTopologyResultRequest); return response.getData(); } @@ -105,14 +108,15 @@ public LocalNetworkTopologyResults filterLocalNetworksTestResultsTopologies(Stri * @param startDate Use with the `endDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. (optional) * @param endDate Defaults to current time the request is made. Use with the `startDate` parameter. Include the complete time (hours, minutes, and seconds) in UTC time zone, following the ISO 8601 date-time format. See the example for reference. Please note that this parameter can't be used with `window`. (optional) * @param cursor (Optional) Opaque cursor used for pagination. Clients should use `next` value from `_links` instead of this parameter. (optional) + * @param expand This parameter is optional and determines whether to expand resources related to local network topologies. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as `systemMetricDetails`, append `?expand=system-metric-detail` to the query. (optional * @param endpointNetworkTopologyResultRequest (optional) * @return ApiResponse<LocalNetworkTopologyResults> * @throws ApiException if fails to make API call */ - public ApiResponse filterLocalNetworksTestResultsTopologiesWithHttpInfo(String aid, String window, OffsetDateTime startDate, OffsetDateTime endDate, String cursor, EndpointNetworkTopologyResultRequest endpointNetworkTopologyResultRequest) throws ApiException { + public ApiResponse filterLocalNetworksTestResultsTopologiesWithHttpInfo(String aid, String window, OffsetDateTime startDate, OffsetDateTime endDate, String cursor, List expand, EndpointNetworkTopologyResultRequest endpointNetworkTopologyResultRequest) throws ApiException { filterLocalNetworksTestResultsTopologiesValidateRequest(); - var requestBuilder = filterLocalNetworksTestResultsTopologiesRequestBuilder(aid, window, startDate, endDate, cursor, endpointNetworkTopologyResultRequest); + var requestBuilder = filterLocalNetworksTestResultsTopologiesRequestBuilder(aid, window, startDate, endDate, cursor, expand, endpointNetworkTopologyResultRequest); return apiClient.send(requestBuilder.build(), LocalNetworkTopologyResults.class); } @@ -120,7 +124,7 @@ public ApiResponse filterLocalNetworksTestResultsTo private void filterLocalNetworksTestResultsTopologiesValidateRequest() throws ApiException { } - private ApiRequest.ApiRequestBuilder filterLocalNetworksTestResultsTopologiesRequestBuilder(String aid, String window, OffsetDateTime startDate, OffsetDateTime endDate, String cursor, EndpointNetworkTopologyResultRequest endpointNetworkTopologyResultRequest) throws ApiException { + private ApiRequest.ApiRequestBuilder filterLocalNetworksTestResultsTopologiesRequestBuilder(String aid, String window, OffsetDateTime startDate, OffsetDateTime endDate, String cursor, List expand, EndpointNetworkTopologyResultRequest endpointNetworkTopologyResultRequest) throws ApiException { ApiRequest.ApiRequestBuilder requestBuilder = ApiRequest.builder() .method("POST"); @@ -133,6 +137,7 @@ private ApiRequest.ApiRequestBuilder filterLocalNetworksTestResultsTopologiesReq localVarQueryParams.addAll(parameterToPairs("startDate", startDate)); localVarQueryParams.addAll(parameterToPairs("endDate", endDate)); localVarQueryParams.addAll(parameterToPairs("cursor", cursor)); + localVarQueryParams.addAll(parameterToPairs("csv", "expand", expand)); if (!localVarQueryParams.isEmpty()) { requestBuilder.queryParams(localVarQueryParams); @@ -197,11 +202,12 @@ private ApiRequest.ApiRequestBuilder getLocalNetworksTestResultsRequestBuilder(S * Returns detailed data of a local network topology. * @param networkTopologyId The network topology ID. (required) * @param aid A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. (optional) + * @param expand This parameter is optional and determines whether to expand resources related to local network topologies. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as `systemMetricDetails`, append `?expand=system-metric-detail` to the query. (optional * @return LocalNetworkTopologyDetailResults * @throws ApiException if fails to make API call */ - public LocalNetworkTopologyDetailResults getLocalNetworksTestResultsTopology(String networkTopologyId, String aid) throws ApiException { - ApiResponse response = getLocalNetworksTestResultsTopologyWithHttpInfo(networkTopologyId, aid); + public LocalNetworkTopologyDetailResults getLocalNetworksTestResultsTopology(String networkTopologyId, String aid, List expand) throws ApiException { + ApiResponse response = getLocalNetworksTestResultsTopologyWithHttpInfo(networkTopologyId, aid, expand); return response.getData(); } @@ -210,13 +216,14 @@ public LocalNetworkTopologyDetailResults getLocalNetworksTestResultsTopology(Str * Returns detailed data of a local network topology. * @param networkTopologyId The network topology ID. (required) * @param aid A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response. (optional) + * @param expand This parameter is optional and determines whether to expand resources related to local network topologies. By default, no expansion occurs when this query parameter is omitted. To expand a specific resource, such as `systemMetricDetails`, append `?expand=system-metric-detail` to the query. (optional * @return ApiResponse<LocalNetworkTopologyDetailResults> * @throws ApiException if fails to make API call */ - public ApiResponse getLocalNetworksTestResultsTopologyWithHttpInfo(String networkTopologyId, String aid) throws ApiException { + public ApiResponse getLocalNetworksTestResultsTopologyWithHttpInfo(String networkTopologyId, String aid, List expand) throws ApiException { getLocalNetworksTestResultsTopologyValidateRequest(networkTopologyId); - var requestBuilder = getLocalNetworksTestResultsTopologyRequestBuilder(networkTopologyId, aid); + var requestBuilder = getLocalNetworksTestResultsTopologyRequestBuilder(networkTopologyId, aid, expand); return apiClient.send(requestBuilder.build(), LocalNetworkTopologyDetailResults.class); } @@ -228,7 +235,7 @@ private void getLocalNetworksTestResultsTopologyValidateRequest(String networkTo } } - private ApiRequest.ApiRequestBuilder getLocalNetworksTestResultsTopologyRequestBuilder(String networkTopologyId, String aid) throws ApiException { + private ApiRequest.ApiRequestBuilder getLocalNetworksTestResultsTopologyRequestBuilder(String networkTopologyId, String aid, List expand) throws ApiException { ApiRequest.ApiRequestBuilder requestBuilder = ApiRequest.builder() .method("GET"); @@ -238,6 +245,7 @@ private ApiRequest.ApiRequestBuilder getLocalNetworksTestResultsTopologyRequestB List> localVarQueryParams = new ArrayList<>(); localVarQueryParams.addAll(parameterToPairs("aid", aid)); + localVarQueryParams.addAll(parameterToPairs("csv", "expand", expand)); if (!localVarQueryParams.isEmpty()) { requestBuilder.queryParams(localVarQueryParams); diff --git a/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/ApplicationMetrics.java b/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/ApplicationMetrics.java new file mode 100644 index 000000000..6498b9c3d --- /dev/null +++ b/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/ApplicationMetrics.java @@ -0,0 +1,241 @@ +/* + * Endpoint Test Results API + * Retrieve results for scheduled and dynamic tests on endpoint agents. + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.thousandeyes.sdk.endpoint.tests.results.model; + +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.thousandeyes.sdk.endpoint.tests.results.model.ProcessMetrics; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +/** + * ApplicationMetrics + */ +@JsonPropertyOrder({ + ApplicationMetrics.JSON_PROPERTY_NAME, + ApplicationMetrics.JSON_PROPERTY_TOTAL_CPU, + ApplicationMetrics.JSON_PROPERTY_TOTAL_MEMORY_PERCENTAGE, + ApplicationMetrics.JSON_PROPERTY_TOTAL_MEMORY_BYTES, + ApplicationMetrics.JSON_PROPERTY_PROCESSES +}) +@jakarta.annotation.Generated(value = "com.thousandeyes.api.codegen.ThousandeyesJavaGenerator") +public class ApplicationMetrics { + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_TOTAL_CPU = "totalCpu"; + private Double totalCpu; + + public static final String JSON_PROPERTY_TOTAL_MEMORY_PERCENTAGE = "totalMemoryPercentage"; + private Double totalMemoryPercentage; + + public static final String JSON_PROPERTY_TOTAL_MEMORY_BYTES = "totalMemoryBytes"; + private Long totalMemoryBytes; + + public static final String JSON_PROPERTY_PROCESSES = "processes"; + private List processes = new ArrayList<>(); + + public ApplicationMetrics() { + } + + public ApplicationMetrics name(String name) { + this.name = name; + return this; + } + + /** + * The name of the application. + * @return name + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public ApplicationMetrics totalCpu(Double totalCpu) { + this.totalCpu = totalCpu; + return this; + } + + /** + * The total CPU usage by all application processes. + * @return totalCpu + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TOTAL_CPU) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Double getTotalCpu() { + return totalCpu; + } + + + @JsonProperty(JSON_PROPERTY_TOTAL_CPU) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTotalCpu(Double totalCpu) { + this.totalCpu = totalCpu; + } + + + public ApplicationMetrics totalMemoryPercentage(Double totalMemoryPercentage) { + this.totalMemoryPercentage = totalMemoryPercentage; + return this; + } + + /** + * The total percentage of memory used by all application processes. + * @return totalMemoryPercentage + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TOTAL_MEMORY_PERCENTAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Double getTotalMemoryPercentage() { + return totalMemoryPercentage; + } + + + @JsonProperty(JSON_PROPERTY_TOTAL_MEMORY_PERCENTAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTotalMemoryPercentage(Double totalMemoryPercentage) { + this.totalMemoryPercentage = totalMemoryPercentage; + } + + + public ApplicationMetrics totalMemoryBytes(Long totalMemoryBytes) { + this.totalMemoryBytes = totalMemoryBytes; + return this; + } + + /** + * The total memory in bytes used by all application processes. + * @return totalMemoryBytes + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TOTAL_MEMORY_BYTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getTotalMemoryBytes() { + return totalMemoryBytes; + } + + + @JsonProperty(JSON_PROPERTY_TOTAL_MEMORY_BYTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTotalMemoryBytes(Long totalMemoryBytes) { + this.totalMemoryBytes = totalMemoryBytes; + } + + + public ApplicationMetrics processes(List processes) { + this.processes = processes; + return this; + } + + public ApplicationMetrics addProcessesItem(ProcessMetrics processesItem) { + if (this.processes == null) { + this.processes = new ArrayList<>(); + } + this.processes.add(processesItem); + return this; + } + + /** + * A list of application processes. + * @return processes + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PROCESSES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getProcesses() { + return processes; + } + + + @JsonProperty(JSON_PROPERTY_PROCESSES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProcesses(List processes) { + this.processes = processes; + } + + + /** + * Return true if this ApplicationMetrics object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApplicationMetrics applicationMetrics = (ApplicationMetrics) o; + return Objects.equals(this.name, applicationMetrics.name) && + Objects.equals(this.totalCpu, applicationMetrics.totalCpu) && + Objects.equals(this.totalMemoryPercentage, applicationMetrics.totalMemoryPercentage) && + Objects.equals(this.totalMemoryBytes, applicationMetrics.totalMemoryBytes) && + Objects.equals(this.processes, applicationMetrics.processes); + } + + @Override + public int hashCode() { + return Objects.hash(name, totalCpu, totalMemoryPercentage, totalMemoryBytes, processes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApplicationMetrics {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" totalCpu: ").append(toIndentedString(totalCpu)).append("\n"); + sb.append(" totalMemoryPercentage: ").append(toIndentedString(totalMemoryPercentage)).append("\n"); + sb.append(" totalMemoryBytes: ").append(toIndentedString(totalMemoryBytes)).append("\n"); + sb.append(" processes: ").append(toIndentedString(processes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/ExpandLocalNetworkTopologyOptions.java b/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/ExpandLocalNetworkTopologyOptions.java new file mode 100644 index 000000000..4ad984d88 --- /dev/null +++ b/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/ExpandLocalNetworkTopologyOptions.java @@ -0,0 +1,60 @@ +/* + * Endpoint Test Results API + * Retrieve results for scheduled and dynamic tests on endpoint agents. + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.thousandeyes.sdk.endpoint.tests.results.model; + +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Gets or Sets ExpandLocalNetworkTopologyOptions + */ +public enum ExpandLocalNetworkTopologyOptions { + + SYSTEM_METRIC_DETAIL("system-metric-detail"), + + UNKNOWN("unknown"); + + private String value; + + ExpandLocalNetworkTopologyOptions(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ExpandLocalNetworkTopologyOptions fromValue(String value) { + for (ExpandLocalNetworkTopologyOptions b : ExpandLocalNetworkTopologyOptions.values()) { + if (b.value.equals(value)) { + return b; + } + } + return UNKNOWN; + } + +} + diff --git a/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/HttpMultiEndpointTestResults.java b/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/HttpMultiEndpointTestResults.java index 748c1a991..de2539eba 100644 --- a/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/HttpMultiEndpointTestResults.java +++ b/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/HttpMultiEndpointTestResults.java @@ -108,7 +108,7 @@ public HttpMultiEndpointTestResults totalHits(Integer totalHits) { } /** - * Total number of measurements that match the search criteria + * Total number of measurements that match the search criteria. * @return totalHits **/ @jakarta.annotation.Nullable diff --git a/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/LocalNetworkTopologyResult.java b/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/LocalNetworkTopologyResult.java index 9acb07eef..5538d71bc 100644 --- a/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/LocalNetworkTopologyResult.java +++ b/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/LocalNetworkTopologyResult.java @@ -24,6 +24,7 @@ import com.thousandeyes.sdk.endpoint.tests.results.model.NetworkProfile; import com.thousandeyes.sdk.endpoint.tests.results.model.NetworkTopologyType; import com.thousandeyes.sdk.endpoint.tests.results.model.RealUserEndpointTestCoordinates; +import com.thousandeyes.sdk.endpoint.tests.results.model.SystemMetricDetails; import com.thousandeyes.sdk.endpoint.tests.results.model.SystemMetrics; import com.thousandeyes.sdk.endpoint.tests.results.model.TcpConnect; import com.thousandeyes.sdk.endpoint.tests.results.model.Traceroute; @@ -50,6 +51,7 @@ LocalNetworkTopologyResult.JSON_PROPERTY_IS_ICMP_BLOCKED, LocalNetworkTopologyResult.JSON_PROPERTY_TCP_CONNECT, LocalNetworkTopologyResult.JSON_PROPERTY_SYSTEM_METRICS, + LocalNetworkTopologyResult.JSON_PROPERTY_SYSTEM_METRIC_DETAILS, LocalNetworkTopologyResult.JSON_PROPERTY_COORDINATES, LocalNetworkTopologyResult.JSON_PROPERTY_NETWORK_PROFILE, LocalNetworkTopologyResult.JSON_PROPERTY_ICMP_TRACEROUTE, @@ -90,6 +92,9 @@ public class LocalNetworkTopologyResult { public static final String JSON_PROPERTY_SYSTEM_METRICS = "systemMetrics"; private SystemMetrics systemMetrics; + public static final String JSON_PROPERTY_SYSTEM_METRIC_DETAILS = "systemMetricDetails"; + private SystemMetricDetails systemMetricDetails; + public static final String JSON_PROPERTY_COORDINATES = "coordinates"; private RealUserEndpointTestCoordinates coordinates; @@ -330,6 +335,31 @@ public void setSystemMetrics(SystemMetrics systemMetrics) { } + public LocalNetworkTopologyResult systemMetricDetails(SystemMetricDetails systemMetricDetails) { + this.systemMetricDetails = systemMetricDetails; + return this; + } + + /** + * Get systemMetricDetails + * @return systemMetricDetails + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SYSTEM_METRIC_DETAILS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public SystemMetricDetails getSystemMetricDetails() { + return systemMetricDetails; + } + + + @JsonProperty(JSON_PROPERTY_SYSTEM_METRIC_DETAILS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSystemMetricDetails(SystemMetricDetails systemMetricDetails) { + this.systemMetricDetails = systemMetricDetails; + } + + public LocalNetworkTopologyResult coordinates(RealUserEndpointTestCoordinates coordinates) { this.coordinates = coordinates; return this; @@ -461,6 +491,7 @@ public boolean equals(Object o) { Objects.equals(this.isIcmpBlocked, localNetworkTopologyResult.isIcmpBlocked) && Objects.equals(this.tcpConnect, localNetworkTopologyResult.tcpConnect) && Objects.equals(this.systemMetrics, localNetworkTopologyResult.systemMetrics) && + Objects.equals(this.systemMetricDetails, localNetworkTopologyResult.systemMetricDetails) && Objects.equals(this.coordinates, localNetworkTopologyResult.coordinates) && Objects.equals(this.networkProfile, localNetworkTopologyResult.networkProfile) && Objects.equals(this.icmpTraceroute, localNetworkTopologyResult.icmpTraceroute) && @@ -469,7 +500,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(agentId, date, networkTopologyId, roundId, target, targetPort, type, icmpPing, isIcmpBlocked, tcpConnect, systemMetrics, coordinates, networkProfile, icmpTraceroute, icmpTraceroutes); + return Objects.hash(agentId, date, networkTopologyId, roundId, target, targetPort, type, icmpPing, isIcmpBlocked, tcpConnect, systemMetrics, systemMetricDetails, coordinates, networkProfile, icmpTraceroute, icmpTraceroutes); } @Override @@ -487,6 +518,7 @@ public String toString() { sb.append(" isIcmpBlocked: ").append(toIndentedString(isIcmpBlocked)).append("\n"); sb.append(" tcpConnect: ").append(toIndentedString(tcpConnect)).append("\n"); sb.append(" systemMetrics: ").append(toIndentedString(systemMetrics)).append("\n"); + sb.append(" systemMetricDetails: ").append(toIndentedString(systemMetricDetails)).append("\n"); sb.append(" coordinates: ").append(toIndentedString(coordinates)).append("\n"); sb.append(" networkProfile: ").append(toIndentedString(networkProfile)).append("\n"); sb.append(" icmpTraceroute: ").append(toIndentedString(icmpTraceroute)).append("\n"); diff --git a/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/LocalNetworkTopologyResultBase.java b/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/LocalNetworkTopologyResultBase.java index 742a91bbc..3cfb135a3 100644 --- a/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/LocalNetworkTopologyResultBase.java +++ b/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/LocalNetworkTopologyResultBase.java @@ -22,6 +22,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.thousandeyes.sdk.endpoint.tests.results.model.NetworkPing; import com.thousandeyes.sdk.endpoint.tests.results.model.NetworkTopologyType; +import com.thousandeyes.sdk.endpoint.tests.results.model.SystemMetricDetails; import com.thousandeyes.sdk.endpoint.tests.results.model.SystemMetrics; import com.thousandeyes.sdk.endpoint.tests.results.model.TcpConnect; import java.time.OffsetDateTime; @@ -43,7 +44,8 @@ LocalNetworkTopologyResultBase.JSON_PROPERTY_ICMP_PING, LocalNetworkTopologyResultBase.JSON_PROPERTY_IS_ICMP_BLOCKED, LocalNetworkTopologyResultBase.JSON_PROPERTY_TCP_CONNECT, - LocalNetworkTopologyResultBase.JSON_PROPERTY_SYSTEM_METRICS + LocalNetworkTopologyResultBase.JSON_PROPERTY_SYSTEM_METRICS, + LocalNetworkTopologyResultBase.JSON_PROPERTY_SYSTEM_METRIC_DETAILS }) @jakarta.annotation.Generated(value = "com.thousandeyes.api.codegen.ThousandeyesJavaGenerator") public class LocalNetworkTopologyResultBase { @@ -80,6 +82,9 @@ public class LocalNetworkTopologyResultBase { public static final String JSON_PROPERTY_SYSTEM_METRICS = "systemMetrics"; private SystemMetrics systemMetrics; + public static final String JSON_PROPERTY_SYSTEM_METRIC_DETAILS = "systemMetricDetails"; + private SystemMetricDetails systemMetricDetails; + public LocalNetworkTopologyResultBase() { } @@ -308,6 +313,31 @@ public void setSystemMetrics(SystemMetrics systemMetrics) { } + public LocalNetworkTopologyResultBase systemMetricDetails(SystemMetricDetails systemMetricDetails) { + this.systemMetricDetails = systemMetricDetails; + return this; + } + + /** + * Get systemMetricDetails + * @return systemMetricDetails + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SYSTEM_METRIC_DETAILS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public SystemMetricDetails getSystemMetricDetails() { + return systemMetricDetails; + } + + + @JsonProperty(JSON_PROPERTY_SYSTEM_METRIC_DETAILS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSystemMetricDetails(SystemMetricDetails systemMetricDetails) { + this.systemMetricDetails = systemMetricDetails; + } + + /** * Return true if this LocalNetworkTopologyResultBase object is equal to o. */ @@ -330,12 +360,13 @@ public boolean equals(Object o) { Objects.equals(this.icmpPing, localNetworkTopologyResultBase.icmpPing) && Objects.equals(this.isIcmpBlocked, localNetworkTopologyResultBase.isIcmpBlocked) && Objects.equals(this.tcpConnect, localNetworkTopologyResultBase.tcpConnect) && - Objects.equals(this.systemMetrics, localNetworkTopologyResultBase.systemMetrics); + Objects.equals(this.systemMetrics, localNetworkTopologyResultBase.systemMetrics) && + Objects.equals(this.systemMetricDetails, localNetworkTopologyResultBase.systemMetricDetails); } @Override public int hashCode() { - return Objects.hash(agentId, date, networkTopologyId, roundId, target, targetPort, type, icmpPing, isIcmpBlocked, tcpConnect, systemMetrics); + return Objects.hash(agentId, date, networkTopologyId, roundId, target, targetPort, type, icmpPing, isIcmpBlocked, tcpConnect, systemMetrics, systemMetricDetails); } @Override @@ -353,6 +384,7 @@ public String toString() { sb.append(" isIcmpBlocked: ").append(toIndentedString(isIcmpBlocked)).append("\n"); sb.append(" tcpConnect: ").append(toIndentedString(tcpConnect)).append("\n"); sb.append(" systemMetrics: ").append(toIndentedString(systemMetrics)).append("\n"); + sb.append(" systemMetricDetails: ").append(toIndentedString(systemMetricDetails)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/MultiTestIdNetworkEndpointTestResults.java b/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/MultiTestIdNetworkEndpointTestResults.java index ea78ed891..237eea4a7 100644 --- a/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/MultiTestIdNetworkEndpointTestResults.java +++ b/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/MultiTestIdNetworkEndpointTestResults.java @@ -108,7 +108,7 @@ public MultiTestIdNetworkEndpointTestResults totalHits(Integer totalHits) { } /** - * Total number of measurements that match the search criteria + * Total number of measurements that match the search criteria. * @return totalHits **/ @jakarta.annotation.Nullable diff --git a/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/NetworkDynamicEndpointTestResults.java b/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/NetworkDynamicEndpointTestResults.java index ba995e7c8..5711caa20 100644 --- a/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/NetworkDynamicEndpointTestResults.java +++ b/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/NetworkDynamicEndpointTestResults.java @@ -138,7 +138,7 @@ public NetworkDynamicEndpointTestResults totalHits(Integer totalHits) { } /** - * Total number of measurements that match the search criteria + * Total number of measurements that match the search criteria. * @return totalHits **/ @jakarta.annotation.Nullable diff --git a/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/NetworkEndpointTestResults.java b/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/NetworkEndpointTestResults.java index 9ec913db8..bad49ce9b 100644 --- a/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/NetworkEndpointTestResults.java +++ b/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/NetworkEndpointTestResults.java @@ -113,7 +113,7 @@ public NetworkEndpointTestResults totalHits(Integer totalHits) { } /** - * Total number of measurements that match the search criteria + * Total number of measurements that match the search criteria. * @return totalHits **/ @jakarta.annotation.Nullable diff --git a/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/PathVisDynamicEndpointTestResults.java b/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/PathVisDynamicEndpointTestResults.java index c900308a2..739d8d554 100644 --- a/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/PathVisDynamicEndpointTestResults.java +++ b/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/PathVisDynamicEndpointTestResults.java @@ -168,7 +168,7 @@ public PathVisDynamicEndpointTestResults totalHits(Integer totalHits) { } /** - * Total number of measurements that match the search criteria + * Total number of measurements that match the search criteria. * @return totalHits **/ @jakarta.annotation.Nullable diff --git a/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/ProcessMetrics.java b/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/ProcessMetrics.java new file mode 100644 index 000000000..b21281b4b --- /dev/null +++ b/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/ProcessMetrics.java @@ -0,0 +1,229 @@ +/* + * Endpoint Test Results API + * Retrieve results for scheduled and dynamic tests on endpoint agents. + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.thousandeyes.sdk.endpoint.tests.results.model; + +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +/** + * ProcessMetrics + */ +@JsonPropertyOrder({ + ProcessMetrics.JSON_PROPERTY_NAME, + ProcessMetrics.JSON_PROPERTY_PID, + ProcessMetrics.JSON_PROPERTY_CPU, + ProcessMetrics.JSON_PROPERTY_MEMORY_PERCENTAGE, + ProcessMetrics.JSON_PROPERTY_MEMORY_BYTES +}) +@jakarta.annotation.Generated(value = "com.thousandeyes.api.codegen.ThousandeyesJavaGenerator") +public class ProcessMetrics { + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_PID = "pid"; + private Integer pid; + + public static final String JSON_PROPERTY_CPU = "cpu"; + private Double cpu; + + public static final String JSON_PROPERTY_MEMORY_PERCENTAGE = "memoryPercentage"; + private Double memoryPercentage; + + public static final String JSON_PROPERTY_MEMORY_BYTES = "memoryBytes"; + private Long memoryBytes; + + public ProcessMetrics() { + } + + public ProcessMetrics name(String name) { + this.name = name; + return this; + } + + /** + * The name of the process. + * @return name + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public ProcessMetrics pid(Integer pid) { + this.pid = pid; + return this; + } + + /** + * The process ID. + * @return pid + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_PID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getPid() { + return pid; + } + + + @JsonProperty(JSON_PROPERTY_PID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPid(Integer pid) { + this.pid = pid; + } + + + public ProcessMetrics cpu(Double cpu) { + this.cpu = cpu; + return this; + } + + /** + * The CPU usage by the process as a percentage (e.g., 0.5 for 50% CPU usage). + * @return cpu + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CPU) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Double getCpu() { + return cpu; + } + + + @JsonProperty(JSON_PROPERTY_CPU) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCpu(Double cpu) { + this.cpu = cpu; + } + + + public ProcessMetrics memoryPercentage(Double memoryPercentage) { + this.memoryPercentage = memoryPercentage; + return this; + } + + /** + * The memory usage by the process as a percentage (e.g., 0.22 for 22%). + * @return memoryPercentage + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MEMORY_PERCENTAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Double getMemoryPercentage() { + return memoryPercentage; + } + + + @JsonProperty(JSON_PROPERTY_MEMORY_PERCENTAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMemoryPercentage(Double memoryPercentage) { + this.memoryPercentage = memoryPercentage; + } + + + public ProcessMetrics memoryBytes(Long memoryBytes) { + this.memoryBytes = memoryBytes; + return this; + } + + /** + * The memory usage by the process in bytes. + * @return memoryBytes + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MEMORY_BYTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getMemoryBytes() { + return memoryBytes; + } + + + @JsonProperty(JSON_PROPERTY_MEMORY_BYTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMemoryBytes(Long memoryBytes) { + this.memoryBytes = memoryBytes; + } + + + /** + * Return true if this ProcessMetrics object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProcessMetrics processMetrics = (ProcessMetrics) o; + return Objects.equals(this.name, processMetrics.name) && + Objects.equals(this.pid, processMetrics.pid) && + Objects.equals(this.cpu, processMetrics.cpu) && + Objects.equals(this.memoryPercentage, processMetrics.memoryPercentage) && + Objects.equals(this.memoryBytes, processMetrics.memoryBytes); + } + + @Override + public int hashCode() { + return Objects.hash(name, pid, cpu, memoryPercentage, memoryBytes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProcessMetrics {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" pid: ").append(toIndentedString(pid)).append("\n"); + sb.append(" cpu: ").append(toIndentedString(cpu)).append("\n"); + sb.append(" memoryPercentage: ").append(toIndentedString(memoryPercentage)).append("\n"); + sb.append(" memoryBytes: ").append(toIndentedString(memoryBytes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/SystemMetricDetails.java b/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/SystemMetricDetails.java new file mode 100644 index 000000000..83cdec17a --- /dev/null +++ b/endpoint-test-results/src/main/java/com/thousandeyes/sdk/endpoint/tests/results/model/SystemMetricDetails.java @@ -0,0 +1,130 @@ +/* + * Endpoint Test Results API + * Retrieve results for scheduled and dynamic tests on endpoint agents. + * + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.thousandeyes.sdk.endpoint.tests.results.model; + +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.thousandeyes.sdk.endpoint.tests.results.model.ApplicationMetrics; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +/** + * Details of system metrics that contain top applications by CPU/memory usage. Not populated by default. + */ +@JsonPropertyOrder({ + SystemMetricDetails.JSON_PROPERTY_TOP_CPU_APPLICATIONS, + SystemMetricDetails.JSON_PROPERTY_TOP_MEMORY_APPLICATIONS +}) +@jakarta.annotation.Generated(value = "com.thousandeyes.api.codegen.ThousandeyesJavaGenerator") +public class SystemMetricDetails { + public static final String JSON_PROPERTY_TOP_CPU_APPLICATIONS = "topCpuApplications"; + private List topCpuApplications = new ArrayList<>(); + + public static final String JSON_PROPERTY_TOP_MEMORY_APPLICATIONS = "topMemoryApplications"; + private List topMemoryApplications = new ArrayList<>(); + + public SystemMetricDetails() { + } + + @JsonCreator + public SystemMetricDetails( + @JsonProperty(JSON_PROPERTY_TOP_CPU_APPLICATIONS) List topCpuApplications, + @JsonProperty(JSON_PROPERTY_TOP_MEMORY_APPLICATIONS) List topMemoryApplications + ) { + this(); + this.topCpuApplications = topCpuApplications; + this.topMemoryApplications = topMemoryApplications; + } + + /** + * A list of applications that consume more than 2% of the CPU. + * @return topCpuApplications + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TOP_CPU_APPLICATIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getTopCpuApplications() { + return topCpuApplications; + } + + + + + /** + * A list of applications that consume more than 2% of the RAM. + * @return topMemoryApplications + **/ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TOP_MEMORY_APPLICATIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getTopMemoryApplications() { + return topMemoryApplications; + } + + + + + /** + * Return true if this SystemMetricDetails object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SystemMetricDetails systemMetricDetails = (SystemMetricDetails) o; + return Objects.equals(this.topCpuApplications, systemMetricDetails.topCpuApplications) && + Objects.equals(this.topMemoryApplications, systemMetricDetails.topMemoryApplications); + } + + @Override + public int hashCode() { + return Objects.hash(topCpuApplications, topMemoryApplications); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SystemMetricDetails {\n"); + sb.append(" topCpuApplications: ").append(toIndentedString(topCpuApplications)).append("\n"); + sb.append(" topMemoryApplications: ").append(toIndentedString(topMemoryApplications)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/endpoint-test-results/src/test/java/com/thousandeyes/sdk/endpoint/tests/results/LocalNetworkEndpointTestResultsApiTest.java b/endpoint-test-results/src/test/java/com/thousandeyes/sdk/endpoint/tests/results/LocalNetworkEndpointTestResultsApiTest.java index b34456025..b8cc8dc8c 100644 --- a/endpoint-test-results/src/test/java/com/thousandeyes/sdk/endpoint/tests/results/LocalNetworkEndpointTestResultsApiTest.java +++ b/endpoint-test-results/src/test/java/com/thousandeyes/sdk/endpoint/tests/results/LocalNetworkEndpointTestResultsApiTest.java @@ -14,6 +14,7 @@ import com.thousandeyes.sdk.endpoint.tests.results.model.EndpointNetworkTopologyResultRequest; import com.thousandeyes.sdk.endpoint.tests.results.model.Error; +import com.thousandeyes.sdk.endpoint.tests.results.model.ExpandLocalNetworkTopologyOptions; import com.thousandeyes.sdk.endpoint.tests.results.model.LocalNetworkResults; import com.thousandeyes.sdk.endpoint.tests.results.model.LocalNetworkTopologyDetailResults; import com.thousandeyes.sdk.endpoint.tests.results.model.LocalNetworkTopologyResults; @@ -147,6 +148,82 @@ public void filterLocalNetworksTestResultsTopologiesRequestAndResponseDeserializ }, "endTimeMs" : 1581508867333 }, + "systemMetricDetails" : { + "topCpuApplications" : [ { + "totalMemoryBytes" : 1023334, + "processes" : [ { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + }, { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + } ], + "totalCpu" : 0.5, + "name" : "Webex", + "totalMemoryPercentage" : 0.22 + }, { + "totalMemoryBytes" : 1023334, + "processes" : [ { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + }, { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + } ], + "totalCpu" : 0.5, + "name" : "Webex", + "totalMemoryPercentage" : 0.22 + } ], + "topMemoryApplications" : [ { + "totalMemoryBytes" : 1023334, + "processes" : [ { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + }, { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + } ], + "totalCpu" : 0.5, + "name" : "Webex", + "totalMemoryPercentage" : 0.22 + }, { + "totalMemoryBytes" : 1023334, + "processes" : [ { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + }, { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + } ], + "totalCpu" : 0.5, + "name" : "Webex", + "totalMemoryPercentage" : 0.22 + } ] + }, "isIcmpBlocked" : true, "tcpConnect" : { "rtt" : 77.777, @@ -193,6 +270,82 @@ public void filterLocalNetworksTestResultsTopologiesRequestAndResponseDeserializ }, "endTimeMs" : 1581508867333 }, + "systemMetricDetails" : { + "topCpuApplications" : [ { + "totalMemoryBytes" : 1023334, + "processes" : [ { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + }, { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + } ], + "totalCpu" : 0.5, + "name" : "Webex", + "totalMemoryPercentage" : 0.22 + }, { + "totalMemoryBytes" : 1023334, + "processes" : [ { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + }, { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + } ], + "totalCpu" : 0.5, + "name" : "Webex", + "totalMemoryPercentage" : 0.22 + } ], + "topMemoryApplications" : [ { + "totalMemoryBytes" : 1023334, + "processes" : [ { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + }, { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + } ], + "totalCpu" : 0.5, + "name" : "Webex", + "totalMemoryPercentage" : 0.22 + }, { + "totalMemoryBytes" : 1023334, + "processes" : [ { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + }, { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + } ], + "totalCpu" : 0.5, + "name" : "Webex", + "totalMemoryPercentage" : 0.22 + } ] + }, "isIcmpBlocked" : true, "tcpConnect" : { "rtt" : 77.777, @@ -235,7 +388,7 @@ public void filterLocalNetworksTestResultsTopologiesRequestAndResponseDeserializ .withBody(responseBodyJson) .withStatus(statusCode))); - var apiResponse = api.filterLocalNetworksTestResultsTopologies(null, null, null, null, null, mappedRequest); + var apiResponse = api.filterLocalNetworksTestResultsTopologies(null, null, null, null, null, null, mappedRequest); assertEquals(mappedResponse, apiResponse); } @@ -409,6 +562,82 @@ public void getLocalNetworksTestResultsTopologyRequestAndResponseDeserialization }, "endTimeMs" : 1581508867333 }, + "systemMetricDetails" : { + "topCpuApplications" : [ { + "totalMemoryBytes" : 1023334, + "processes" : [ { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + }, { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + } ], + "totalCpu" : 0.5, + "name" : "Webex", + "totalMemoryPercentage" : 0.22 + }, { + "totalMemoryBytes" : 1023334, + "processes" : [ { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + }, { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + } ], + "totalCpu" : 0.5, + "name" : "Webex", + "totalMemoryPercentage" : 0.22 + } ], + "topMemoryApplications" : [ { + "totalMemoryBytes" : 1023334, + "processes" : [ { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + }, { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + } ], + "totalCpu" : 0.5, + "name" : "Webex", + "totalMemoryPercentage" : 0.22 + }, { + "totalMemoryBytes" : 1023334, + "processes" : [ { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + }, { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + } ], + "totalCpu" : 0.5, + "name" : "Webex", + "totalMemoryPercentage" : 0.22 + } ] + }, "icmpTraceroute" : { "destination" : "13.32.22.232", "hops" : [ { @@ -574,6 +803,82 @@ public void getLocalNetworksTestResultsTopologyRequestAndResponseDeserialization }, "endTimeMs" : 1581508867333 }, + "systemMetricDetails" : { + "topCpuApplications" : [ { + "totalMemoryBytes" : 1023334, + "processes" : [ { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + }, { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + } ], + "totalCpu" : 0.5, + "name" : "Webex", + "totalMemoryPercentage" : 0.22 + }, { + "totalMemoryBytes" : 1023334, + "processes" : [ { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + }, { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + } ], + "totalCpu" : 0.5, + "name" : "Webex", + "totalMemoryPercentage" : 0.22 + } ], + "topMemoryApplications" : [ { + "totalMemoryBytes" : 1023334, + "processes" : [ { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + }, { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + } ], + "totalCpu" : 0.5, + "name" : "Webex", + "totalMemoryPercentage" : 0.22 + }, { + "totalMemoryBytes" : 1023334, + "processes" : [ { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + }, { + "memoryBytes" : 1023334, + "memoryPercentage" : 0.22, + "name" : "Webex background", + "cpu" : 0.5, + "pid" : 15632 + } ], + "totalCpu" : 0.5, + "name" : "Webex", + "totalMemoryPercentage" : 0.22 + } ] + }, "icmpTraceroute" : { "destination" : "13.32.22.232", "hops" : [ { @@ -673,7 +978,7 @@ public void getLocalNetworksTestResultsTopologyRequestAndResponseDeserialization .withBody(responseBodyJson) .withStatus(statusCode))); - var apiResponse = api.getLocalNetworksTestResultsTopology(networkTopologyId, null); + var apiResponse = api.getLocalNetworksTestResultsTopology(networkTopologyId, null, null); assertEquals(mappedResponse, apiResponse); } diff --git a/endpoint-test-results/src/test/java/com/thousandeyes/sdk/endpoint/tests/results/RealUserEndpointTestResultsApiTest.java b/endpoint-test-results/src/test/java/com/thousandeyes/sdk/endpoint/tests/results/RealUserEndpointTestResultsApiTest.java index 8507bea39..6ada4b390 100644 --- a/endpoint-test-results/src/test/java/com/thousandeyes/sdk/endpoint/tests/results/RealUserEndpointTestResultsApiTest.java +++ b/endpoint-test-results/src/test/java/com/thousandeyes/sdk/endpoint/tests/results/RealUserEndpointTestResultsApiTest.java @@ -526,11 +526,11 @@ public void getRealUserTestPageResultsRequestAndResponseDeserializationTest() "log" : { "browser" : { "name" : "Google Chrome", - "version" : "7.0.29.98" + "version" : "7.0.32.98" }, "creator" : { "name" : "ThousandEyes Endpoint Agent", - "version" : "7.0.29" + "version" : "7.0.32" }, "entries" : [ { "pageref" : "page_1", diff --git a/endpoint-tests/README.md b/endpoint-tests/README.md index a0e99d42d..8cd33aa54 100644 --- a/endpoint-tests/README.md +++ b/endpoint-tests/README.md @@ -2,7 +2,7 @@ Endpoint Tests API -- API version: 7.0.29 +- API version: 7.0.32 Manage endpoint agent dynamic and scheduled tests using the Endpoint Tests API. diff --git a/event-detection/README.md b/event-detection/README.md index 829f17617..b4838d0af 100644 --- a/event-detection/README.md +++ b/event-detection/README.md @@ -2,7 +2,7 @@ Event Detection API -- API version: 7.0.29 +- API version: 7.0.32 Event detection occurs when ThousandEyes identifies that error signals related to a component (proxy, network node, AS, server etc) have deviated from the baselines established by events. diff --git a/instant-tests/README.md b/instant-tests/README.md index 0018340df..201fc9207 100644 --- a/instant-tests/README.md +++ b/instant-tests/README.md @@ -2,7 +2,7 @@ Instant Tests API -- API version: 7.0.29 +- API version: 7.0.32 The Instant Tests API operations lets you create and run new instant tests. You will need to be a regular user or have the following permissions: * `API Access` diff --git a/internet-insights/README.md b/internet-insights/README.md index 391c2ce58..ef32c9953 100644 --- a/internet-insights/README.md +++ b/internet-insights/README.md @@ -2,7 +2,7 @@ Internet Insights API -- API version: 7.0.29 +- API version: 7.0.32 We are happy to announce the release of the Internet Insights API set. This limited release includes endpoints that: diff --git a/snapshots/README.md b/snapshots/README.md index d6bf4362b..92747b69d 100644 --- a/snapshots/README.md +++ b/snapshots/README.md @@ -2,7 +2,7 @@ Test Snapshots API -- API version: 7.0.29 +- API version: 7.0.32 Creates a new test snapshot in ThousandEyes. diff --git a/streaming/README.md b/streaming/README.md index 808d963da..e365435ec 100644 --- a/streaming/README.md +++ b/streaming/README.md @@ -2,7 +2,7 @@ ThousandEyes for OpenTelemetry API -- API version: 7.0.29 +- API version: 7.0.32 ThousandEyes for OpenTelemetry provides machine-to-machine integration between ThousandEyes and its customers. It allows you to export ThousandEyes telemetry data in OTel format, which is widely used in the industry. With ThousandEyes for OTel, you can leverage frameworks widely used in the observability domain - such as Splunk, Grafana, and Honeycomb - to capture and analyze ThousandEyes data. Any client that supports OTel can use ThousandEyes for OpenTelemetry. diff --git a/tags/README.md b/tags/README.md index 1d08053ef..5c346e99d 100644 --- a/tags/README.md +++ b/tags/README.md @@ -2,7 +2,7 @@ Tags API -- API version: 7.0.29 +- API version: 7.0.32 The ThousandEyes Tags API provides a tagging system with key/value pairs. It allows you to tag assets within the ThousandEyes platform (such as agents, tests, or alert rules) with meaningful metadata. For example: `branch:sfo`, `branch:nyc`, and `team:netops`. diff --git a/test-results/README.md b/test-results/README.md index 5859878bc..d3b506eee 100644 --- a/test-results/README.md +++ b/test-results/README.md @@ -2,7 +2,7 @@ Test Results API -- API version: 7.0.29 +- API version: 7.0.32 Get test result metrics for Cloud and Enterprise Agent tests. diff --git a/tests/README.md b/tests/README.md index bab7e4862..c05700b62 100644 --- a/tests/README.md +++ b/tests/README.md @@ -2,7 +2,7 @@ Tests API -- API version: 7.0.29 +- API version: 7.0.32 This API supports listing, creating, editing, and deleting Cloud and Enterprise Agent (CEA) based tests. diff --git a/usage/README.md b/usage/README.md index e08fa1102..5bf4d1663 100644 --- a/usage/README.md +++ b/usage/README.md @@ -2,7 +2,7 @@ Usage API -- API version: 7.0.29 +- API version: 7.0.32 These usage endpoints define the following operations: