Following features are supported in IHub Lite:
By default, the destination of ihub lite channel - which can be a queue, http, email or api scanner - will be always iHub main’s inbound queue. The main inbound queues will be specified as environment variables in lite’s docker stack file.
When
a channel is configured at lite with json mapping without specifying the destination the incoming json will be converted based on the json mapping given in the channel configuration and it will be redirected to iHub main’s inbound queue using TLS
tunneling.
So, a queue listener should be created at iHub main end to take this message and push the message to SmartOps inbound queue.
A sample json for creating a queue channel with json mapping and no destination details is given below.
{ |
Once a json message with source = solarwinds comes in the above ihub lite channel it will be converted to smartops formatted json and will be placed in IHub main’s inbound queue.
So at iHub main side a queue listener should be configured which should map an automation story to the above request. Since the conversion is already happening at iHub lite side the iHub main queue listener should be configured in such a way
to map the input json as output with additional automationStoryName field.
IHub main queue channel configured for routing message from the above lite channel is given below.
By default, the destination of ihub lite channel - which can be a queue, http, email or api scanner - will be always iHub main’s inbound queue. The main inbound queues will be specified as environment variables in lite’s docker stack file.
When
a channel is configured at lite without json mapping and without specifying the destination the incoming json will be pushed as such to ihub main’s inbound using TLS tunneling.
So, a queue listener should be created at iHub main end to take
this message, convert that to Smartops json and push the message to SmartOps inbound queue.
A sample json for creating a queue channel without json mapping and no destination details is given below.
{ |
So whenever a request json with source = solarwinds comes through this queue channel it will be routed to iHub main’s inbound queue. So a queue listener should be configured at ihub main end to convert that message to SmartOps json and place the converted message to smartops queue. The queue listener configured at iHub main end is given below.
Lite channel creation apis have provision to specify the destination details in channel configuration itself. When a destination is specified rather than sending the messages to default destination (which is ihub inbound queue) iHub lite will send
the message to defined destination(s).
Currently two types of destinations are supported in iHub lite.
When we define queue as a destination ihub lite will convert the incoming message according to the mapping defined in this destination and will place it in that specified queue. The queue, exchange and its binding should be present in the destination
rabbitmq instance for this.
While configuring queue as destination user needs to provide the following details related to that destination.
"destinationType": "QUEUE", |
When we define API as a destination ihub will convert the incoming message according to the mapping defined in this destination and will push the message to the configured API.
While configuring API as destination user needs to provide the following
details related to that destination.
"apiAuthType": "BASIC", //If the API has basic authentication |
A sample json for creating ihub lite queue channel with 2 destinations – one is a queue and other is and API is given below.
{ |
When it above configured lite queue channel receives a request with source=solarwinds it will convert the messages based on mapping provided in queue destination and place that converted message to the configured queue and also based on mapping provided
in API destination and will place it in the configured API.
When we define channel with destination details and with no mapping information within destination details the channel will push the incoming message as such to the defined destination.
A sample json for creating a channel with destination details
without json mapping is given below.
{ |
Note: The above mentioned four types of message processing is supported in all four types of ihub channels – ie, Queue, HTTP, Email and API Scanner.
Related Topics: