Last active
November 20, 2015 22:19
-
-
Save ajainarayanan/33fb327915e589511cd5 to your computer and use it in GitHub Desktop.
node-config
This file contains 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
{ | |
"metadata": { | |
"artifact-version": "1.0.0", | |
"spec-version": "1.0", | |
"name": "Plugin Name", | |
"type": "batchsource" | |
}, | |
"inputs": null, | |
"configuration-groups": [ | |
{ | |
"label": "User Details", | |
"properties": [ | |
{ | |
"name": "userFieldOne", | |
"label": "First User Field", | |
"widget-type": "textbox", | |
"widget-attributes": { | |
"default": "Something" | |
} | |
}, | |
{ | |
"name": "passwordField", | |
"label": "Another User Password Field", | |
"widget-type": "passwordbox" | |
} | |
] | |
}, | |
{ | |
"label": "Account Details", | |
"properties": [ | |
{ | |
"name": "authToken", | |
"label": "Authentication Token", | |
"widget-type": "passwordbox" | |
}, | |
{ | |
"name": "location", | |
"label": "Geo-Location", | |
"widget-type": "select", | |
"widget-attributes": { | |
"values": ["Indonesia", "Africa", "America", "Russia", "China"], | |
"default": "Africa" | |
} | |
} | |
] | |
} | |
], | |
"outputs": [ | |
{ | |
"widget-type": "non-editable-schema-editor", | |
"widget-attributes": { | |
"schema": { | |
"id": { "type": "long" }, | |
"message": { "type": "string" }, | |
"lang": { "type": "string", "isNullable": true }, | |
"time": { "type": "long", "isNullable": true }, | |
"favCount": {"type": "int"}, | |
"rtCount": {"type": "int"}, | |
"source": { "type":"string", "isNullable": true }, | |
"geoLat": { "type":"double", "isNullable": true }, | |
"geoLong": { "type":"double", "isNullable": true}, | |
"isRetweet": { "type": "boolean" } | |
} | |
} | |
} | |
] | |
} | |
{ | |
"metadata": { | |
"artifact-version": "v1.0.0", | |
"spec-version": "1.0", | |
"name": "Plugin1 Name", | |
"type": "realtimesource" | |
}, | |
"configurtion-groups": [ | |
{ | |
"label": "User Details", | |
"properties": [ | |
{ | |
"name": "userFieldOne", | |
"label": "First User Field", | |
"widget-type": "textbox", | |
"widget-attributes": { | |
"default": "Something" | |
} | |
}, | |
{ | |
"name": "passwordField", | |
"label": "Another User Password Field", | |
"widget-type": "passwordbox" | |
} | |
] | |
}, | |
{ | |
"label": "Account Details", | |
"properties": [ | |
{ | |
"name": "authToken", | |
"label": "Authentication Token", | |
"widget-type": "passwordbox" | |
}, | |
{ | |
"name": "location", | |
"label": "Geo-Location", | |
"widget-type": "select", | |
"widget-attributes": { | |
"values": ["Indonesia", "Africa", "America", "Russia", "China"], | |
"default": "Africa" | |
} | |
} | |
] | |
} | |
], | |
"outputs": [ | |
{ | |
"name": "schemaField", | |
"label": "Some Output Schema", | |
"widget-type": "schema-editor", | |
"widget-attributes": { | |
"schema-types": [ "boolean", "int", "long", "float", "double", "bytes", "string", "map<string, string>" ], | |
"schema-default-type": "string" | |
} | |
}, | |
{ | |
"name": "someOtherSchemaField", | |
"label": "Some other Output Schema", | |
"widget-type": "schema-editor", | |
"widget-attributes": { | |
"schema-types": [ "boolean", "int", "long", "float", "double", "bytes", "string", "map<string, string>" ], | |
"schema-default-type": "bytes" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment