Viewing usage statistics of virtual services

After you start virtual service resources that are in the project repositories, and then run tests on the virtual service, you can view the usage statistics of the virtual services from the Usage page on IBM® DevOps Test Hub (Test Hub).
You must have completed the following tasks:

After you run the virtual services that are in a project, you can view details of the usage statistics of the virtual services from the Usage page on Test Hub.

Restriction: The usage statistics of virtual services if they are run on Test Integrations and APIs agents, are collected only if the agents are of the same version as Test Hub.
Important: The settings such as the Period, or From and To that you configure to view the usage details are retained for you during your ongoing session and the settings are retained even when you perform the following activities:
  • Log out of the server and log in again.
  • Log in after a server restart.
  1. Log in to Test Hub.

    The Projects page of the initial team space is displayed.

  2. Open the project that contains the virtual service resources in the test assets by clicking My Projects > project_name.

    The Overview page is displayed.

  3. Click Virtualization > Usage in the navigation pane.

    The Virtual Service Usage page is displayed.

    The total requests that were received by all virtual services on the server are displayed as a graph.

    The default view displays the usage data of the virtual services that are gathered during the previous week and grouped in an hourly interval. The total requests received from when the virtual service was started are displayed.

    The metric data that is reported is for the number of requests that are received by a virtual service. The requests can be requests, messages, or other calls that are received by the virtual service.

  4. Change the default settings to view the graph for the period for which you want to view the usage.
    You can change the default view by selecting an option from the following options:
    Option Description
    During the last Hour Displays the usage data of the virtual service that are gathered during the previous hour and grouped in a 20-second interval.
    During the last 24 hours Displays the usage data of the virtual service that are gathered during the previous day and grouped in an eight-minute interval.
    During the last 7 days Displays the usage data of the virtual service that are gathered during the previous week and grouped in an hourly interval.
    Note: This is the default view.
    Custom Range Displays the usage data of the virtual service that are gathered during the date range specified in the From and To fields. You can select the date and time for both the From and To fields. The data is dynamically grouped in intervals that depend on the range selected.
    Note: You can refresh the view at any time to present the graph for the latest data by clicking Refresh.
  5. View details of the virtual service by hovering the mouse over any of the data-points to view the details at that point.
    The following details about the virtual service are displayed when you hover the mouse over the data-point:
    • The date and time of the request received.
    • The number of requests received.
You have viewed the usage details of the virtual services in your project that ran on Test Hub.
You can perform any of the following tasks: