User define Event channel

Hello Is there any possibility to publish an event on the user define channel using aikaan event management?
We would like to publish events from our application software from the device using aikaan agent.
Application software is deployed using a docker container from aikaan cloud. and aikaan agent is installed on the device using curl method.

Hi Kishan,
You can publish your events (called “Business Events”) on user-defined channels. Please follow the steps to get an event

  1. Sign in to your account
  2. Click on the Users navigation tab present at the top right corner of the page
  3. Click on the Settings option
  4. Click on the Notifications side-tab
  5. Select all the severity types (or your preferred ones only)
  6. Make sure to select the check box present against the Business Event option
  7. Select your slack channel.

You can follow the video for a reference Enable Slack Notification for business event - YouTube
A sample business event trigger script would look like this:

curl --header "Content-Type: application/json" \
  --request POST \
  --data '{
  "severity": 3,
  "message":"Event Trigger test", 
  "data": {
        "sampleTagKey1": 123,
        "sampleTagKey2": "Test tag val" 
  },
  "notify": true 
}' \
  http://127.0.0.1:1118/api/aiagent/v1/event

Executing the above script on the terminal of a device, an event will be logged on the Events page.

The Severity depends on the severity value specified in the sample script. You can change it to any one of the values specified below to get an event of appropriate severity. Make sure that the corresponding severities have been selected in the Notification page
0 → Success
1 → Info
2 → Warning
3 → Error
4 → Fatal

Is it possible to get these events on our Oizom server ? We want some functionality where we can send events from Oizom server to device and device to Oizom server using aikaan. We want to do some action based on events. and also want to send events to the device

Hi @kishan

Sorry for the late response. If you are ok with the pull method, you can get it on Oizon server.

There are REST API’s to pull the events

You can check the events REST API details at the page
https://experience.aikaan.io/api-doc/?urls.primaryName=EventService

If you need more info, I can help you.

Thanks
C

We wanted it to be live so in order to make it live in the pulling method, we need to keep polling on APIs. it will consume more resources. so if there is some kind of mechanism where we can listen on WebSocket or some MQTT channel then it gives more advantage over the pull method.

Hi @kishan ,

For now, we do not have the web-socket or MQTT for events. I will add this to the product engineering team as feedback.

Thanks
C