Skip to content

Instantly share code, notes, and snippets.

@ajainarayanan
Last active November 20, 2015 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajainarayanan/33fb327915e589511cd5 to your computer and use it in GitHub Desktop.
Save ajainarayanan/33fb327915e589511cd5 to your computer and use it in GitHub Desktop.
node-config
{
"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