Resources/Schema/New-CmAzMonitorActivityLogAlerts.Schema.json

{
    "$schema": "http://json-schema.org/draft-07/schema",
    "$id": "New-CmAzMonitorActivityLogAlerts",
    "type": "object",
    "title": "New-CmAzMonitorActivityLogAlerts",
    "description": "Settings Root.",
    "required": [
        "component",
        "groups"
    ],
    "properties": {
        "component": {
            "$id": "#/component",
            "type": ["string", "null"],
            "title": "Component",
            "description": "Value to determine what cmdlet should be dynamically loaded for these settings."
        },
        "location": {
            "$id": "#/location",
            "type": ["string", "null"],
            "title": "location",
            "description": "Deployment location which is also used for created dedicated resource group if required."
        },
        "service": {
            "$id": "#/service",
            "type": "object",
            "title": "Service",
            "description": "Contains dependency and publish details for service location.",
            "properties": {
                "dependencies": {
                    "$id": "#/service/dependencies",
                    "type": "object",
                    "title": "Dependencies",
                    "description": "Contains dependency details for service location.",
                    "properties": {
                        "actionGroups": {
                            "$id": "#/service/dependencies/actionGroups",
                            "type": ["array", "null"],
                            "title": "Action Groups",
                            "description": "Global default dependency value to fetch existing resource type."
                        },
                        "resourceGroup": {
                            "$id": "#/service/dependencies/resourceGroup",
                            "type": ["string", "null"],
                            "title": "ResourceGroup",
                            "description": "Dependency value to fetch existing resource type."
                        }
                    },
                    "additionalProperties": false
                },
                "publish": {
                    "$id": "#/service/publish",
                    "type": ["object", "null"],
                    "title": "Publish",
                    "description": "Contains publish details for service location.",
                    "properties": {
                        "activityLogAlert": {
                            "$id": "#/service/publish/activityLogAlert",
                            "type": ["string", "null"],
                            "title": "activity log Alert",
                            "description": "Global default value to publish on deployed resource type."
                        },
                        "resourceGroup": {
                            "$id": "#/service/publish/resourceGroup",
                            "type": ["string", "null"],
                            "title": "ResourceGroup",
                            "description": "Global default value to publish on deployed resource type."
                        }
                    },
                    "additionalProperties": false
                }
            },
            "additionalProperties": false
        },
        "groups": {
            "$id": "#/groups",
            "type": "array",
            "title": "Groups",
            "description": "Contains all details pertaining to logical groupings of alert sets.",
            "items": {
                "$id": "#/groups/items",
                "minItems": 1,
                "allOf": [
                    {
                        "$id": "#/groups/items/allOf",
                        "type": "object",
                        "required": [
                            "name",
                            "alertSets"
                        ],
                        "properties": {
                            "name": {
                                "$id": "#/groups/items/allOf/name",
                                "type": "string",
                                "title": "Name",
                                "description": "The name of the grouping."
                            },
                            "alertSets": {
                                "$id": "#/groups/items/allOf/alertSets",
                                "type": "array",
                                "title": "Alert Sets",
                                "description": "Contains all alert set details for a specific grouping.",
                                "items": {
                                    "$id": "#/groups/items/allOf/alertSets/items",
                                    "minItems": 1,
                                    "allOf": [
                                        {
                                            "$id": "#/groups/items/allOf/alertSets/items/allOf",
                                            "type": "object",
                                            "required": [
                                                "alerts"
                                            ],
                                            "properties": {
                                                "name": {
                                                    "$id": "#/groups/items/allOf/alertSets/items/allOf/name",
                                                    "name": "string",
                                                    "title": "Name",
                                                    "description": "Becomes part of activity log alert rule generated name."
                                                },
                                                "alerts": {
                                                    "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts",
                                                    "type": "array",
                                                    "title": "Alerts",
                                                    "description": "Contains all details of the activity log alert rules to be deployed.",
                                                    "items": {
                                                        "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items",
                                                        "minItems": 1,
                                                        "required": [
                                                            "conditions",
                                                            "service"
                                                        ],
                                                        "allOf": [
                                                            {
                                                                "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items/allOf",
                                                                "type": "object",
                                                                "properties": {
                                                                    "name": {
                                                                        "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items/allOf/name",
                                                                        "name": "string",
                                                                        "title": "Name",
                                                                        "description": "Becomes part of activity log alert rule generated name."
                                                                    },
                                                                    "description": {
                                                                        "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items/allOf/description",
                                                                        "type": ["string", "null"],
                                                                        "title": "Description",
                                                                        "description": "Description of the activity log alert rule."
                                                                    },
                                                                    "conditions": {
                                                                        "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items/allOf/conditions",
                                                                        "type": "array",
                                                                        "title": "Conditions",
                                                                        "description": "Contains activity log rule conditions.",
                                                                        "items": {
                                                                            "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items",
                                                                            "minItems": 1,
                                                                            "allOf": [
                                                                                {
 
                                                                                    "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items/allOf/conditions/items/allOf/",
                                                                                    "type": "object",
                                                                                    "required": [
                                                                                        "field"
                                                                                    ],
                                                                                    "properties": {
                                                                                        "field": {
                                                                                            "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items/allOf/conditions/items/allOf/field",
                                                                                            "name": "string",
                                                                                            "title": "activity log field",
                                                                                            "description": "Activity log alert namespace field."
                                                                                        },
                                                                                        "equals": {
                                                                                            "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items/allOf/conditions/items/allOf/equals",
                                                                                            "name": "string",
                                                                                            "title": "Equals",
                                                                                            "description": "The value of the event's field will be compared to this value."
                                                                                        },
                                                                                        "containsAny": {
                                                                                            "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items/allOf/conditions/items/allOf/equals/actionGroups",
                                                                                            "type": ["array", "null"],
                                                                                            "title": "containsAny",
                                                                                            "description": "The value of the event's field will be compared to the values in this array.",
                                                                                            "items": {
                                                                                                "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items/allOf/conditions/items/allOf/equals/items"
                                                                                            }
                                                                                        },
                                                                                        "anyOf": {
                                                                                            "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items/allOf/conditions/items/allOf/equals/anyOf",
                                                                                            "type": ["array", "null"],
                                                                                            "title": "anyOf",
                                                                                            "description": "An Activity Log Alert rule condition that is met when at least one of its member leaf conditions are met..",
                                                                                            "items": {
                                                                                                "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items/allOf/conditions/items/allOf/anyOf/items"
                                                                                            }
                                                                                        }
                                                                                    },
                                                                                    "additionalProperties": false
                                                                                }
                                                                            ]
                                                                        }
                                                                    },
                                                                    "enabled": {
                                                                        "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items/allOf/severity",
                                                                        "type": ["boolean", "null"],
                                                                        "title": "Enabled",
                                                                        "description": "If the alert rule is enabled or not.",
                                                                        "default": true
                                                                    },
                                                                    "severity": {
                                                                        "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items/allOf/severity",
                                                                        "type": ["string", "null"],
                                                                        "title": "Severity",
                                                                        "description": "The severity level of the alert to trigger.",
                                                                        "enum": ["Critical", "Error", "Warning", "Informational", "Verbose"]
                                                                    },
                                                                    "service": {
                                                                        "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items/allOf/service",
                                                                        "type": "object",
                                                                        "title": "Service",
                                                                        "description": "Contains dependency and publish details for service location.",
                                                                        "properties": {
                                                                            "dependencies": {
                                                                                "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items/allOf/service/dependencies",
                                                                                "type": "object",
                                                                                "title": "Dependencies",
                                                                                "description": "Contains dependency details for service location.",
                                                                                "default": "Defaults to current subscription if all targets are null.",
                                                                                "properties": {
                                                                                    "actionGroups": {
                                                                                        "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items/allOf/service/dependencies/actionGroups",
                                                                                        "type": ["array", "null"],
                                                                                        "title": "Action Groups",
                                                                                        "description": "Local overriding dependency value to fetch existing resource type.",
                                                                                        "items": {
                                                                                            "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items/allOf/service/dependencies/actionGroups/items"
                                                                                        }
                                                                                    },
                                                                                    "targetResources": {
                                                                                        "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items/allOf/service/dependencies/targetResources",
                                                                                        "type": ["array", "null"],
                                                                                        "title": "TargetResources",
                                                                                        "description": "Service tag value to fetch existing resources of which to apply the activity log alert rule.",
                                                                                        "items": {
                                                                                            "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items/allOf/service/dependencies/targetResources/items"
                                                                                        }
                                                                                    },
                                                                                    "targetResourceGroups": {
                                                                                        "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items/allOf/service/dependencies/targetResourceGroups",
                                                                                        "type": ["array", "null"],
                                                                                        "title": "TargetResourceGroups",
                                                                                        "description": "Service tag value to fetch existing resource groups of which to apply the activity log alert rule.",
                                                                                        "items": {
                                                                                            "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items/allOf/service/dependencies/targetResourceGroups/items"
                                                                                        }
                                                                                    },
                                                                                    "targetSubscriptionId": {
                                                                                        "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items/allOf/service/dependencies/targetSubscriptionId",
                                                                                        "type": ["string", "null"],
                                                                                        "title": "TargetSubscriptionId",
                                                                                        "description": "Target subscription Id."
                                                                                    }
                                                                                },
                                                                                "additonalProperties": false
                                                                            },
                                                                            "publish": {
                                                                                "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items/allOf/service/publish",
                                                                                "type": ["object", "null"],
                                                                                "title": "Publish",
                                                                                "description": "Contains publish details for service location.",
                                                                                "properties": {
                                                                                    "activityLogAlert": {
                                                                                        "$id": "#/groups/items/allOf/alertSets/items/allOf/alerts/items/allOf/service/activityLogAlert",
                                                                                        "type": ["string", "null"],
                                                                                        "title": "Activity log Alert",
                                                                                        "description": "Local overriding value to publish on deployed existing resource type."
                                                                                    }
                                                                                },
                                                                                "additionalProperties": false
                                                                            }
                                                                        },
                                                                        "additonalProperties": false
                                                                    }
                                                                },
                                                                "additonalProperties": false
                                                            }
                                                        ]
                                                    }
                                                }
                                            },
                                            "additonalProperties": false
                                        }
                                    ]
                                }
                            }
                        },
                        "additonalProperties": false
                    }
                ]
            }
        }
    },
    "additonalProperties": false
}