This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //modinput.js | |
| //this variant introduces an Argument class to make the syntax terser. | |
| var splunk = require('splunk-sdk'); | |
| var DataType = splunk.modularInput.DataType; | |
| var RequiredOnCreate = splunk.modularInput.Argument.RequiredOnCreate; | |
| exports.getScheme = function() { | |
| var scheme = { | |
| name: 'Random Numbers', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //modinput.js | |
| var splunk = require('splunk-sdk'); | |
| var DataType = splunk.modularInput.DataType; | |
| exports.getScheme = function() { | |
| var scheme = { | |
| 'Random Numbers', | |
| 'Streams events containing a random number', | |
| ['name', 'description', 'type', 'requiredOnCreate'], | |
| [ |