From 018fe792522c146a321f90c6623b1778c50919ff Mon Sep 17 00:00:00 2001 From: Azure SDK Bot Date: Wed, 9 Oct 2019 17:50:47 +0800 Subject: [PATCH] [AutoPR security/resource-manager] Add aggregated alert top devices information (#5960) * Generated from 235fdb6f20c94a84cda7b52321f27336106cc5e5 fix time field * Generated from 83f1e75cc7e010cba6c566f089194374933a0889 fix time field --- .../preview/preview/security/mgmt/security/models.go | 1 + .../preview/security/mgmt/v3.0/security/models.go | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/profiles/preview/preview/security/mgmt/security/models.go b/profiles/preview/preview/security/mgmt/security/models.go index 9c7bccc72a46..cf99cd57bc4e 100644 --- a/profiles/preview/preview/security/mgmt/security/models.go +++ b/profiles/preview/preview/security/mgmt/security/models.go @@ -518,6 +518,7 @@ type IoTSecurityAggregatedAlertList = original.IoTSecurityAggregatedAlertList type IoTSecurityAggregatedAlertListIterator = original.IoTSecurityAggregatedAlertListIterator type IoTSecurityAggregatedAlertListPage = original.IoTSecurityAggregatedAlertListPage type IoTSecurityAggregatedAlertProperties = original.IoTSecurityAggregatedAlertProperties +type IoTSecurityAggregatedAlertPropertiesTopDevicesListItem = original.IoTSecurityAggregatedAlertPropertiesTopDevicesListItem type IoTSecurityAggregatedRecommendation = original.IoTSecurityAggregatedRecommendation type IoTSecurityAggregatedRecommendationList = original.IoTSecurityAggregatedRecommendationList type IoTSecurityAggregatedRecommendationListIterator = original.IoTSecurityAggregatedRecommendationListIterator diff --git a/services/preview/security/mgmt/v3.0/security/models.go b/services/preview/security/mgmt/v3.0/security/models.go index 1f0482eb5644..656cd2a88cbe 100644 --- a/services/preview/security/mgmt/v3.0/security/models.go +++ b/services/preview/security/mgmt/v3.0/security/models.go @@ -4936,6 +4936,18 @@ type IoTSecurityAggregatedAlertProperties struct { ActionTaken *string `json:"actionTaken,omitempty"` // LogAnalyticsQuery - READ-ONLY; Log analytics query for getting the list of affected devices/alerts. LogAnalyticsQuery *string `json:"logAnalyticsQuery,omitempty"` + // TopDevicesList - READ-ONLY; 10 devices with the highest number of occurrences of this alert type, on this day. + TopDevicesList *[]IoTSecurityAggregatedAlertPropertiesTopDevicesListItem `json:"topDevicesList,omitempty"` +} + +// IoTSecurityAggregatedAlertPropertiesTopDevicesListItem ... +type IoTSecurityAggregatedAlertPropertiesTopDevicesListItem struct { + // DeviceID - READ-ONLY; Name of the device. + DeviceID *string `json:"deviceId,omitempty"` + // AlertsCount - READ-ONLY; Number of alerts raised for this device. + AlertsCount *int32 `json:"alertsCount,omitempty"` + // LastOccurrence - READ-ONLY; Most recent time this alert was raised for this device, on this day. + LastOccurrence *string `json:"lastOccurrence,omitempty"` } // IoTSecurityAggregatedRecommendation ioT Security solution recommendation information.