{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--datadog-slos-slo.json",
  "title": "DatadogSLOsSLOProperties",
  "description": "Datadog SLO 1.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-slos-slo.json",
    "sourceSha256": "f45a4e3282f550a33f579623a0394cf6a89069ab656bc9917a398b2656b2e1c6"
  },
  "type": "object",
  "properties": {
    "Description": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Description of the slo"
    },
    "Groups": {
      "description": "A list of (up to 20) monitor groups that narrow the scope of a monitor service level objective.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "MonitorIds": {
      "description": "A list of monitor ids that defines the scope of a monitor service level objective. Required if type is monitor.",
      "type": "array",
      "items": {
        "type": "integer"
      }
    },
    "Name": {
      "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 slo"
    },
    "Query": {
      "$ref": "#/$defs/Query"
    },
    "Tags": {
      "description": "Tags associated with the slo",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "Thresholds": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Threshold"
      }
    },
    "Type": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "monitor",
            "metric"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The type of the slo"
    }
  },
  "typeName": "Datadog::SLOs::SLO",
  "$defs": {
    "Creator": {
      "type": "object",
      "title": "DatadogSLOsSLOCreatorDefinition",
      "properties": {
        "Name": {
          "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 creator of the slo"
        },
        "Handle": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Handle of the creator of the slo"
        },
        "Email": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Email of the creator of the slo"
        }
      },
      "additionalProperties": false
    },
    "Threshold": {
      "type": "object",
      "title": "DatadogSLOsSLOThresholdDefinition",
      "properties": {
        "Target": {
          "description": "The target value for the service level indicator within the corresponding timeframe.",
          "type": "number"
        },
        "TargetDisplay": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "A string representation of the target that indicates its precision.(e.g. 98.00)"
        },
        "Timeframe": {
          "oneOf": [
            {
              "type": "string",
              "enum": [
                "7d",
                "30d",
                "90d"
              ]
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The SLO time window options. Allowed enum values: 7d,30d,90d"
        },
        "Warning": {
          "description": "The warning value for the service level objective.",
          "type": "number"
        },
        "WarningDisplay": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "A string representation of the warning target.(e.g. 98.00)"
        }
      },
      "additionalProperties": false
    },
    "Query": {
      "type": "object",
      "title": "DatadogSLOsSLOQueryDefinition",
      "properties": {
        "Numerator": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "A Datadog metric query for total (valid) events."
        },
        "Denominator": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "A Datadog metric query for good events."
        }
      },
      "additionalProperties": false
    },
    "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": "DatadogSLOsSLODatadogCredentialsDefinition",
      "additionalProperties": false
    }
  },
  "typeConfiguration": {
    "properties": {
      "DatadogCredentials": {
        "$ref": "#/definitions/DatadogCredentials"
      }
    },
    "additionalProperties": false
  },
  "additionalProperties": false,
  "readOnlyProperties": [
    "/properties/Modified",
    "/properties/Id",
    "/properties/Deleted",
    "/properties/State",
    "/properties/OverallState",
    "/properties/Creator",
    "/properties/Created"
  ],
  "required": [
    "Name",
    "Thresholds",
    "Type"
  ],
  "primaryIdentifier": [
    "/properties/Id"
  ]
}
