diff --git a/services/preview/security/mgmt/v1.0/security/models.go b/services/preview/security/mgmt/v1.0/security/models.go index 53ad84f7a5ef..6edbc07f29ac 100644 --- a/services/preview/security/mgmt/v1.0/security/models.go +++ b/services/preview/security/mgmt/v1.0/security/models.go @@ -764,6 +764,8 @@ type AlertProperties struct { InstanceID *string `json:"instanceId,omitempty"` // WorkspaceArmID - Azure resource ID of the workspace that the alert was reported to. WorkspaceArmID *string `json:"workspaceArmId,omitempty"` + // CorrelationKey - Alerts with the same CorrelationKey will be grouped together in Ibiza. + CorrelationKey *string `json:"correlationKey,omitempty"` } // MarshalJSON is the custom marshaler for AlertProperties. @@ -835,6 +837,9 @@ func (ap AlertProperties) MarshalJSON() ([]byte, error) { if ap.WorkspaceArmID != nil { objectMap["workspaceArmId"] = ap.WorkspaceArmID } + if ap.CorrelationKey != nil { + objectMap["correlationKey"] = ap.CorrelationKey + } return json.Marshal(objectMap) } diff --git a/services/preview/security/mgmt/v2.0/security/models.go b/services/preview/security/mgmt/v2.0/security/models.go index 885cc3123c2c..d2ffb417460b 100644 --- a/services/preview/security/mgmt/v2.0/security/models.go +++ b/services/preview/security/mgmt/v2.0/security/models.go @@ -764,6 +764,8 @@ type AlertProperties struct { InstanceID *string `json:"instanceId,omitempty"` // WorkspaceArmID - Azure resource ID of the workspace that the alert was reported to. WorkspaceArmID *string `json:"workspaceArmId,omitempty"` + // CorrelationKey - Alerts with the same CorrelationKey will be grouped together in Ibiza. + CorrelationKey *string `json:"correlationKey,omitempty"` } // MarshalJSON is the custom marshaler for AlertProperties. @@ -835,6 +837,9 @@ func (ap AlertProperties) MarshalJSON() ([]byte, error) { if ap.WorkspaceArmID != nil { objectMap["workspaceArmId"] = ap.WorkspaceArmID } + if ap.CorrelationKey != nil { + objectMap["correlationKey"] = ap.CorrelationKey + } return json.Marshal(objectMap) }