1.0.1 • Published 9 years ago

scio-parser-json v1.0.1

Weekly downloads
4
License
GPLv2
Repository
github
Last release
9 years ago

scio-parser-json

JSON config parser for Scio.

Translates a JSON blob like the below into a Scio schema:

{
  "google.com": {
    "address": "google.com",
    "services": [
      "ping",
      "http"
    ]
  },
  "reddit.com": {
    "address": "reddit.com",
    "services": [
      {
	"ping": {
	  "timeoutDanger": 300
	}
      },
      "http"
    ]
  }
}

NOTES:

  • Almost all properties of plugins are optional. if specified as strings (as http is above) all default options are assumed.
  • schedule is processed by human-to-cron