{
    "title": "monitoring collection of notifications",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "",
    "javaType": "com.sos.joc.model.monitoring.AgentsAnswer",
    "type": "object",
    "required": [
        "deliveryDate",
        "controllers"
    ],
    "properties": {
        "deliveryDate": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "controllers": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.monitoring.AgentsControllerItem",
                "type": "object",
                "required": [
                    "controllerId",
                    "agents"
                ],
                "properties": {
                    "controllerId": {
                        "type": "string",
                        "pattern": "^[^/\\<>?:\"|*]*$",
                        "maxLength": 100
                    },
                    "agents": {
                        "type": "array",
                        "items": {
                            "javaType": "com.sos.joc.model.monitoring.AgentItem",
                            "type": "object",
                            "required": [
                                "agentId",
                                "url",
                                "entries"
                            ],
                            "properties": {
                                "agentId": {
                                    "type": "string",
                                    "pattern": "^[^<>]*$",
                                    "maxLength": 255,
                                    "minLength": 1
                                },
                                "url": {
                                    "type": "string",
                                    "pattern": "^[^<>]*$",
                                    "maxLength": 255,
                                    "minLength": 1
                                },
                                "previousEntry": {
                                    "javaType": "com.sos.joc.model.monitoring.AgentItemEntryItem",
                                    "type": "object",
                                    "required": [
                                        "totalRunningTime",
                                        "readyTime"
                                    ],
                                    "properties": {
                                        "totalRunningTime": {
                                            "type": "number",
                                            "format": "utc-millisec",
                                            "minimum": 0
                                        },
                                        "readyTime": {
                                            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                                            "type": "string",
                                            "format": "date-time"
                                        },
                                        "lastKnownTime": {
                                            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                                            "type": "string",
                                            "format": "date-time"
                                        }
                                    }
                                },
                                "entries": {
                                    "type": "array",
                                    "items": {
                                        "javaType": "com.sos.joc.model.monitoring.AgentItemEntryItem",
                                        "type": "object",
                                        "required": [
                                            "totalRunningTime",
                                            "readyTime"
                                        ],
                                        "properties": {
                                            "totalRunningTime": {
                                                "type": "number",
                                                "format": "utc-millisec",
                                                "minimum": 0
                                            },
                                            "readyTime": {
                                                "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                                                "type": "string",
                                                "format": "date-time"
                                            },
                                            "lastKnownTime": {
                                                "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                                                "type": "string",
                                                "format": "date-time"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}