{
    "$schema": "http://json-schema.org/draft-04/schema",
    "type": "object",
    "title": "RPC Job Payload",
    "description": "An object containing a new RPC Job",
    "properties": {
        "query": {
            "description": "A MongoDB query. For more information on the syntax: https://docs.mongodb.com/manual/reference/method/db.collection.find/",
            "type": "object"
        },
        "instruction": {
            "description": "An instruction instruction representing a Mercury RPC method call",
            "type": "object",
            "properties": {
                "method": {
                    "description": "The RPC method we are targeting. Available methods can be enummerated using /active/computers/{mercury_id}",
                    "type": "string"
                },
                "args": {
                    "description": "Positional arguments being passed to the method",
                    "type": "array"
                },
                "kwargs": {
                    "description": "Keyword arguments being passed to the method",
                    "type": "object"
                }
            },
            "required": [
                "method"
            ]
        }
    },
    "required": [
        "query",
        "instruction"
    ]
}