-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-event-hub-receive.html
68 lines (63 loc) · 2.68 KB
/
azure-event-hub-receive.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<script type="text/javascript">
RED.nodes.registerType('azure-event-hub-receive', {
category: 'input',
color: '#0080FF',
defaults: {
name: { value: "" },
connectionstring: { value: "" },
eventhubname: { value: "" },
consumergroup: { value: "$Default" }
},
inputs: 0,
outputs: 1,
icon: "icon.png",
label: function () {
return this.name || "azure-event-hub-receive";
}
});
</script>
<script type="text/x-red" data-template-name="azure-event-hub-receive">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-connectionstring"><i class="icon-tag"></i> Event Hub Connection String</label>
<input type="text" id="node-input-connectionstring" placeholder="Connection String without EntityPath E.g. Endpoint=sb://XXX.servicebus.windows.net/;SharedAccessKeyName=XXX;SharedAccessKey=XXX">
</div>
<div class="form-row">
<label for="node-input-eventhubname"><i class="icon-tag"></i> Event Hub Name</label>
<input type="text" id="node-input-eventhubname" placeholder="Name of the Event Hub">
</div>
<div class="form-row">
<label for="node-input-consumergroup"><i class="icon-tag"></i> Event Hub Consumer Group</label>
<input type="text" id="node-input-consumergroup" placeholder="E.g. $default">
</div>
</script>
<script type="text/x-red" data-help-name="azure-event-hub-receive">
<p>A simple node that receives messages from an Azure Event Hub...</p>
<h3>Inputs</h3>
<dl class="message-properties">
There are no inputs.
</dl>
<h3>Outputs</h3>
<ol class="node-ports">
<li>Standard output
<dl class="message-properties">
<dt>payload <span class="property-type">object</span></dt>
<dd>A JSON object, received from the Event Hub.</dd>
</dl>
</li>
</ol>
<h3>Details</h3>
In the node's properties, the connection string and name of the Event Hub to which
you would like to connect, can be specified. Additionally the Consumer Group
can be set in the properties as well. Both values can be retreived from
the Azure Portal.
<h3>References</h3>
<ul>
<li><a href="https://azure.microsoft.com/en-us/services/event-hubs/">Azure Event Hubs</a></li>
<li><a https://www.npmjs.com/package/@azure/event-hubs/v/5.2.0>Azure Event Hubs NodeJS client.</a> - the client library used by this node</li>
</ul>
</script>
</script>