This repository is deprecated; please follow the main search page or use the ‘Related code repos’ widget on the right side of the current page.

SecureX Orchestrator Atomic Actions for ThousandEyes

published sxoanalyzed

Additional Resources:

In this repository, you'll find the following atomics:

1. List Tests

Purpose: Retrieve & filter configured tests available in your ThousandEyes account

Documentation: https://developer.thousandeyes.com/v6/tests/#/test_list

Steps to use:

  1. Setup your ThousandEyes API Target & Account Key
  2. Provide a filter criteria/condition & what fields you'd like to have returned (this step is optional - by default, all fields/values are returned)
  3. If the request is successful, the output of this atomic is a JSON string w/ rows that match the filter criteria
  4. If the request is not successful, the output contains the error message

2. Get Test Details

Purpose: Get test details for a configured test available in your ThousandEyes account.

Documentation: https://developer.thousandeyes.com/v6/tests/#/test_details

Steps to use:

  1. Setup your ThousandEyes API Target & Account Key
  2. Provide a Test ID and indicate if you'd like the output in XML or JSON (by default JSON)
  3. If the request is successful, the output of this atomic is a JSON/XML object with the test detail returned from ThousandEyes

3. Query Agent ID

Purpose: Returns Agent IDs for agents configured in your ThousandEyes account based on an input criteria you specify.

Documentation: https://developer.thousandeyes.com/v6/agents/#/agents

Steps to use:

  1. Setup your ThousandEyes API Target & Account Key
  2. Provide Agent Type & Filter Criteria as inputs
  3. If the request is successful, output is presented in two formats: (a) as a list of matching agentIDs, (b) as an array of agent objects that can be readily used with other APIs such as when creating a test or an instant test
  4. If the request is not successful, the output contains the error message

4. Create Instant Test - SIP Server

Purpose: Creates and runs a new SIP Server Instant test in ThousandEyes.

Documentation: https://developer.thousandeyes.com/v6/instant/#/instant

Steps to use:

  1. Setup your ThousandEyes API Target & Account Key
  2. Provide inputs to create SIP Server Test
  3. If the request is successful, the output of this atomic is the test ID of the instant test created. Response does not include instant test results. Once the instant test is created and ran, results can be retrieved using Test Data atomics.
  4. If the request is not successful, the output contains the error message

5. Create Instant Test - Agent to Server

Purpose: Creates and runs a new Network Agent-To-Server Instant test in ThousandEyes.

Documentation: https://developer.thousandeyes.com/v6/instant/#/instant

Steps to use:

  1. Setup your ThousandEyes API Target & Account Key
  2. Provide inputs to create Network (Agent-to-Server) test
  3. If the request is successful, the output of this atomic is the test ID of the instant test created. Response does not include instant test results. Once the instant test is created and ran, results can be retrieved using Test Data endpoints.
  4. If the request is not successful, the output contains the error message

6. Rerun Instant Test

Purpose: Reruns an existent Instant test in your ThousandEyes account.

Documentation: https://developer.thousandeyes.com/v6/instant/#/instant-rerun

Steps to use:

  1. Setup your ThousandEyes API Target & Account Key
  2. Provide your Test ID as Input
  3. If the request is successful, the test was run successfully and results can be retrieved using the atomics for Test Data
  4. If the request is not successful, the output contains the error message

7. Test Data: (Network) End-to-End Metrics

Purpose: Retrieve end-to-end network metrics for a network test configured with an Enterprise Agent available in your ThousandEyes account.

Documentation: https://developer.thousandeyes.com/v6/test_data/#/end-to-end_metrics

Steps to use:

  1. Setup your ThousandEyes API Target & Account Key
  2. Provide your Test ID, from & to dates in the format YYYY-MM-DDTHH:MM:SS and what fields you'd like to have returned (by default, all fields/values are returned)
  3. If the request is successful, the output of this atomic is a JSON string with the metrics

8. Test Data: (Network) Path Visualization

Purpose: Returns a summary of the path visualization data collected from each agent to the destination. In each path visualization attempt, three attempts are made to reach the destination. Each set of data is summarized, based on response time, number of hops, and response time to the target. A time frame must be specified, or the current round of data will be returned.

Documentation: https://developer.thousandeyes.com/v6/test_data/#/path-vis

