BMC — Data Template Usage
Map HEAL signal attributes into BMC ticket payloads with the data templates.
The meta-template folder contains the following files:
1. bmc_data_template.json file,
{
"attributes": {
"CLASS": "Example_Heal",
"SignalId": "${SignalId}",
"Signal_Type": "${Signal_Type}",
"msg": "${SignalDescription},${LatestEvents_InstanceName},${LatestEvents_HostAddress},${LatestEvents_KpiName},${LatestEvents_value},${KPIAttribute},${LatestEvents_EventDetectedTime},${Signal_Type}",
"SignalStatus": "${SignalStatus}",
"severity": "${Severity}",
"instancename": "${LatestEvents_InstanceName}",
"LatestEventsKpiName": "${LatestEvents_KpiName}",
"KPIAttribute": "${KPIAttribute}",
"metric_value": "${LatestEvents_value}",
"_arrival_time": "${LatestEvents_EventDetectedTime}",
"_service_name": "${LatestEvents_ServiceName}",
"source_address": "${LatestEvents_HostAddress}",
"_repeat_count": "${Total_Events}",
"rootCauseAnomalyIds": "${rootCauseAnomalyIds}",
"ApplicationName": "${ApplicationName}",
"KPIName": "${LatestEvents_KpiName}",
"Component": "${ComponentName}"
}
}
a. CLASS – The class configured as the response for the BMC event creation API, such as APM, EVENT, and so on. Set the appropriate response class for the BMC event creation endpoint.
b. Severity – A BMC ticket has one of the following severities:
- CRITICAL
- MAJOR
- MINOR
- WARNING
- INFO
c. msg – Description of the ticket.
d. instancename – Provide the required instance name in the field.
e. rootCauseAnomalyIds – Provide the RCA ID of the instance.
For Example (Template):
{
"attributes": {
"CLASS": "IT_Payments",
"severity": "Default",
"msg": "Event(s) in jboss-service_1 root cause service(s) may impact transaction performance.,RHEL_234,CPU Util,4.77,NA",
"SignalStatus": "OPEN",
"itsm_operational_category1": "${itsm.debt_name}",
"itsm_operational_category2": "${itsm.application_name}",
"SignalId": "E-4-24-214-1706194260",
"SignalDescription": "Event(s) in jboss-service_1 root cause service(s) may impact transaction performance.,RHEL_234,192.0.2.3,CPU Util,4.77,NA,2024-01-25 21:43:00",
"ImpactedEntity": "jboss-service_1",
"LatestEvents_HostAddress": "192.0.2.3"
}
}
2. bmc_close_data_template.json file,
{
"attributes": {
"CLASS": "Example_Heal",
"SignalId": "${SignalId}",
"Signal_Type": "${Signal_Type}",
"msg": "${SignalDescription},${LatestEvents_InstanceName},${LatestEvents_HostAddress},${LatestEvents_HostName},${LatestEvents_KpiName},${LatestEvents_value},${KPIAttribute},${LatestEvents_EventDetectedTime},${Signal_Type}",
"SignalStatus": "${SignalStatus}",
"severity": "${Severity}",
"instancename": "${LatestEvents_InstanceName}",
"rootCauseAnomalyIds": "${rootCauseAnomalyIds}",
"ApplicationName": "${ApplicationName}",
"KPIName": "${LatestEvents_KpiName}",
"Component": "${ComponentName}"
}
}
3. bmc_update_data_template.json file,
{
"attributes": {
"CLASS": "Example_Heal",
"SignalId": "${SignalId}",
"Signal_Type": "${Signal_Type}",
"msg": "${SignalDescription},${LatestEvents_InstanceName},${LatestEvents_HostAddress},${LatestEvents_KpiName},${LatestEvents_value},${KPIAttribute},${LatestEvents_EventDetectedTime},${Signal_Type}",
"SignalStatus": "${SignalStatus}",
"severity": "${Severity}",
"instancename": "${LatestEvents_InstanceName}",
"LatestEventsKpiName": "${LatestEvents_KpiName}",
"KPIAttribute": "${KPIAttribute}",
"metric_value": "${LatestEvents_value}",
"_arrival_time": "${LatestEvents_EventDetectedTime}",
"_service_name": "${LatestEvents_ServiceName}",
"source_address": "${LatestEvents_HostAddress}",
"_repeat_count": "${Total_Events}",
"rootCauseAnomalyIds": "${rootCauseAnomalyIds}",
"ApplicationName": "${ApplicationName}",
"KPIName": "${LatestEvents_KpiName}",
"Component": "${ComponentName}"
}
}
4. bmc_event_data_template.json file,
{
"attributes": {
"CLASS": "Example_HEALAnomaly",
"msg": "${LatestEvents_InstanceName},${LatestEvents_HostAddress},${LatestEvents_KpiName},${LatestEvents_value},${KPIAttribute},${LatestEvents_EventDetectedTime}",
"Anomaly_ID": "${AnomalyId}",
"severity": "${AnomalySeverity}",
"instancename": "${LatestEvents_InstanceName}",
"LatestEventsKpiName": "${LatestEvents_KpiName}",
"KPIAttribute": "${KPIAttribute}",
"metric_value": "${LatestEvents_value}",
"_arrival_time": "${LatestEvents_EventDetectedTime}",
"_service_name": "${LatestEvents_ServiceName}",
"source_address": "${LatestEvents_HostAddress}",
"starttime": "${AnomalyStartTime}",
"KPI_UNIT": "${LatestEvents_Unit}",
"Source_hostname": "${LatestEvents_HostName}",
"ComponentName": "${ComponentName}",
"KPI_NAME": "${LatestEvents_KpiName}",
"ApplicationName": "${ApplicationName}",
"Collection_interval": "${Collection_Interval}",
"Expected_Closer_Time": "${Expected_Closer_Time}"
}
}
Next — Review the end-to-end connector workflow in the HEAL Connectors SOP, or see where BMC fits among the integrations in the Agents & Connectors Overview.