Skip to content

Latest commit

 

History

History
192 lines (141 loc) · 14.9 KB

File metadata and controls

192 lines (141 loc) · 14.9 KB

endpoint-test-results

Endpoint Test Results API

  • API version: 7.0.15

Retrieve results for scheduled and dynamic tests on endpoint agents.

Automatically generated by the OpenAPI Generator

Requirements

Building the API client library requires:

  1. Java 11+
  2. Maven/Gradle

Installation

To install the API client library to your local Maven repository, simply execute:

mvn clean install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn clean deploy

Refer to the OSSRH Guide for more information.

Maven users

Add this dependency to your project's POM:

<dependencies>
    <dependency>
        <groupId>com.thousandeyes.sdk</groupId>
        <artifactId>endpoint-test-results</artifactId>
        <version>version</version>
    </dependency>
    <dependency>
        <groupId>com.thousandeyes.sdk</groupId>
        <artifactId>client</artifactId>
        <version>version</version>
    </dependency>

    <!-- Example only, you can use your own client implementation -->
    <dependency>
        <groupId>com.thousandeyes.sdk</groupId>
        <artifactId>client-native</artifactId>
        <version>version</version>
    </dependency>
</dependencies>

Gradle users

Add this dependency to your project's build file:

implementation "com.thousandeyes.sdk:client:<version>"
implementation "com.thousandeyes.sdk:client-native:<version>" #Example only, you can use your own client implementation
implementation "com.thousandeyes.sdk:endpoint-test-results:<version>"

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/endpoint-test-results-version.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

import com.thousandeyes.sdk.endpoint.tests.*;
import com.thousandeyes.sdk.endpoint.tests.client.*;
import com.thousandeyes.sdk.endpoint.tests.results.model.*;
import com.thousandeyes.sdk.endpoint.tests.results.LocalNetworkTestsResultsApi;

public class LocalNetworkTestsResultsApiExample {

