forked from luiselizondo/node-red-contrib-messagehub-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmessagehub.html
92 lines (83 loc) · 3.71 KB
/
messagehub.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<script type="text/javascript">
RED.nodes.registerType('messagehub out',{
category: 'function',
color: '#FFFFFF',
defaults: {
apikey:{value:"", required: true},
topic: {value:"", required: true},
kafkaresturl: {value: "https://kafka-rest-prod01.messagehub.services.us-south.bluemix.net:443", required: true}
},
inputs:1,
outputs:0,
icon: "kafka.png",
align: "right",
label: function() {
return this.name||"messagehub out";
}
});
</script>
<script type="text/x-red" data-template-name="messagehub out">
<div class="form-row">
<label for="node-input-apikey"><i class="icon-tag"></i>API Key</label>
<input type="text" id="node-input-apikey" placeholder="API Key">
</div>
<div class="form-row">
<label for="node-input-kafkaresturl"><i class="icon-tag"></i>Kafka REST URL</label>
<input type="text" id="node-input-kafkaresturl" placeholder="Kafka REST URL">
</div>
<div class="form-row">
<label for="node-input-topic"><i class="icon-tag"></i>Topic</label>
<input type="text" id="node-input-topic" placeholder="Topic">
</div>
</script>
<script type="text/x-red" data-help-name="messagehub out">
<p>A simple Message Hub producer node.</p>
<p><b>API Key</b> <i>The API Key provided by the Message Hub Service</i>. The service will not be automatically created, you need to go to Bluemix and activate the Message Hub Service in the Catalog section.</p>
<p><b>Kafka REST URL</b> <i>The full URL of the Kafka REST URL provided by the Message Hub Service. Once the service has been provisioned on Bluemix, go to credentials and get your REST API URL.</p>
<p><b>Topic</b> <i>The topic of message to produce. Please be aware that Message Hub charges by topic.</i></p>
<pre>
Example:
Topic = "topic"
</pre>
</script>
<script type="text/javascript">
RED.nodes.registerType('messagehub in',{
category: 'function',
color: '#FFFFFF',
defaults: {
apikey:{value:"", required: true},
topic: {value:"", required: true},
kafkaresturl: {value: "https://kafka-rest-prod01.messagehub.services.us-south.bluemix.net:443", required: true}
},
inputs:0,
outputs:1,
icon: "kafka.png",
label: function() {
return this.name||"messagehub in";
}
});
</script>
<script type="text/x-red" data-template-name="messagehub in">
<div class="form-row">
<label for="node-input-apikey"><i class="icon-tag"></i>API Key</label>
<input type="text" id="node-input-apikey" placeholder="API Key">
</div>
<div class="form-row">
<label for="node-input-kafkaresturl"><i class="icon-tag"></i>Kafka REST URL</label>
<input type="text" id="node-input-kafkaresturl" placeholder="Kafka REST URL">
</div>
<div class="form-row">
<label for="node-input-topic"><i class="icon-tag"></i>Topic</label>
<input type="text" id="node-input-topic" placeholder="Topic">
</div>
</script>
<script type="text/x-red" data-help-name="messagehub in">
<p>A simple Message Hub consumer node.</p>
<p><b>API Key</b> <i>The API Key provided by the Message Hub Service</i>. The service will not be automatically created, you need to go to Bluemix and activate the Message Hub Service in the Catalog section.</p>
<p><b>Kafka REST URL</b> <i>The full URL of the Kafka REST URL provided by the Message Hub Service. Once the service has been provisioned on Bluemix, go to credentials and get your REST API URL.</p>
<p><b>Topic</b> <i>The topic of message to produce. Please be aware that Message Hub charges by topic.</i></p>
<pre>
Example:
Topic = "topic"
</pre>
</script>