{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/dexcom/refs/heads/main/json-structure/dexcom-api-alert-setting-structure.json",
  "name": "AlertSetting",
  "description": "AlertSetting schema from Dexcom Developer API",
  "type": "object",
  "properties": {
    "alertName": {
      "$ref": "#/definitions/AlertName"
    },
    "value": {
      "type": "double"
    },
    "unit": {
      "$ref": "#/definitions/GlucoseUnit"
    },
    "snooze": {
      "type": "int32",
      "description": "Snooze interval in minutes."
    },
    "enabled": {
      "type": "boolean"
    }
  },
  "definitions": {
    "AlertName": {
      "name": "AlertName",
      "type": "string",
      "enum": [
        "unknown",
        "high",
        "low",
        "rise",
        "fall",
        "outOfRange",
        "urgentLow",
        "urgentLowSoon",
        "noReadings",
        "fixedLow"
      ]
    },
    "GlucoseUnit": {
      "name": "GlucoseUnit",
      "type": "string",
      "enum": [
        "unknown",
        "mg/dL",
        "mmol/L"
      ]
    }
  }
}
