{
	"$id": "https://www.atsc-schemas.org/atsc3.0/a344/20240213/org.atsc.notify-alertingChange.json",
	"$schema": "https://json-schema.org/draft/2019-09/schema#",
	"title": "alertingChange Notification",
	"description": "alertingChange Notification",
	"type": "object",
	"properties": {
		"jsonrpc": {
			"type": "string",
			"enum": [ "2.0" ]
		},
		"method": {
			"type": "string",
			"enum": [ "org.atsc.notify" ]
		},
		"params": {
			"type": "object",
			"properties": {
				"msgType": {
					"type": "string",
					"enum": [ "alertingChange" ]
				},
				"alertList": {
					"type": "array",
					"items": {
						"type": "object",
						"properties": {
							"alertingType": {
								"type": "string",
								"enum": [ "AEAT", "OSN" ]
							},
							"alertingFragment": {
								"type": "string",
								"format": "xml"
							},
							"receiveTime": {
								"type": "string",
								"format": "date-time"
							},
							"filteredEventList": {
								"type": "array",
								"items": {
									"type": "string"
								}
							}
						},
						"if": {
							"properties": {
								"alertingType": {
									"enum": [ "OSN" ]
								}
							}
						},
						"then": {
							"required": [ "alertingType", "alertingFragment", "receiveTime" ]
						},
						"else": {
							"required": [ "alertingType", "alertingFragment" ]
						}
					}
				}
			},
			"required": [ "msgType", "alertList" ]
		}
	},
	"required": [ "jsonrpc", "method", "params" ]
}
