New Relic Push Connector integration

CarlosG117
Tera Contributor

Hello Team,

I am new to ITOM event management, Not expert in JS. currently working on sending events to SNOW from Newrelic using a webhook.

Ended up with below error

"message": "New Relic Push Connector : InternalError: Cannot convert $TIMESTAMP to java.lang.Long (sn_em_connector_listener.3b657fc6e7171010e10f6584c2f6a9ea.script; line 80)".

 var newRelicTimestamp = requestBody.timestamp;
            if (newRelicTimestamp) {
                timeOfEvent.setNumericValue(newRelicTimestamp);            //this is line 80 of push connector.
            }

            gr.time_of_event = timeOfEvent;

Can someone help me to fix the issue. Let me know if you need any further details

2 REPLIES 2

Abbas_5
Tera Sage
Tera Sage

Hello @CarlosG117 ,
Please refer to this link:
https://docs.servicenow.com/en-US/bundle/vancouver-it-operations-management/page/product/event-manag...

 

If it is helpful, please mark it as helpful!

Thanks & Regards,
Abbas

SNUG AM
Giga Guru

Looks like it didt accept the date string value.

.  Can you try to log the info on the date value passed here. Based on the log info use the appropriate functions