Steps to use:

  1. Setup your ThousandEyes API Target & Account Key
  2. Provide a Test ID, a from & to date in the format YYYY-MM-DDTHH:MM:SS & what fields you'd like to have returned (if no filter criteria is specified, by default all fields/values are returned)
  3. If the request is successful, two output variables are made available: (a) a table object (b) a JSON string w/ the path visualisation output
  4. If the request is not successful, the output contains the error message

9. Test Data: (Network) Detailed Path Trace

Purpose: Returns a hop-by-hop summary of the path trace data collected during path visualization. In each path visualization attempt, three attempts are made to reach the destination, and the entire path will be shown in sequence. A roundId must be specified.

Documentation: https://developer.thousandeyes.com/v6/test_data/#/traceroute

Steps to use:

  1. Setup your ThousandEyes API Target & Account Key
  2. Provide a Test ID, Agent ID, Round ID, Path ID & what fields you'd like to have returned (if no filter criteria is specified, by default all fields/values are returned)
  3. If the request is successful, two output variables are made available: (a) a table object (b) a JSON string w/ the detailed path trace
  4. If the request is not successful, the output contains the error message

10. Test Data: (Voice) SIP Server

Purpose: Returns voice SIP server metrics (response, invite, register time) from each agent, for each roundId in the requested window. A time frame must be specified, or the current round of data will be returned.

Documentation: https://developer.thousandeyes.com/v6/test_data/#/voice-sip-server

Steps to use:

  1. Setup your ThousandEyes API Target & Account Key
  2. Provide a TestID, From & To Date in the format YYYY-MM-DDTHH:MM:SS, filter criteria/condition & what fields you'd like to have returned (this step is optional - by default, all fields/values are returned)
  3. If the request is successful, the output of this atomic is a JSON string w/ rows that match the filter criteria
  4. If the request is not successful, the output contains the error message

11. Endpoint Test Data: (Network) End-to-End Metrics

Purpose: Returns network metrics (loss, latency, jitter and bandwidth) from each endpoint agent, for each roundId in the requested window. A time frame must be specified, or the most recent round within last 2 hours will be returned.

Documentation: https://developer.thousandeyes.com/v6/endpoint_test_data/#/endpoint_end-to-end_metrics

Steps to use:

  1. Setup your ThousandEyes API Target & Account Key
  2. Provide your Test ID, from & to dates in the format YYYY-MM-DDTHH:MM:SS and what fields you'd like to have returned (this is optional - by default, all fields/values are returned)
  3. If the request is successful, the output of this atomic is a JSON string with the metrics

12. Endpoint Test Data: (Network) Path Visualization

Purpose: Returns a summary of the path visualization data collected from each endpoint agent to the destination. In each path visualization attempt, one attempt is made to reach the destination. Each set of data is summarized, based on response time, number of hops, and response time to the target. A time frame must be specified, or the most recent round within last 2 hours will be returned.

Documentation: https://developer.thousandeyes.com/v6/endpoint_test_data/#/endpoint_path-vis

Steps to use:

  1. Setup your ThousandEyes API Target & Account Key
  2. Provide a Test ID, a from & to date in the format YYYY-MM-DDTHH:MM:SS & what fields you'd like to have returned (if no filter criteria is specified, by default all fields/values are returned)
  3. If the request is successful, the output is a JSON string w/ the path visualisation output
  4. If the request is not successful, the output contains the error message

13. Endpoint Test Data: (Network) Detailed Path Trace

Purpose: Returns a hop-by-hop summary of the path trace data collected during path visualization. In each round, one path discovery attempt is made to reach the destination. The entire path is returned. A roundId must be specified.

Documentation: https://developer.thousandeyes.com/v6/endpoint_test_data/#/endpoint_traceroute

Steps to use:

  1. Setup your ThousandEyes API Target & Account Key
  2. Provide an Endpoint Agent ID, Path ID, Round ID, Test ID, filter criteria/condition & what fields you'd like to have returned (by default, all fields/values are returned)
  3. If the request is successful, the output of this atomic is a JSON string w/ rows that match the filter criteria
  4. If the request is not successful, the output contains the error message

Contributors:

  1. Aman Sardana (amasarda@cisco.com)
  2. Anant Nambiar (ananambi@cisco.com)

Cisco CX Managed Services - Operate, June 2021

View code on GitHub

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.