RackHD/on-http

View on GitHub
static/schemas/2.0/poller.2.0.json

Summary

Maintainability
Test Coverage
{
    "title": "Poller.2.0",
    "definitions": {
        "PartialPoller": {
            "description": "A poller for periodic collection of telemetry data",
            "type": "object",
            "properties": {
                "type": {
                    "description": "Type of poller",
                    "type": "string",
                    "enum": ["ipmi", "snmp", "redfish","wsman"]
                },
                "pollInterval": {
                    "description": "Interval at which poller will run",
                    "type": "number"
                },
                "paused": {
                    "description": "Asserted if poller is paused",
                    "type": "boolean"
                },
                "config": {
                    "description": "Poller configuration object",
                    "type": "object"
                },
                "node": {
                    "description": "Id of node to post poller to",
                    "type": "string"
                }
            },
            "additionalProperties": false
        },
        "Poller": {
            "allOf": [
                { "$ref": "#/definitions/PartialPoller" },
                {
                    "required": [
                        "type", "pollInterval", "config"
                    ]
                }
            ]
        }
    }
}