{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-test-labs/json-schema/azure-test-labs-notification-channel-fragment-schema.json",
  "title": "NotificationChannelFragment",
  "description": "A notification.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-test-labs-notification-channels-api-openapi.yml#/components/schemas/NotificationChannelFragment",
  "allOf": [
    {
      "$ref": "#/$defs/UpdateResource"
    }
  ],
  "properties": {
    "properties": {
      "$ref": "#/$defs/NotificationChannelPropertiesFragment",
      "description": "The properties of the resource.",
      "x-ms-client-flatten": true
    }
  },
  "type": "object",
  "$defs": {
    "EventFragment": {
      "description": "An event to be notified for.",
      "properties": {
        "eventName": {
          "description": "The event type for which this notification is enabled (i.e. AutoShutdown, Cost)",
          "enum": [
            "AutoShutdown",
            "Cost"
          ],
          "type": "string",
          "x-ms-enum": {
            "modelAsString": true,
            "name": "NotificationChannelEventType"
          }
        }
      },
      "type": "object"
    },
    "NotificationChannelPropertiesFragment": {
      "description": "Properties of a schedule.",
      "properties": {
        "description": {
          "description": "Description of notification.",
          "type": "string"
        },
        "emailRecipient": {
          "description": "The email recipient to send notifications to (can be a list of semi-colon separated email addresses).",
          "type": "string"
        },
        "events": {
          "description": "The list of event for which this notification is enabled.",
          "items": {
            "$ref": "#/$defs/EventFragment"
          },
          "type": "array"
        },
        "notificationLocale": {
          "description": "The locale to use when sending a notification (fallback for unsupported languages is EN).",
          "type": "string"
        },
        "webHookUrl": {
          "description": "The webhook URL to send notifications to.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "UpdateResource": {
      "description": "Represents an update resource",
      "properties": {
        "tags": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tags of the resource.",
          "type": "object"
        }
      },
      "type": "object"
    }
  }
}