Information

This site will undergo a brief period of maintenance on Friday, 5 December at 12:30 AM Central/12:00 PM IST. During a 30 minute window, site availability may be intermittent.

Using the BMC Helix API data source


As an administrator, use the out-of-the-box BMC Helix API data source to visualize data from BMC Helix applications by using API endpoints. 

Important
We recommend using the BMC Helix data source to collect audit, events, metrics, logs, continuous optimization, and service management data. Use the BMC Helix API data source to collect data from services that are not supported by the BMC Helix data source.

Example: Display service names by using the BMC Helix API data source

An administrator uses the out-of-the-box Service Dashboard for tracking KPIs and metrics for selected services. When you have multiple services selected in the Service Dashboard, you cannot identify the services for which the metrics are displayed. To display the name of the selected services on the dashboard, you can create individual panels by using the BMC Helix API data source. In this example, we have created a new panel to display the Database-BS service name.

service_dashboard_23_1_01.png

To configure the BMC Helix API data source

  1. Copy the out-of-the-box Service Dashboard, and create a new panel by using the BMC Helix API data source from the list of data sources.
  2. In the query editor of the BMC Helix API data source, configure the following options:

    Option

    Action

    Fields

    Extract the data from the JSON response returned from the URL that is configured in the data source. On the Fields tab, configure the following options: 

    • Field—Enter the query to collect the data.
      BMC Helix API data source supports two query languages: JSONPath and JSONata. Specify the following JSONata query in this field to collect the name of the services for the specified example:

      $.results[*].name
    • Type—Select the type of data that is returned by the URL. 
      The following types are supported:
      • Auto
      • String
      • Number
      • Time
      • Boolean
    • Alias—Select this option to override the default name of the field.

    Path

    Configure the HTTP method of the request sent to the URL. You can set this option to GET or POST. Specify the text that you want to append to the URL in the data source.
    Select GET and specify the following path to display the name of the services for the specified example:

    /smart-graph-api/api/v1.2/data/search

    Params

    In the Key and the Value fields, add any parameters that you want to send as a part of the GET/POST request.
    Specify the following parameters for the specified example:

    • format—object
    • querySEARCH BusinessService WHERE name ='${servicename}' SHOW name,#id
    • limit—1000

    Headers

    In the Key and the Value fields, add any parameters that you want to send as HTTP headers.

    Body

    Enter the text that is sent as a request. You can enter the value in text, JSON, and XML formats.

    Cache  time

    Set the cache time of your query. By default, this option is set to 0s.

  3. To create multiple queries, click Query json_add_query_22_4_02.png.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Helix Dashboards 25.4