From 846b44d504960fed32827cfbc2ad67c7b584f204 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 14 Mar 2019 17:23:05 -0700 Subject: [PATCH] [AutoPR security/resource-manager] Correlation Key property added (#4247) * Generated from 566b64da8e05aef201e8e3537edcd0c47530e360 typo fix * Generated from e620762eee468dab30a0eac68387dbaaed34cdc3 tabs switched to spaces + description changed to be more informative --- services/preview/security/mgmt/v1.0/security/models.go | 5 +++++ services/preview/security/mgmt/v2.0/security/models.go | 5 +++++ 2 files changed, 10 insertions(+) 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) }