Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alert Rules - add alert details override changes and PUT example #22196

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1305,6 +1305,27 @@
"alertSeverityColumnName": {
"description": "the column name to take the alert severity from",
"type": "string"
},
"alertDynamicProperties": {
"description": "List of additional dynamic properties to override",
"type": "array",
"items": {
"$ref": "#/definitions/AlertPropertyMapping"
},
"x-ms-identifiers": []
}
},
"type": "object"
},
"AlertPropertyMapping": {
"description": "A single alert property mapping to override",
"properties": {
"alertProperty": {
"$ref": "#/definitions/AlertProperty"
},
"value": {
"description": "the column name to use to override this property",
"type": "string"
}
},
"type": "object"
Expand Down Expand Up @@ -1739,6 +1760,63 @@
}
]
}
},
"AlertProperty": {
"description": "The V3 alert property",
"enum": [
"AlertLink",
"ConfidenceLevel",
"ConfidenceScore",
"ExtendedLinks",
"ProductName",
"ProviderName",
"ProductComponentName",
"RemediationSteps",
"Techniques"
],
"type": "string",
"x-ms-enum": {
"modelAsString": true,
"name": "AlertProperty",
"values": [
{
"description": "Alert's link",
"value": "AlertLink"
},
{
"description": "Confidence level property",
"value": "ConfidenceLevel"
},
{
"description": "Confidence score",
"value": "ConfidenceScore"
},
{
"description": "Extended links to the alert",
"value": "ExtendedLinks"
},
{
"description": "Product name alert property",
"value": "ProductName"
},
{
"description": "Provider name alert property",
"value": "ProviderName"
},
{
"description": "Product component name alert property",
"value": "ProductComponentName"
},
{
"description": "Remediation steps alert property",
"value": "RemediationSteps"
},
{
"description": "Techniques alert property",
"value": "Techniques"
}
]
}
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,21 @@
],
"alertDetailsOverride": {
"alertDisplayNameFormat": "Alert from {{Computer}}",
"alertDescriptionFormat": "Suspicious activity was made by {{ComputerIP}}"
"alertDescriptionFormat": "Suspicious activity was made by {{ComputerIP}}",
"alertDynamicProperties": [
{
"alertProperty": "ProductComponentName",
"value": "ProductComponentNameCustomColumn"
},
{
"alertProperty": "ProductName",
"value": "ProductNameCustomColumn"
},
{
"alertProperty": "AlertLink",
"value": "Link"
}
]
},
"incidentConfiguration": {
"createIncident": true,
Expand Down Expand Up @@ -134,8 +148,20 @@
"alertDetailsOverride": {
"alertDisplayNameFormat": "Alert from {{Computer}}",
"alertDescriptionFormat": "Suspicious activity was made by {{ComputerIP}}",
"alertTacticsColumnName": null,
"alertSeverityColumnName": null
"alertDynamicProperties": [
{
"alertProperty": "ProductComponentName",
"value": "ProductComponentNameCustomColumn"
},
{
"alertProperty": "ProductName",
"value": "ProductNameCustomColumn"
},
{
"alertProperty": "AlertLink",
"value": "Link"
}
]
},
"incidentConfiguration": {
"createIncident": true,
Expand Down Expand Up @@ -214,8 +240,20 @@
"alertDetailsOverride": {
"alertDisplayNameFormat": "Alert from {{Computer}}",
"alertDescriptionFormat": "Suspicious activity was made by {{ComputerIP}}",
"alertTacticsColumnName": null,
"alertSeverityColumnName": null
"alertDynamicProperties": [
{
"alertProperty": "ProductComponentName",
"value": "ProductComponentNameCustomColumn"
},
{
"alertProperty": "ProductName",
"value": "ProductNameCustomColumn"
},
{
"alertProperty": "AlertLink",
"value": "Link"
}
]
},
"incidentConfiguration": {
"createIncident": true,
Expand Down