{
    "title": "monitoring collection of notifications",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "",
    "javaType": "com.sos.joc.model.monitoring.notification.system.SystemNotificationsAnswer",
    "type": "object",
    "required": [
        "deliveryDate",
        "notifications"
    ],
    "properties": {
        "deliveryDate": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "notifications": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.monitoring.notification.system.items.SystemNotificationItem",
                "type": "object",
                "required": [
                    "notificationId",
                    "type",
                    "category",
                    "jocId",
                    "source",
                    "notifier",
                    "hasMonitors",
                    "created"
                ],
                "properties": {
                    "notificationId": {
                        "type": "number",
                        "format": "utc-millisec",
                        "minimum": 0
                    },
                    "type": {
                        "javaType": "com.sos.monitoring.notification.NotificationType",
                        "type": "string",
                        "enum": [
                            "SUCCESS",
                            "ERROR",
                            "WARNING",
                            "RECOVERED",
                            "ACKNOWLEDGED"
                        ]
                    },
                    "category": {
                        "javaType": "com.sos.monitoring.notification.SystemNotificationCategory",
                        "type": "string",
                        "enum": [
                            "SYSTEM",
                            "JOC",
                            "CONTROLLER",
                            "AGENT"
                        ]
                    },
                    "jocId": {
                        "type": "string",
                        "maxLength": 13
                    },
                    "source": {
                        "type": "string"
                    },
                    "notifier": {
                        "type": "string"
                    },
                    "message": {
                        "type": "string"
                    },
                    "exception": {
                        "type": "string"
                    },
                    "hasMonitors": {
                        "type": "boolean"
                    },
                    "created": {
                        "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                        "type": "string",
                        "format": "date-time"
                    },
                    "acknowledgement": {
                        "javaType": "com.sos.joc.model.monitoring.notification.common.AcknowledgementItem",
                        "type": "object",
                        "required": [
                            "account",
                            "created"
                        ],
                        "properties": {
                            "account": {
                                "type": "string"
                            },
                            "comment": {
                                "type": "string"
                            },
                            "created": {
                                "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                                "type": "string",
                                "format": "date-time"
                            }
                        }
                    }
                }
            }
        }
    }
}