From 5c875ec417eb5dd88bb2a791837d55f5925b582f Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 18 Sep 2018 18:27:28 +0000 Subject: [PATCH] Generated from 86adb05ccf2d2e4b98d1f7f08fba9aa8ec794405 Update enum order --- profiles/preview/preview/monitor/mgmt/insights/models.go | 1 + .../monitor/mgmt/2017-05-01-preview/insights/models.go | 6 ++++-- services/preview/monitor/mgmt/2018-03-01/insights/models.go | 6 ++++-- services/preview/monitor/mgmt/2018-09-01/insights/models.go | 6 ++++-- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/profiles/preview/preview/monitor/mgmt/insights/models.go b/profiles/preview/preview/monitor/mgmt/insights/models.go index 75c3d95c8efd..0f1bc537a62e 100644 --- a/profiles/preview/preview/monitor/mgmt/insights/models.go +++ b/profiles/preview/preview/monitor/mgmt/insights/models.go @@ -253,6 +253,7 @@ type TimeAggregationType = original.TimeAggregationType const ( TimeAggregationTypeAverage TimeAggregationType = original.TimeAggregationTypeAverage TimeAggregationTypeCount TimeAggregationType = original.TimeAggregationTypeCount + TimeAggregationTypeLast TimeAggregationType = original.TimeAggregationTypeLast TimeAggregationTypeMaximum TimeAggregationType = original.TimeAggregationTypeMaximum TimeAggregationTypeMinimum TimeAggregationType = original.TimeAggregationTypeMinimum TimeAggregationTypeTotal TimeAggregationType = original.TimeAggregationTypeTotal diff --git a/services/preview/monitor/mgmt/2017-05-01-preview/insights/models.go b/services/preview/monitor/mgmt/2017-05-01-preview/insights/models.go index 60e3b677c229..56fddb8063c8 100644 --- a/services/preview/monitor/mgmt/2017-05-01-preview/insights/models.go +++ b/services/preview/monitor/mgmt/2017-05-01-preview/insights/models.go @@ -261,6 +261,8 @@ const ( TimeAggregationTypeAverage TimeAggregationType = "Average" // TimeAggregationTypeCount ... TimeAggregationTypeCount TimeAggregationType = "Count" + // TimeAggregationTypeLast ... + TimeAggregationTypeLast TimeAggregationType = "Last" // TimeAggregationTypeMaximum ... TimeAggregationTypeMaximum TimeAggregationType = "Maximum" // TimeAggregationTypeMinimum ... @@ -271,7 +273,7 @@ const ( // PossibleTimeAggregationTypeValues returns an array of possible values for the TimeAggregationType const type. func PossibleTimeAggregationTypeValues() []TimeAggregationType { - return []TimeAggregationType{TimeAggregationTypeAverage, TimeAggregationTypeCount, TimeAggregationTypeMaximum, TimeAggregationTypeMinimum, TimeAggregationTypeTotal} + return []TimeAggregationType{TimeAggregationTypeAverage, TimeAggregationTypeCount, TimeAggregationTypeLast, TimeAggregationTypeMaximum, TimeAggregationTypeMinimum, TimeAggregationTypeTotal} } // ActionGroup an Azure action group. @@ -1981,7 +1983,7 @@ type MetricTrigger struct { Statistic MetricStatisticType `json:"statistic,omitempty"` // TimeWindow - the range of time in which instance data is collected. This value must be greater than the delay in metric collection, which can vary from resource-to-resource. Must be between 12 hours and 5 minutes. TimeWindow *string `json:"timeWindow,omitempty"` - // TimeAggregation - time aggregation type. How the data that is collected should be combined over time. The default value is Average. Possible values include: 'TimeAggregationTypeAverage', 'TimeAggregationTypeMinimum', 'TimeAggregationTypeMaximum', 'TimeAggregationTypeTotal', 'TimeAggregationTypeCount' + // TimeAggregation - time aggregation type. How the data that is collected should be combined over time. The default value is Average. Possible values include: 'TimeAggregationTypeAverage', 'TimeAggregationTypeMinimum', 'TimeAggregationTypeMaximum', 'TimeAggregationTypeTotal', 'TimeAggregationTypeCount', 'TimeAggregationTypeLast' TimeAggregation TimeAggregationType `json:"timeAggregation,omitempty"` // Operator - the operator that is used to compare the metric data and the threshold. Possible values include: 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual' Operator ComparisonOperationType `json:"operator,omitempty"` diff --git a/services/preview/monitor/mgmt/2018-03-01/insights/models.go b/services/preview/monitor/mgmt/2018-03-01/insights/models.go index 16f560165a63..5cf5d1171284 100644 --- a/services/preview/monitor/mgmt/2018-03-01/insights/models.go +++ b/services/preview/monitor/mgmt/2018-03-01/insights/models.go @@ -467,6 +467,8 @@ const ( TimeAggregationTypeAverage TimeAggregationType = "Average" // TimeAggregationTypeCount ... TimeAggregationTypeCount TimeAggregationType = "Count" + // TimeAggregationTypeLast ... + TimeAggregationTypeLast TimeAggregationType = "Last" // TimeAggregationTypeMaximum ... TimeAggregationTypeMaximum TimeAggregationType = "Maximum" // TimeAggregationTypeMinimum ... @@ -477,7 +479,7 @@ const ( // PossibleTimeAggregationTypeValues returns an array of possible values for the TimeAggregationType const type. func PossibleTimeAggregationTypeValues() []TimeAggregationType { - return []TimeAggregationType{TimeAggregationTypeAverage, TimeAggregationTypeCount, TimeAggregationTypeMaximum, TimeAggregationTypeMinimum, TimeAggregationTypeTotal} + return []TimeAggregationType{TimeAggregationTypeAverage, TimeAggregationTypeCount, TimeAggregationTypeLast, TimeAggregationTypeMaximum, TimeAggregationTypeMinimum, TimeAggregationTypeTotal} } // Unit enumerates the values for unit. @@ -3703,7 +3705,7 @@ type MetricTrigger struct { Statistic MetricStatisticType `json:"statistic,omitempty"` // TimeWindow - the range of time in which instance data is collected. This value must be greater than the delay in metric collection, which can vary from resource-to-resource. Must be between 12 hours and 5 minutes. TimeWindow *string `json:"timeWindow,omitempty"` - // TimeAggregation - time aggregation type. How the data that is collected should be combined over time. The default value is Average. Possible values include: 'TimeAggregationTypeAverage', 'TimeAggregationTypeMinimum', 'TimeAggregationTypeMaximum', 'TimeAggregationTypeTotal', 'TimeAggregationTypeCount' + // TimeAggregation - time aggregation type. How the data that is collected should be combined over time. The default value is Average. Possible values include: 'TimeAggregationTypeAverage', 'TimeAggregationTypeMinimum', 'TimeAggregationTypeMaximum', 'TimeAggregationTypeTotal', 'TimeAggregationTypeCount', 'TimeAggregationTypeLast' TimeAggregation TimeAggregationType `json:"timeAggregation,omitempty"` // Operator - the operator that is used to compare the metric data and the threshold. Possible values include: 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual' Operator ComparisonOperationType `json:"operator,omitempty"` diff --git a/services/preview/monitor/mgmt/2018-09-01/insights/models.go b/services/preview/monitor/mgmt/2018-09-01/insights/models.go index bfc02b451a2d..7841d9863971 100644 --- a/services/preview/monitor/mgmt/2018-09-01/insights/models.go +++ b/services/preview/monitor/mgmt/2018-09-01/insights/models.go @@ -467,6 +467,8 @@ const ( TimeAggregationTypeAverage TimeAggregationType = "Average" // TimeAggregationTypeCount ... TimeAggregationTypeCount TimeAggregationType = "Count" + // TimeAggregationTypeLast ... + TimeAggregationTypeLast TimeAggregationType = "Last" // TimeAggregationTypeMaximum ... TimeAggregationTypeMaximum TimeAggregationType = "Maximum" // TimeAggregationTypeMinimum ... @@ -477,7 +479,7 @@ const ( // PossibleTimeAggregationTypeValues returns an array of possible values for the TimeAggregationType const type. func PossibleTimeAggregationTypeValues() []TimeAggregationType { - return []TimeAggregationType{TimeAggregationTypeAverage, TimeAggregationTypeCount, TimeAggregationTypeMaximum, TimeAggregationTypeMinimum, TimeAggregationTypeTotal} + return []TimeAggregationType{TimeAggregationTypeAverage, TimeAggregationTypeCount, TimeAggregationTypeLast, TimeAggregationTypeMaximum, TimeAggregationTypeMinimum, TimeAggregationTypeTotal} } // Unit enumerates the values for unit. @@ -3728,7 +3730,7 @@ type MetricTrigger struct { Statistic MetricStatisticType `json:"statistic,omitempty"` // TimeWindow - the range of time in which instance data is collected. This value must be greater than the delay in metric collection, which can vary from resource-to-resource. Must be between 12 hours and 5 minutes. TimeWindow *string `json:"timeWindow,omitempty"` - // TimeAggregation - time aggregation type. How the data that is collected should be combined over time. The default value is Average. Possible values include: 'TimeAggregationTypeAverage', 'TimeAggregationTypeMinimum', 'TimeAggregationTypeMaximum', 'TimeAggregationTypeTotal', 'TimeAggregationTypeCount' + // TimeAggregation - time aggregation type. How the data that is collected should be combined over time. The default value is Average. Possible values include: 'TimeAggregationTypeAverage', 'TimeAggregationTypeMinimum', 'TimeAggregationTypeMaximum', 'TimeAggregationTypeTotal', 'TimeAggregationTypeCount', 'TimeAggregationTypeLast' TimeAggregation TimeAggregationType `json:"timeAggregation,omitempty"` // Operator - the operator that is used to compare the metric data and the threshold. Possible values include: 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual' Operator ComparisonOperationType `json:"operator,omitempty"`