{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--mongodb-atlas-alertconfiguration.json",
  "title": "MongoDBAtlasAlertConfigurationProperties",
  "description": "Returns and edits the conditions that trigger alerts and how MongoDB Cloud notifies users. This collection remains under revision and may change. Refer to the legacy documentation for this collection in the following link.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/mongodb-atlas-alertconfiguration.json",
    "sourceSha256": "b92896199fe6da0570f14368388dae0d863d05744bfe0701f4c0fd8f0c3d1806"
  },
  "type": "object",
  "properties": {
    "Profile": {
      "oneOf": [
        {
          "type": "string",
          "default": "default"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Profile used to provide credentials information, (a secret with the cfn/atlas/profile/{Profile}, is required), if not provided default is used"
    },
    "EventTypeName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Event type that triggers an alert."
    },
    "ProjectId": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 24,
          "minLength": 24,
          "pattern": "^([a-f0-9]{24})$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Unique 24-hexadecimal digit string that identifies your project."
    },
    "Matchers": {
      "type": "array",
      "insertionOrder": false,
      "description": "List of rules that determine whether MongoDB Cloud checks an object for the alert configuration. You can filter using the matchers array if the **eventTypeName** specifies an event for a host, replica set, or sharded cluster.",
      "items": {
        "$ref": "#/$defs/Matcher",
        "type": "object"
      }
    },
    "MetricThreshold": {
      "type": "object",
      "description": "Threshold for the metric that, when exceeded, triggers an alert. The resource returns this parameter when '\"eventTypeName\" : \"OUTSIDE_METRIC_THRESHOLD\"'.",
      "$ref": "#/$defs/MetricThresholdView"
    },
    "Notifications": {
      "type": "array",
      "insertionOrder": false,
      "description": "List that contains the targets that MongoDB Cloud sends notifications.",
      "items": {
        "$ref": "#/$defs/NotificationView",
        "type": "object"
      }
    },
    "Threshold": {
      "type": "object",
      "description": "Limit that triggers an alert when exceeded. The resource returns this parameter when **eventTypeName** has not been set to 'OUTSIDE_METRIC_THRESHOLD'.",
      "$ref": "#/$defs/IntegerThresholdView"
    },
    "TypeName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Human-readable label that displays the alert type."
    }
  },
  "typeName": "MongoDB::Atlas::AlertConfiguration",
  "primaryIdentifier": [
    "/properties/ProjectId",
    "/properties/Profile",
    "/properties/Id"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "$defs": {
    "AlertConfigView": {
      "type": "object",
      "properties": {
        "Created": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^(?:[1-9]\\d{3}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1\\d|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[1-9]\\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)-02-29)T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d{1,9})?(?:Z)$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Date and time when MongoDB Cloud created the alert configuration. This parameter expresses its value in the ISO 8601 timestamp format in UTC."
        },
        "Enabled": {
          "type": "boolean",
          "description": "Flag that indicates whether someone enabled this alert configuration for the specified project."
        },
        "EventTypeName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Event type that triggers an alert."
        },
        "GroupId": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 24,
              "minLength": 24,
              "pattern": "^([a-f0-9]{24})$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Unique 24-hexadecimal digit string that identifies the project that owns this alert configuration."
        },
        "Id": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 24,
              "minLength": 24,
              "pattern": "^([a-f0-9]{24})$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Unique 24-hexadecimal digit string that identifies this alert configuration."
        },
        "Links": {
          "type": "array",
          "description": "List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships.",
          "items": {
            "$ref": "#/$defs/Link",
            "type": "object"
          }
        },
        "Matchers": {
          "type": "array",
          "description": "List of rules that determine whether MongoDB Cloud checks an object for the alert configuration. You can filter using the matchers array if the **eventTypeName** specifies an event for a host, replica set, or sharded cluster.",
          "items": {
            "$ref": "#/$defs/Matcher",
            "type": "object"
          }
        },
        "MetricThreshold": {
          "type": "object",
          "description": "Threshold for the metric that, when exceeded, triggers an alert. The resource returns this parameter when '\"eventTypeName\" : \"OUTSIDE_METRIC_THRESHOLD\"'.",
          "$ref": "#/$defs/MetricThresholdView"
        },
        "Notifications": {
          "type": "array",
          "description": "List that contains the targets that MongoDB Cloud sends notifications.",
          "items": {
            "$ref": "#/$defs/NotificationView",
            "type": "object"
          }
        },
        "Threshold": {
          "type": "object",
          "description": "Limit that triggers an alert when exceeded. The resource returns this parameter when **eventTypeName** has not been set to 'OUTSIDE_METRIC_THRESHOLD'.",
          "$ref": "#/$defs/IntegerThresholdView"
        },
        "TypeName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Human-readable label that displays the alert type."
        },
        "Updated": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^(?:[1-9]\\d{3}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1\\d|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[1-9]\\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)-02-29)T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d{1,9})?(?:Z)$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Date and time when someone last updated this alert configuration. This parameter expresses its value in the ISO 8601 timestamp format in UTC."
        }
      },
      "title": "MongoDBAtlasAlertConfigurationAlertConfigViewDefinition",
      "additionalProperties": false
    },
    "AlertView": {
      "type": "object",
      "properties": {
        "AcknowledgedUntil": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^(?:[1-9]\\d{3}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1\\d|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[1-9]\\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)-02-29)T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d{1,9})?(?:Z)$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Date and time until which this alert has been acknowledged. This parameter expresses its value in the ISO 8601 timestamp format in UTC. The resource returns this parameter if a MongoDB User previously acknowledged this alert.\n\n- To acknowledge this alert forever, set the parameter value to 100 years in the future.\n\n- To unacknowledge a previously acknowledged alert, set the parameter value to a date in the past."
        },
        "AcknowledgementComment": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 200
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Comment that a MongoDB Cloud user submitted when acknowledging the alert."
        },
        "AcknowledgingUsername": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "MongoDB Cloud username of the person who acknowledged the alert. The response returns this parameter if a MongoDB Cloud user previously acknowledged this alert."
        },
        "AlertConfigId": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 24,
              "minLength": 24,
              "pattern": "^([a-f0-9]{24})$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Unique 24-hexadecimal digit string that identifies the alert configuration that sets this alert."
        },
        "ClusterName": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^([a-zA-Z0-9]([a-zA-Z0-9-]){0,21}(?<!-)([\\w]{0,42}))$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Human-readable label that identifies the cluster to which this alert applies. This resource returns this parameter for alerts of events impacting backups, replica sets, or sharded clusters."
        },
        "Created": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^(?:[1-9]\\d{3}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1\\d|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[1-9]\\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)-02-29)T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d{1,9})?(?:Z)$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Date and time when MongoDB Cloud created this alert. This parameter expresses its value in the ISO 8601 timestamp format in UTC."
        },
        "CurrentValue": {
          "type": "object",
          "description": "Value of the metric that triggered the alert. The resource returns this parameter for alerts of events impacting hosts.",
          "$ref": "#/$defs/CurrentValue"
        },
        "EventTypeName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Incident that triggered this alert."
        },
        "GroupId": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 24,
              "minLength": 24,
              "pattern": "^([a-f0-9]{24})$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Unique 24-hexadecimal digit string that identifies the project that owns this alert."
        },
        "HostnameAndPort": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Hostname and port of the host to which this alert applies. The resource returns this parameter for alerts of events impacting hosts or replica sets."
        },
        "Id": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 24,
              "minLength": 24,
              "pattern": "^([a-f0-9]{24})$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Unique 24-hexadecimal digit string that identifies this alert."
        },
        "LastNotified": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^(?:[1-9]\\d{3}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1\\d|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[1-9]\\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)-02-29)T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d{1,9})?(?:Z)$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Date and time that any notifications were last sent for this alert. This parameter expresses its value in the ISO 8601 timestamp format in UTC. The resource returns this parameter if MongoDB Cloud has sent notifications for this alert."
        },
        "Links": {
          "type": "array",
          "insertionOrder": false,
          "description": "List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships.",
          "items": {
            "$ref": "#/$defs/Link",
            "type": "object"
          }
        },
        "MetricName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Human-readable label that identifies the metric against which MongoDB Cloud checks the alert."
        },
        "ReplicaSetName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Name of the replica set to which this alert applies. The response returns this parameter for alerts of events impacting backups, hosts, or replica sets."
        },
        "Resolved": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^(?:[1-9]\\d{3}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1\\d|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[1-9]\\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)-02-29)T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d{1,9})?(?:Z)$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Date and time that this alert changed to '\"status\" : \"CLOSED\"'. This parameter expresses its value in the ISO 8601 timestamp format in UTC. The resource returns this parameter once '\"status\" : \"CLOSED\"'."
        },
        "Status": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "CANCELLED",
                "CLOSED",
                "OPEN",
                "TRACKING"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "State of this alert at the time you requested its details."
        },
        "TypeName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Category in which MongoDB Cloud classifies this alert."
        },
        "Updated": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^(?:[1-9]\\d{3}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1\\d|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[1-9]\\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)-02-29)T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d{1,9})?(?:Z)$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Date and time when someone last updated this alert. This parameter expresses its value in the ISO 8601 timestamp format in UTC."
        }
      },
      "title": "MongoDBAtlasAlertConfigurationAlertViewDefinition",
      "additionalProperties": false
    },
    "IntegerThresholdView": {
      "type": "object",
      "properties": {
        "Operator": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "GREATER_THAN",
                "LESS_THAN"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Comparison operator to apply when checking the current metric value."
        },
        "Threshold": {
          "type": "number",
          "description": "Value of metric that, when exceeded, triggers an alert."
        },
        "Units": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Element used to express the quantity. This can be an element of time, storage capacity, and the like."
        }
      },
      "title": "MongoDBAtlasAlertConfigurationIntegerThresholdViewDefinition",
      "additionalProperties": false
    },
    "Matcher": {
      "type": "object",
      "properties": {
        "FieldName": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "CLUSTER_NAME",
                "HOSTNAME",
                "HOSTNAME_AND_PORT",
                "PORT",
                "REPLICA_SET_NAME",
                "SHARD_NAME",
                "TYPE_NAME"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Name of the parameter in the target object that MongoDB Cloud checks. The parameter must match all rules for MongoDB Cloud to check for alert configurations."
        },
        "Operator": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "EQUALS",
                "CONTAINS",
                "STARTS_WITH",
                "ENDS_WITH",
                "NOT_EQUALS",
                "NOT_CONTAINS",
                "REGEX"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Comparison operator to apply when checking the current metric value against **matcher[n].value**."
        },
        "Value": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Value to match or exceed using the specified **matchers.operator**."
        }
      },
      "title": "MongoDBAtlasAlertConfigurationMatcherDefinition",
      "additionalProperties": false
    },
    "MetricThresholdView": {
      "type": "object",
      "properties": {
        "MetricName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Human-readable label that identifies the metric against which MongoDB Cloud checks the configured **metricThreshold.threshold**."
        },
        "Mode": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "AVERAGE"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "MongoDB Cloud computes the current metric value as an average."
        },
        "Operator": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "GREATER_THAN",
                "LESS_THAN"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Comparison operator to apply when checking the current metric value."
        },
        "Threshold": {
          "type": "number",
          "description": "Value of metric that, when exceeded, triggers an alert."
        },
        "Units": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Element used to express the quantity. This can be an element of time, storage capacity, and the like."
        }
      },
      "title": "MongoDBAtlasAlertConfigurationMetricThresholdViewDefinition",
      "additionalProperties": false
    },
    "NotificationView": {
      "type": "object",
      "properties": {
        "ApiToken": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Slack API token or Bot token that MongoDB Cloud needs to send alert notifications via Slack. The resource requires this parameter when '\"notifications.typeName\" : \"SLACK\"'. If the token later becomes invalid, MongoDB Cloud sends an email to the project owners. If the token remains invalid, MongoDB Cloud removes the token."
        },
        "ChannelName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Name of the Slack channel to which MongoDB Cloud sends alert notifications. The resource requires this parameter when '\"notifications.typeName\" : \"SLACK\"'."
        },
        "DatadogApiKey": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[0-9a-f]{32}$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Datadog API Key that MongoDB Cloud needs to send alert notifications to Datadog. You can find this API key in the Datadog dashboard. The resource requires this parameter when '\"notifications.typeName\" : \"DATADOG\"'."
        },
        "DatadogRegion": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 2,
              "minLength": 2,
              "enum": [
                "EU",
                "US"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Datadog region that indicates which API Uniform Resource Locator (URL) to use. The resource requires this parameter when '\"notifications.typeName\" : \"DATADOG\"'."
        },
        "DelayMin": {
          "type": "number",
          "description": "Number of minutes that MongoDB Cloud waits after detecting an alert condition before it sends out the first notification."
        },
        "EmailAddress": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Email address to which MongoDB Cloud sends alert notifications. The resource requires this parameter when '\"notifications.typeName\" : \"EMAIL\"'. You don't need to set this value to send emails to individual or groups of MongoDB Cloud users including:\n\n- specific MongoDB Cloud users ('\"notifications.typeName\" : \"USER\"')\n- MongoDB Cloud users with specific project roles ('\"notifications.typeName\" : \"GROUP\"')\n- MongoDB Cloud users with specific organization roles ('\"notifications.typeName\" : \"ORG\"')\n- MongoDB Cloud teams ('\"notifications.typeName\" : \"TEAM\"')\n\nTo send emails to one MongoDB Cloud user or grouping of users, set the **notifications.emailEnabled** parameter."
        },
        "EmailEnabled": {
          "type": "boolean",
          "description": "Flag that indicates whether MongoDB Cloud should send email notifications. The resource requires this parameter when one of the following values have been set:\n\n- '\"notifications.typeName\" : \"ORG\"'\n- '\"notifications.typeName\" : \"GROUP\"'\n- '\"notifications.typeName\" : \"USER\"'"
        },
        "FlowName": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 100,
              "minLength": 1,
              "pattern": "^([a-z\\-]+)$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Flowdock flow name to which MongoDB Cloud sends alert notifications. This name appears after the organization name in the Uniform Resource Locator (URL) path: 'www.flowdock.com/app/<organization-name>/<flow-name>'. The resource requires this parameter when '\"notifications.typeName\" : \"FLOWDOCK\"'."
        },
        "FlowdockApiToken": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Flowdock API token that MongoDB Cloud needs to send alert notifications to Flowdock. The resource requires this parameter when '\"notifications.typeName\" : \"FLOWDOCK\"'. If the token later becomes invalid, MongoDB Cloud sends an email to the project owners. If the token remains invalid, MongoDB Cloud removes the token."
        },
        "IntervalMin": {
          "type": "number",
          "description": "Number of minutes to wait between successive notifications. MongoDB Cloud sends notifications until someone acknowledges the unacknowledged alert.\n\nPagerDuty, VictorOps, and OpsGenie notifications don't return this element. Configure and manage the notification interval within each of those services."
        },
        "MicrosoftTeamsWebhookUrl": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Microsoft Teams Webhook Uniform Resource Locator (URL) that MongoDB Cloud needs to send this notification via Microsoft Teams. The resource requires this parameter when '\"notifications.typeName\" : \"MICROSOFT_TEAMS\"'. If the URL later becomes invalid, MongoDB Cloud sends an email to the project owners. If the key remains invalid, MongoDB Cloud removes it."
        },
        "MobileNumber": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Mobile phone number to which MongoDB Cloud sends alert notifications. The resource requires this parameter when '\"notifications.typeName\" : \"SMS\"'."
        },
        "NotificationToken": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "HipChat API token that MongoDB Cloud needs to send alert notifications to HipChat. The resource requires this parameter when '\"notifications.typeName\" : \"HIP_CHAT\"'\". If the token later becomes invalid, MongoDB Cloud sends an email to the project owners. If the token remains invalid, MongoDB Cloud removes it."
        },
        "OpsGenieApiKey": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "API Key that MongoDB Cloud needs to send this notification via Opsgenie. The resource requires this parameter when '\"notifications.typeName\" : \"OPS_GENIE\"'. If the key later becomes invalid, MongoDB Cloud sends an email to the project owners. If the key remains invalid, MongoDB Cloud removes it."
        },
        "OpsGenieRegion": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 2,
              "minLength": 2,
              "enum": [
                "EU",
                "US"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Opsgenie region that indicates which API Uniform Resource Locator (URL) to use."
        },
        "OrgName": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^([a-z\\-]+)$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Flowdock organization name to which MongoDB Cloud sends alert notifications. This name appears after 'www.flowdock.com/app/' in the Uniform Resource Locator (URL) path. The resource requires this parameter when '\"notifications.typeName\" : \"FLOWDOCK\"'."
        },
        "Roles": {
          "type": "array",
          "insertionOrder": false,
          "description": "List that contains the one or more organization or project roles that receive the configured alert. The resource requires this parameter when '\"notifications.typeName\" : \"GROUP\"' or '\"notifications.typeName\" : \"ORG\"'. If you include this parameter, MongoDB Cloud sends alerts only to users assigned the roles you specify in the array. If you omit this parameter, MongoDB Cloud sends alerts to users assigned any role.",
          "items": {
            "type": "string",
            "enum": [
              "GROUP_CLUSTER_MANAGER",
              "GROUP_DATA_ACCESS_ADMIN",
              "GROUP_DATA_ACCESS_READ_ONLY",
              "GROUP_DATA_ACCESS_READ_WRITE",
              "GROUP_OWNER",
              "GROUP_READ_WRITE",
              "ORG_OWNER",
              "ORG_MEMBER",
              "ORG_GROUP_CREATOR",
              "ORG_BILLING_ADMIN",
              "ORG_READ_ONLY"
            ]
          }
        },
        "RoomName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "HipChat API room name to which MongoDB Cloud sends alert notifications. The resource requires this parameter when '\"notifications.typeName\" : \"HIP_CHAT\"'\"."
        },
        "ServiceKey": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "PagerDuty service key that MongoDB Cloud needs to send notifications via PagerDuty. The resource requires this parameter when '\"notifications.typeName\" : \"PAGER_DUTY\"'. If the key later becomes invalid, MongoDB Cloud sends an email to the project owners. If the key remains invalid, MongoDB Cloud removes it."
        },
        "Severity": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "CRITICAL",
                "ERROR",
                "WARNING"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Degree of seriousness given to this notification."
        },
        "SmsEnabled": {
          "type": "boolean",
          "description": "Flag that indicates whether MongoDB Cloud should send text message notifications. The resource requires this parameter when one of the following values have been set:\n\n- '\"notifications.typeName\" : \"ORG\"'\n- '\"notifications.typeName\" : \"GROUP\"'\n- '\"notifications.typeName\" : \"USER\"'"
        },
        "TeamId": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 24,
              "minLength": 24,
              "pattern": "^([a-f0-9]{24})$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Unique 24-hexadecimal digit string that identifies one MongoDB Cloud team. The resource requires this parameter when '\"notifications.typeName\" : \"TEAM\"'."
        },
        "TeamName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Name of the MongoDB Cloud team that receives this notification. The resource requires this parameter when '\"notifications.typeName\" : \"TEAM\"'."
        },
        "TypeName": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "DATADOG",
                "EMAIL",
                "FLOWDOCK",
                "GROUP",
                "MICROSOFT_TEAMS",
                "OPS_GENIE",
                "ORG",
                "PAGER_DUTY",
                "PROMETHEUS",
                "SLACK",
                "SMS",
                "TEAM",
                "USER",
                "VICTOR_OPS",
                "WEBHOOK"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Human-readable label that displays the alert notification type."
        },
        "Username": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "MongoDB Cloud username of the person to whom MongoDB Cloud sends notifications. Specify only MongoDB Cloud users who belong to the project that owns the alert configuration. The resource requires this parameter when '\"notifications.typeName\" : \"USER\"'."
        },
        "VictorOpsApiKey": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "API key that MongoDB Cloud needs to send alert notifications to Splunk On-Call. The resource requires this parameter when '\"notifications.typeName\" : \"VICTOR_OPS\"'. If the key later becomes invalid, MongoDB Cloud sends an email to the project owners. If the key remains invalid, MongoDB Cloud removes it."
        },
        "VictorOpsRoutingKey": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Routing key that MongoDB Cloud needs to send alert notifications to Splunk On-Call. The resource requires this parameter when '\"notifications.typeName\" : \"VICTOR_OPS\"'. If the key later becomes invalid, MongoDB Cloud sends an email to the project owners. If the key remains invalid, MongoDB Cloud removes it."
        },
        "WebhookSecret": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "An optional field for your webhook secret."
        },
        "WebhookUrl": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Your webhook URL."
        }
      },
      "title": "MongoDBAtlasAlertConfigurationNotificationViewDefinition",
      "additionalProperties": false
    },
    "CurrentValue": {
      "type": "object",
      "properties": {
        "Number": {
          "type": "number",
          "description": "Amount of the **metricName** recorded at the time of the event. This value triggered the alert."
        },
        "Units": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Element used to express the quantity in **currentValue.number**. This can be an element of time, storage capacity, and the like. This metric triggered the alert."
        }
      },
      "title": "MongoDBAtlasAlertConfigurationCurrentValueDefinition",
      "additionalProperties": false
    },
    "Link": {
      "type": "object",
      "properties": {
        "Href": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Uniform Resource Locator (URL) that points another API resource to which this response has some relationship. This URL often begins with '<https://mms.mongodb.com>'."
        },
        "Rel": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Uniform Resource Locator (URL) that defines the semantic relationship between this resource and another API resource. This URL often begins with '<https://mms.mongodb.com>'."
        }
      },
      "title": "MongoDBAtlasAlertConfigurationLinkDefinition",
      "additionalProperties": false
    }
  },
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/ProjectId",
    "/properties/Profile",
    "/properties/EventTypeName",
    "/properties/Matchers",
    "/properties/Notifications",
    "/properties/MetricThreshold",
    "/properties/Threshold",
    "/properties/TypeName"
  ],
  "readOnlyProperties": [
    "/properties/Id",
    "/properties/Enabled",
    "/properties/Updated",
    "/properties/Created"
  ]
}
