{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workspace": {
      "type": "String"
    }
  },
  "resources": [
    {
      "apiVersion": "2024-01-01-preview",
      "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/f8c223c1-1a28-4b28-8e9f-5e33b610916b')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/f8c223c1-1a28-4b28-8e9f-5e33b610916b')]",
      "properties": {
        "alertRuleTemplateName": "f8c223c1-1a28-4b28-8e9f-5e33b610916b",
        "customDetails": null,
        "description": "Creates an incident whenever DomainTools Domain Discovery new indicators (domains) are ingested in the last 1 hour.",
        "displayName": "DomainTools New Domain Discovery Indicators Ingested",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "DNS",
            "fieldMappings": [
              {
                "columnName": "DomainCustomEntity",
                "identifier": "DomainName"
              }
            ]
          }
        ],
        "eventGroupingSettings": {
          "aggregationKind": "SingleAlert"
        },
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/DomainTools%20CCF/Analytic%20Rules/DomainTools_DomainDiscovery-DD.yaml",
        "query": "DomainToolsThreatIntelDomains(1h,\"domaindiscovery\")",
        "queryFrequency": "PT1H",
        "queryPeriod": "PT1H",
        "severity": "Medium",
        "subTechniques": [],
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [],
        "techniques": [],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}
