From 1e67a5e02ff281a1522605b95ad0bbbf6a3507c0 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot Date: Mon, 7 Oct 2019 11:01:53 +0000 Subject: [PATCH 1/2] Generated from 235fdb6f20c94a84cda7b52321f27336106cc5e5 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..b1d5b2ac4191 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"` + // LastOccurrenceTime - READ-ONLY; Most recent time this alert was raised for this device, on this day. + LastOccurrenceTime *string `json:"lastOccurrenceTime,omitempty"` } // IoTSecurityAggregatedRecommendation ioT Security solution recommendation information. From 2de6357079eaa5ba848662876257033364f93cd8 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot Date: Mon, 7 Oct 2019 11:05:14 +0000 Subject: [PATCH 2/2] Generated from 83f1e75cc7e010cba6c566f089194374933a0889 fix time field --- services/preview/security/mgmt/v3.0/security/models.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/preview/security/mgmt/v3.0/security/models.go b/services/preview/security/mgmt/v3.0/security/models.go index b1d5b2ac4191..656cd2a88cbe 100644 --- a/services/preview/security/mgmt/v3.0/security/models.go +++ b/services/preview/security/mgmt/v3.0/security/models.go @@ -4946,8 +4946,8 @@ type IoTSecurityAggregatedAlertPropertiesTopDevicesListItem struct { DeviceID *string `json:"deviceId,omitempty"` // AlertsCount - READ-ONLY; Number of alerts raised for this device. AlertsCount *int32 `json:"alertsCount,omitempty"` - // LastOccurrenceTime - READ-ONLY; Most recent time this alert was raised for this device, on this day. - LastOccurrenceTime *string `json:"lastOccurrenceTime,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.