{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/logicmonitor/main/json-schema/logicmonitor-device-group-data-source-alert-config-schema.json",
  "title": "DeviceGroupDataSourceAlertConfig",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/logicmonitor-thresholds-api-openapi.yml#/components/schemas/DeviceGroupDataSourceAlertConfig",
  "type": "object",
  "properties": {
    "datasourceType": {
      "readOnly": true,
      "type": "string"
    },
    "dpConfig": {
      "readOnly": true,
      "type": "array",
      "items": {
        "$ref": "#/$defs/DeviceGroupDataSourceDataPointConfig"
      }
    }
  },
  "$defs": {
    "DeviceGroupDataSourceDataPointConfig": {
      "type": "object",
      "required": [
        "alertExpr",
        "dataPointId",
        "dataPointName"
      ],
      "properties": {
        "globalAlertExpr": {
          "readOnly": true,
          "type": "string"
        },
        "dataPointName": {
          "type": "string"
        },
        "dataPointId": {
          "format": "int32",
          "type": "integer"
        },
        "disableAlerting": {
          "type": "boolean"
        },
        "alertExprNote": {
          "type": "string"
        },
        "alertExpr": {
          "type": "string"
        },
        "dataPointDescription": {
          "readOnly": true,
          "type": "string"
        }
      }
    }
  }
}