When setting up or testing a push-based Open Data Connector (ODC) integration, the following behavior occurs:
An HTTP 200 OK response from the ODC gateway only indicates that the authentication was successful and the payload was successfully received by the endpoint. It does not guarantee that the data was successfully parsed or ingested into the backend.
This issue typically occurs when the mapping definition or the payload is missing mandatory fields required for metric ingestion. Specifically, when using the metric_name field, ODC has a dependency on three additional fields that must be present in the schema to properly process the record.
To resolve this, ensure that your ODC Mapping Definition includes the following three mandatory fields whenever metric_name is used:
Update your integration schema (JSONata) to include these fields within the alarm:
{
"alarms": [result.
{
"severity": severity,
"status": severity = "information" ? "Closed" : "New",
"alarmType": "Script",
"product": "MyProduct",
"summary": message,
"host": host,
"ip": ip,
"alarm_name": alertcode,
"message": message,
"alarm_description": "<website>/" & alertcode,
"monitoringType": "HOSTS",
"ci_unique_id": "Alarms|Project|" ,
"metric_name": "<name of the metric>",
"metricType": "CPU",
"metricUnit": "%",
"metricDataType": "LONG",
"alarmId": alertid,
"entityId": alertid,
"monitoringType": "HOST",
"created": timestamp
}
]
}
Troubleshooting Notes