{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--datadog-monitors-downtime.json",
  "title": "DatadogMonitorsDowntimeProperties",
  "description": "Datadog Monitors Downtime 3.1.0. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/datadog-monitors-downtime.json",
    "sourceSha256": "a8ebb7c5e5f5466cf4a0e0daf4468ffd130f98fe8349c1d039a4325b7fafd666"
  },
  "type": "object",
  "properties": {
    "Disabled": {
      "description": "Whether or not this downtime is disabled",
      "type": "boolean"
    },
    "End": {
      "description": "POSIX timestamp to end the downtime. If not provided, the downtime is in effect indefinitely (i.e. until you cancel it).",
      "type": "integer"
    },
    "Message": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Message on the downtime"
    },
    "MonitorId": {
      "description": "A single monitor to which the downtime applies. If not provided, the downtime applies to all monitors.",
      "type": "integer"
    },
    "MonitorTags": {
      "description": "A comma-separated list of monitor tags, to which the downtime applies. The resulting downtime applies to monitors that match ALL provided monitor tags.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "Scope": {
      "description": "The scope(s) to which the downtime applies",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "Start": {
      "description": "POSIX timestamp to start the downtime. If not provided, the downtime starts the moment it is created.",
      "type": "integer"
    },
    "Timezone": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The timezone for the downtime"
    }
  },
  "typeName": "Datadog::Monitors::Downtime",
  "required": [
    "Scope"
  ],
  "typeConfiguration": {
    "properties": {
      "DatadogCredentials": {
        "$ref": "#/definitions/DatadogCredentials"
      }
    },
    "additionalProperties": false
  },
  "additionalProperties": false,
  "$defs": {
    "DatadogCredentials": {
      "description": "Credentials for the Datadog API",
      "properties": {
        "ApiKey": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Datadog API key"
        },
        "ApplicationKey": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Datadog application key"
        },
        "ApiURL": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Datadog API URL (defaults to <https://api.datadoghq.com)> Use <https://api.datadoghq.eu> for EU accounts."
        }
      },
      "required": [
        "ApiKey",
        "ApplicationKey"
      ],
      "type": "object",
      "title": "DatadogMonitorsDowntimeDatadogCredentialsDefinition",
      "additionalProperties": false
    }
  },
  "primaryIdentifier": [
    "/properties/Id"
  ],
  "readOnlyProperties": [
    "/properties/Active",
    "/properties/Canceled",
    "/properties/CreatorId",
    "/properties/DowntimeType",
    "/properties/Id",
    "/properties/ParentId",
    "/properties/UpdaterId"
  ]
}
