How Can We Help?

This section describes the usage of Query APIs to get Workload aka transaction and Behavior-related KPIs information from HEAL. All the time series data is provided as per collection interval frequency.

Behavior KPIs

List Non-Group Behavior KPIs Data

To get time-series data of a Non-Group Behavior KPI for a specific host or component instance, use the ‘non-group-kpi’ Query API as follows:
API Name – non-group-kpi
Format – GET /kpi-data/accounts/{accountId}/instances/{instanceId}/non-group-kpi/{kpiId}

Input Parameters 

TypeNameDescriptionSchemaMandatory / Optional
PathaccountIdID or Identifier of an AccountstringMandatory
PathinstanceIdID or Identifier of a component or host Instance. You can also specify cluster id here.stringMandatory
PathkpiIdID or Identifier of a KPIstringMandatory
QueryfromTime Range in GMT formatstringMandatory
QuerytoStringMandatory

 

Output Parameters
Output Type: CSV

  • Time – Timestamp at which KPI value is shown.
  • KPI Value – Value for the KPI at a particular time instance.

 

Sample Input

http://<keycloak_host>:<keycloak_port>/appsone-query-api/v1.0/kpi-data/accounts/2/instances/4/non-group-kpi/2?from=2020-03-01 10:29:07&to=2020-04-21 14:29:07

List Group Behavior KPIs Data

To get time-series data of a Group KPI for a specific host or component instance, use the ‘group-kpi’ Query API as follows:
API Name – group-kpi
Format – GET /kpi-data/accounts/{accountId}/instances/{instanceId}/group-kpi/{kpiId}/{kpiAttribute}

Input Parameters

TypeNameDescriptionSchemaMandatory / Optional
PathaccountIdID or Identifier of an AccountstringMandatory
PathinstanceIdID or Identifier of an InstancestringMandatory
PathkpiIdID or Identifier of a KPIstringMandatory
PathkpiAttributeKPI attribute for a group KPIstringMandatory
QueryfromTime Range in GMT formatstringMandatory
QuerytoStringMandatory

 

Output Parameters
Output Type: CSV

  • Time – Timestamp at which KPI value is shown.
  • KPI Value – Value for the KPI attribute at a particular time instance.

 

Sample Input

http://<keycloak_host>:<keycloak_port>/appsone-query-api/v1.0/kpi-data/accounts/2/instances/4/group-kpi/11/dm-0?from=2020-02-01 10:29:07&to=2020-04-21 10:29:07

List Multiple KPIs Data

To get time-series details of the multiple behavior KPIs for a specific host or a component instance, use the ‘multiple-instance-kpi’ Query API as follows:
API Name – multiple-instance-kpi
Format – GET /kpi-data/accounts/{accountId}/instances/{instanceId}/multiple-instance-kpi

Input Parameters

TypeNameDescriptionSchemaMandatory/
Optional
PathaccountIdID or Identifier of an AccountstringMandatory
PathinstanceIdID or Identifier of a component or host Instance. You can also specify cluster id here.stringMandatory
QuerykpiPipe (|) separated list of KPI IDs or Identifiers. For a group KPI, KPI ID or Identifier and KPI attribute are separated by comma.stringMandatory
QueryfromTime Range in GMT formatstringMandatory
QuerytostringMandatory

 

Output Parameters
Output Type: text

  • Time (GMT) – Timestamp (date and time in GMT format)
  • KPI – Value of a behavior KPI at a particular time instance

 

Sample Input

http://<keycloak_host>:<keycloak_port>/appsone-query-api/v1.0/kpi-data/accounts/2/instances/3/multiple-instance-kpi?kpi=1|MEM_UTIL|378,/boot|378,/home|USED_SIZE_PER,/&from=2020-05-20 10:29:07&to=2020-07-31 14:29:07

List All Attributes Data for Group KPIs

To get time-series details of the multiple behavior KPIs for a specific host or a component instance, use the ‘multiple-instance-kpi/threshold’ Query API as follows. This returns values for all the attributes of a Group KPI if you don’t specify threshold. For a non-group KPI, this returns values of the KPI for a specific time range. If you specify threshold, it returns only the KPI values which are greater than the threshold.
API Name – multiple-instance-kpi/threshold
Format – GET /kpi-data/accounts/{accountId}/instances/{instanceId}/multiple-instance-kpi/threshold

Input Parameters

TypeNameDescriptionSchemaMandatory/
Optional
PathaccountIdID or Identifier of an AccountstringMandatory
PathinstanceIdID or Identifier of a component or host Instance. You can also specify cluster id here.stringMandatory
QuerykpiPipe (|) separated list of KPI IDs or Identifiers. Threshold is optional. If you need to specify threshold, KPI ID or Identifier and threshold are separated by comma (<kpiId>,<threshold>|<kpiId>,<threshold>|<kpiId>).stringMandatory
QueryfromTime Range in GMT formatstringMandatory
QuerytostringMandatory

 

