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.
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.

To configure the BMC Helix API data source
- 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.
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/searchParams
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
- query—SEARCH 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.
- To create multiple queries, click Query
.