UNPKG

@gapit/node-red-contrib-gapit-results

Version:

A Node-RED node which converts the msg.gapit_results property (e.g. from gapit-snmp) into the format required by the 'influx batch' node (from node-red-contrib-influxdb).

37 lines (34 loc) 1.52 kB
<script type="text/javascript"> RED.nodes.registerType('gapit-results-to-influx-batch',{ category: 'function', color: "YellowGreen", defaults: { use_timestamp_from_msg: {value: true}, timestamp_property: {value: "ts", required: true}, name: {value:""} }, inputs:1, outputs:1, icon: "file.png", label: function() { return this.name||"gapit-results-to-influx-batch"; } }); </script> <script type="text/html" data-template-name="gapit-results-to-influx-batch"> <div class="form-row"> <label for="node-input-use_timestamp_from_msg"><i class="fa fa-remove"></i> Use timestamp from Message</label> <input type="checkbox" id="node-input-use_timestamp_from_msg" /> </div> <div class="form-row"> <label for="node-input-timestamp_property"><i class="fa fa-file-code-o"></i> Timestamp property: <b>msg.</b></label> <input type="text" id="node-input-timestamp_property" /> </div> <div class="form-row"> <label for="node-input-name"><i class="fa fa-tag"></i> Name</label> <input type="text" id="node-input-name" placeholder="Name"> </div> </script> <script type="text/html" data-help-name="gapit-results-to-influx-batch"> <p>A node which converts the msg.gapit_results property (e.g. from gapit-snmp) into a format that can be inserted into influxdb using the "influx batch" node (from node-red-contrib-influxdb).</p> </script>