Output Parameters

Output Type: text

  • Date – Timestamp (date and time in GMT format)
  • Applications – Applications to which the services belong to.
  • Services – Name of the service
  • Instance – Name of a host or a component instance
  • KPI – Value of a behavior KPI at a particular time instance
  • Attribute – NA for a non-group KPI. Name of the attribute for a group KPI.
  • Value – Value of the KPI for an instance in time.

 

Sample Input

http://<keycloak_host>:<keycloak_port>/appsone-query-api/v1.0/kpi-data/accounts/2/instances/53/multiple-instance-kpi/threshold?kpi=349|17,5883|1,50|2&from=2021-04-20 00:00:00&to=2021-04-25 00:00:00

Workload KPIs

List Request KPIs Data

To get time-series data of a workload KPI for a specific transaction instance, use the ‘kpi’ Query API as follows:
API Name – kpi
Format – GET /kpi-data/accounts/{accountId}/services/{serviceId}/requests/{requestId}/kpi/{kpiId}

Input Parameters

TypeNameDescriptionSchemaMandatory / Optional
PathaccountIdID or Identifier of an AccountstringMandatory
PathserviceIdID or Identifier of a servicestringMandatory
PathrequestIdID or Identifier of a requeststringMandatory
PathkpiIdID or Identifier of a KPIstringMandatory
QueryfromTime Range in GMT formatstringMandatory
QuerytoStringMandatory

 

Output Parameters
Output Type: CSV

  • Time – Timestamp at which KPI value is shown.
  • KPI Value – Value of a KPI at a particular time instance.

 

Sample Input

http://<keycloak_host>:<keycloak_port>/appsone-query-api/v1.0/kpi-data/accounts/5/services/34/requests/55/kpi/398?from=2020-03-01 10:29:07&to=2020-04-16 14:29:07

List Request Aggregate Data

To get workload aggregated data for a specific service, use the ‘request-aggregates’ Query API as follows:
API Name – request-aggregates
Format – GET /kpi-data/accounts/{accountId}/services/{serviceId}/request-aggregates

Input Parameters

TypeNameDescriptionSchemaMandatory / Optional
PathaccountIdID or Identifier of an AccountstringMandatory
PathserviceIdID or Identifier of a servicestringMandatory
QueryfromTime Range in GMT formatstringMandatory
QuerytoStringMandatory

 

Output Parameters
Output Type: CSV

  • Request Id – Unique ID of a request
  • Request Name – Name of a request
  • Tags – Tag of a request. You may tag a request and use the tag as a filter in workload dashboard.
  • Volume – Total number of such requests
  • Success Count – This displays the total number of success requests.
  • Success Percentage – This displays percentage of successful requests.
  • Failed Count – This displays count of failed requests.
  • Failed Percentage – This displays percentage of failed requests.
  • Slow Count – This displays percentage of slow requests.
  • Slow Percentage – This displays percentage of slow requests.

 

Sample Input

http://<keycloak_host>:<keycloak_port>/appsone-query-api/v1.0/kpi-data/accounts/2/services/3/request-aggregates?from=”2020-10-08 10:29:07″&to=”2020-10-12 10:29:07″

List Multiple Request KPIs Data

To get time-series details of the multiple workload KPIs for a specific request, use the ‘multiple-request-kpi’ Query API as follows:
API Name – multiple-request-kpi
Format – GET /kpi-data/accounts/{accountId}/services/{serviceId}/multiple-request-kpi

Input Parameters

TypeNameDescriptionSchemaMandatory/
Optional
PathaccountIdID or Identifier of an AccountstringMandatory
PathserviceIdID or Identifier of a ServicestringMandatory
QuerykpiPipe (|) separated list of KPI IDs or IdentifiersstringMandatory
QueryfromTime Range in GMT formatstringMandatory
QuerytostringMandatory

 

Output Parameters
Output Type: text

  • Time (GMT) – Timestamp (date and time in GMT format)
  • KPI – Value of a workload KPI at a particular time instance

 

Sample Input

http://<keycloak_host>:<keycloak_port>/appsone-query-api/v1.0/kpi-data/accounts/2/services/7/requests/6912/multiple–request-kpi?kpi=SLOW_VOLUME|FAIL_VOLUME|397|TIMEOUT_VOLUME|SUCCESS_VOLUME|TOTAL_VOLUME|UNKNOWN_VOLUME&from=2020-05-20 10:29:07&to=2020-07-31 14:29:07

Table of Contents