Exception
Connectors for IgniteConnex Monitoring
IgniteConnex Monitoring offers a set of versatile connectors that enhance your monitoring capabilities and facilitate seamless communication with the monitoring system. These connectors enable you to push various types of information to IgniteConnex for efficient tracking and management of your runtime applications. Below are the connectors available:
1) Push Exception
The Push Exception Connector is designed to push exception details to IgniteConnex Monitoring. This is crucial for tracking and managing exceptions within your runtime application and enables an efficient email notification service for exceptions.
Sample msg.data:
msg.data = {
"EXCEPTION":"Exception Title",
"DETAILS":"Exception Details"
}
2) Get Exception
This connector helps you check and understand any issues in your app, like reading a report. It makes it easy to stay informed about problems within your runtime application.This Connector will give, 50 response object maximum at a time.
Note: You need to save "IGNITE_API_SECRET"
in the environments of a runtime.
Sample flow json:
[{"id":"2499becbf50e84a6","type":"subflow","name":"Get Exceptions","info":"# About Get Exceptions:\r\nUsing this connector we can get events from igniteconnex monitoring system.\r\n\r\nAll exceptions are respective to an app created in igniteconnex dashboard.\r\n\r\nThis Connector will give, 50 response object maximum at a time.\r\n\r\n`\r\nNote: You need to save **\"IGNITE_API_SECRET\"** in environments of a runtime.\r\n`\r\n\r\n## Overriding Connector Properties:\r\n\r\nYou have the option to override certain connector properties by using the following message properties:\r\n\r\n- **QUERY** - This corresponds to **msg.config.query**.\r\n\r\n## Available Query Parameters:\r\n- **mode** : If you pass \"raw\" in mode, it will give you raw data (no modifications).\r\n- **panel** : If you are working for observability platform, we have panel query param for you.\r\n Available Panels are:\r\n - reported_exceptions\r\n - exception_time_series.\r\n\r\nIf you are passing panel, you are required to pass:\r\n- **from** : Starting time from which you want to retrieve data. (expected timestamp)\r\n- **to** : Ending time from which you want to retrieve data. (expected timestamp)\r\n\r\n`\r\nNote: Data will be modified as per the given panel name and sent as a response.\r\n`\r\n\r\n### Sample query object: \r\nFor instance, if you wish to retrieve data with no modifications, you can easily achieve this by including the \"mode=raw\" parameter in your query object.","category":"","in":[{"x":40,"y":80,"wires":[{"id":"2b07282c737c7392"}]}],"out":[{"x":720,"y":80,"wires":[{"id":"a232ff42dcb38cd2","port":0}]},{"x":720,"y":80,"wires":[{"id":"a232ff42dcb38cd2","port":1}]}],"env":[{"name":"QUERY","type":"str","value":""}],"meta":{},"color":"#F3F3F3","icon":"ignite-connectors/igniteConnex.png"},{"id":"2b07282c737c7392","type":"function","z":"2499becbf50e84a6","name":"API parameter setting","func":"let base_uri = env.get(\"IGNITE_API_BASE_URL\") || \"https://api.igniteconnex.io\"\nlet query = env.get(\"QUERY\") || msg.config.query || \"\";\n\nmsg.method = 'GET';\n\nmsg.url = `${base_uri}/monitor/api/v1/monitor/exceptions`;\n\nif (query) {\n msg.url = `${msg.url}?${query}`\n};\n\nmsg.headers = {\n \"x-ignite-api-secret\": env.get(\"IGNITE_API_SECRET\"),\n};\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[{"var":"_","module":"lodash"}],"x":200,"y":80,"wires":[["97a4e50b1bb27bc4"]]},{"id":"97a4e50b1bb27bc4","type":"http request","z":"2499becbf50e84a6","name":"request","method":"use","ret":"txt","paytoqs":false,"url":"","tls":"","persist":false,"proxy":"","authType":"","x":420,"y":80,"wires":[["a232ff42dcb38cd2"]]},{"id":"a232ff42dcb38cd2","type":"switch","z":"2499becbf50e84a6","name":"success ?","property":"statusCode","propertyType":"msg","rules":[{"t":"btwn","v":"199","vt":"num","v2":"299","v2t":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":580,"y":80,"wires":[[],[]]},{"id":"5c1790449c3b4393","type":"subflow:2499becbf50e84a6","z":"c52e470e7ef6e459","name":"","x":440,"y":400,"wires":[["91fd4f4553e57c3a"],["621cdb428a35f0af"]]},{"id":"63298e923cc9d8eb","type":"inject","z":"c52e470e7ef6e459","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":237,"y":396,"wires":[["5c1790449c3b4393"]]},{"id":"91fd4f4553e57c3a","type":"debug","z":"c52e470e7ef6e459","name":"debug 18","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":620,"y":360,"wires":[]},{"id":"621cdb428a35f0af","type":"debug","z":"c52e470e7ef6e459","name":"debug 19","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":620,"y":400,"wires":[]}]
Overriding Connector Properties:
You have the option to override certain connector properties by using the following message properties:
- QUERY - This corresponds to
msg.config.query
.
Available Query Parameters:
mode : If you pass "raw" in mode, it will give you raw data (no modifications).
panel : If you are working for observability platform, we have panel query param for you.
Available Panels are:- reported_exceptions
- exception_time_series
If you are passing panel, you are required to pass:
from : Starting time from which you want to retrieve data. (expected timestamp)
to : Ending time from which you want to retrieve data. (expected timestamp)
Note: Data will be modified as per the given panel name and sent as a response.