    public static void main(String[] args) {
        // Configure clients using the `defaultClient` object, such as
        // overriding the host and port, timeout, etc. In this example we are using the NativeApiClient
        // but you can use your own client implementation
        ApiClient defaultClient = NativeApiClient
                .builder()
                .baseUri("https://api.thousandeyes.com/v7")
                .bearerToken("<bearer-token>")
                .build();

        LocalNetworkTestsResultsApi apiInstance = new LocalNetworkTestsResultsApi(defaultClient);
        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.
        String window = "12h"; // String | 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`.
        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.
        EndpointNetworkTopologyResultRequest endpointNetworkTopologyResultRequest = new EndpointNetworkTopologyResultRequest(); // EndpointNetworkTopologyResultRequest | 
        try {
            LocalNetworkTopologyResults result = apiInstance.filterLocalNetworksTestResultsTopologies(aid, window, startDate, endDate, cursor, endpointNetworkTopologyResultRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LocalNetworkTestsResultsApi#filterLocalNetworksTestResultsTopologies");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://api.thousandeyes.com/v7

Class Method HTTP request Description
LocalNetworkTestsResultsApi filterLocalNetworksTestResultsTopologies POST /endpoint/test-results/local-networks/topologies/filter List endpoint network topologies probes
LocalNetworkTestsResultsApi filterLocalNetworksTestResultsTopologiesWithHttpInfo POST /endpoint/test-results/local-networks/topologies/filter List endpoint network topologies probes
LocalNetworkTestsResultsApi getLocalNetworksTestResults GET /endpoint/test-results/local-networks List local networks
LocalNetworkTestsResultsApi getLocalNetworksTestResultsWithHttpInfo GET /endpoint/test-results/local-networks List local networks
LocalNetworkTestsResultsApi getLocalNetworksTestResultsTopology GET /endpoint/test-results/local-networks/topologies/{networkTopologyId} Retrieve endpoint local network topology
LocalNetworkTestsResultsApi getLocalNetworksTestResultsTopologyWithHttpInfo GET /endpoint/test-results/local-networks/topologies/{networkTopologyId} Retrieve endpoint local network topology
NetworkDynamicTestsResultsApi filterDynamicTestNetworkResults POST /endpoint/test-results/dynamic-tests/{testId}/network/filter Retrieve network dynamic test results
NetworkDynamicTestsResultsApi filterDynamicTestNetworkResultsWithHttpInfo POST /endpoint/test-results/dynamic-tests/{testId}/network/filter Retrieve network dynamic test results
NetworkDynamicTestsResultsApi getDynamicTestPathVisAgentRoundResults GET /endpoint/test-results/dynamic-tests/{testId}/path-vis/agent/{agentId}/round/{roundId} Retrieve path visualization network dynamic test results details
NetworkDynamicTestsResultsApi getDynamicTestPathVisAgentRoundResultsWithHttpInfo GET /endpoint/test-results/dynamic-tests/{testId}/path-vis/agent/{agentId}/round/{roundId} Retrieve path visualization network dynamic test results details
NetworkDynamicTestsResultsApi getDynamicTestPathVisResults GET /endpoint/test-results/dynamic-tests/{testId}/path-vis Retrieve path visualization network dynamic test results
NetworkDynamicTestsResultsApi getDynamicTestPathVisResultsWithHttpInfo GET /endpoint/test-results/dynamic-tests/{testId}/path-vis Retrieve path visualization network dynamic test results
NetworkScheduledTestsResultsApi filterScheduledTestNetworkResults POST /endpoint/test-results/scheduled-tests/{testId}/network/filter Retrieve network scheduled test results
NetworkScheduledTestsResultsApi filterScheduledTestNetworkResultsWithHttpInfo POST /endpoint/test-results/scheduled-tests/{testId}/network/filter Retrieve network scheduled test results
NetworkScheduledTestsResultsApi filterScheduledTestsNetworkResults POST /endpoint/test-results/scheduled-tests/network/filter Retrieve network scheduled test results from multiple tests
NetworkScheduledTestsResultsApi filterScheduledTestsNetworkResultsWithHttpInfo POST /endpoint/test-results/scheduled-tests/network/filter Retrieve network scheduled test results from multiple tests
NetworkScheduledTestsResultsApi getScheduledTestPathVisAgentRoundResults GET /endpoint/test-results/scheduled-tests/{testId}/path-vis/agent/{agentId}/round/{roundId} Retrieve path visualization network scheduled test results details
NetworkScheduledTestsResultsApi getScheduledTestPathVisAgentRoundResultsWithHttpInfo GET /endpoint/test-results/scheduled-tests/{testId}/path-vis/agent/{agentId}/round/{roundId} Retrieve path visualization network scheduled test results details
NetworkScheduledTestsResultsApi getScheduledTestPathVisResults GET /endpoint/test-results/scheduled-tests/{testId}/path-vis Retrieve path visualization network scheduled test results
NetworkScheduledTestsResultsApi getScheduledTestPathVisResultsWithHttpInfo GET /endpoint/test-results/scheduled-tests/{testId}/path-vis Retrieve path visualization network scheduled test results
RealUserTestsResultsApi filterRealUserTestsNetworkResults POST /endpoint/test-results/real-user-tests/networks/filter List endpoint real user tests
RealUserTestsResultsApi filterRealUserTestsNetworkResultsWithHttpInfo POST /endpoint/test-results/real-user-tests/networks/filter List endpoint real user tests
RealUserTestsResultsApi filterRealUserTestsResults POST /endpoint/test-results/real-user-tests/filter List endpoint real user tests
RealUserTestsResultsApi filterRealUserTestsResultsWithHttpInfo POST /endpoint/test-results/real-user-tests/filter List endpoint real user tests
RealUserTestsResultsApi filterRealUserTestsVisitedPagesResults POST /endpoint/test-results/real-user-tests/pages/filter List endpoint real user tests visited pages
RealUserTestsResultsApi filterRealUserTestsVisitedPagesResultsWithHttpInfo POST /endpoint/test-results/real-user-tests/pages/filter List endpoint real user tests visited pages
RealUserTestsResultsApi getRealUserTestPageResults GET /endpoint/test-results/real-user-tests/{id}/pages/{pageId} Retrieve endpoint real user test page
RealUserTestsResultsApi getRealUserTestPageResultsWithHttpInfo GET /endpoint/test-results/real-user-tests/{id}/pages/{pageId} Retrieve endpoint real user test page
RealUserTestsResultsApi getRealUserTestResults GET /endpoint/test-results/real-user-tests/{id} Retrieve endpoint real user test
RealUserTestsResultsApi getRealUserTestResultsWithHttpInfo GET /endpoint/test-results/real-user-tests/{id} Retrieve endpoint real user test
WebHttpServerScheduledTestResultsApi getHttpServerScheduledTestResults GET /endpoint/test-results/scheduled-tests/{testId}/http-server Retrieve HTTP server scheduled test results
WebHttpServerScheduledTestResultsApi getHttpServerScheduledTestResultsWithHttpInfo GET /endpoint/test-results/scheduled-tests/{testId}/http-server Retrieve HTTP server scheduled test results
WebHttpServerScheduledTestResultsApi getMultiTestFilteredHttpServerScheduledTestResults POST /endpoint/test-results/scheduled-tests/http-server/filter Filter HTTP server scheduled test results
WebHttpServerScheduledTestResultsApi getMultiTestFilteredHttpServerScheduledTestResultsWithHttpInfo POST /endpoint/test-results/scheduled-tests/http-server/filter Filter HTTP server scheduled test results

Documentation for Authorization

Authentication schemes defined for the API:

BearerAuth

  • Type: HTTP Bearer Token authentication

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues. However, the instances of the api clients created from the ApiClient are thread-safe and can be re-used.

Author