File tree Expand file tree Collapse file tree 3 files changed +27
-6
lines changed
src/ResourceManager/Insights/Commands.Insights Expand file tree Collapse file tree 3 files changed +27
-6
lines changed Original file line number Diff line number Diff line change 18
18
- Additional information about change #1
19
19
-->
20
20
## Current Release
21
+ * Fixed issue #7267 (Autoscale area)
22
+ - Issues with creating a new autoscale rule not properly setting enumerated parameters (would always set them to the default value).
21
23
22
24
## Version 5.1.4
23
-
24
25
* Fixed issues #6833 and #7102 (Diagnostic Settings area)
25
26
- Issues with the default name, i.e. "service", during creation and listing/getting of diagnostic settings
26
27
- Issues creating diagnostic settings with categories
Original file line number Diff line number Diff line change @@ -25,17 +25,29 @@ public class MetricTrigger : Monitor.Models.MetricTrigger
25
25
/// <summary>
26
26
/// Gets or sets the OperatorProperty of the Metric Trigger
27
27
/// </summary>
28
- public new ComparisonOperationType OperatorProperty { get ; set ; }
28
+ public new ComparisonOperationType OperatorProperty
29
+ {
30
+ get => ( ComparisonOperationType ) System . Enum . Parse ( typeof ( ComparisonOperationType ) , base . OperatorProperty . ToString ( ) ) ;
31
+ set => base . OperatorProperty = ( Monitor . Models . ComparisonOperationType ) System . Enum . Parse ( typeof ( Monitor . Models . ComparisonOperationType ) , value . ToString ( ) ) ;
32
+ }
29
33
30
34
/// <summary>
31
35
/// Gets or sets the Statistic of the Metric Trigger
32
36
/// </summary>
33
- public new MetricStatisticType Statistic { get ; set ; }
37
+ public new MetricStatisticType Statistic
38
+ {
39
+ get => ( MetricStatisticType ) System . Enum . Parse ( typeof ( MetricStatisticType ) , base . Statistic . ToString ( ) ) ;
40
+ set => base . Statistic = ( Monitor . Models . MetricStatisticType ) System . Enum . Parse ( typeof ( Monitor . Models . MetricStatisticType ) , value . ToString ( ) ) ;
41
+ }
34
42
35
43
/// <summary>
36
44
/// Gets or sets the TimeAggregation of the Metric Trigger
37
45
/// </summary>
38
- public new TimeAggregationType TimeAggregation { get ; set ; }
46
+ public new TimeAggregationType TimeAggregation
47
+ {
48
+ get => ( TimeAggregationType ) System . Enum . Parse ( typeof ( TimeAggregationType ) , base . TimeAggregation . ToString ( ) ) ;
49
+ set => base . TimeAggregation = ( Monitor . Models . TimeAggregationType ) System . Enum . Parse ( typeof ( Monitor . Models . TimeAggregationType ) , value . ToString ( ) ) ;
50
+ }
39
51
40
52
/// <summary>
41
53
/// Initializes a new instance of the MetricTrigger class.
Original file line number Diff line number Diff line change @@ -25,12 +25,20 @@ public class ScaleAction : Monitor.Models.ScaleAction
25
25
/// <summary>
26
26
/// Gets or sets the ScaleType of the scale action
27
27
/// </summary>
28
- public new ScaleType Type { get ; set ; }
28
+ public new ScaleType Type
29
+ {
30
+ get => ( ScaleType ) System . Enum . Parse ( typeof ( ScaleType ) , base . Type . ToString ( ) ) ;
31
+ set => base . Type = ( Monitor . Models . ScaleType ) System . Enum . Parse ( typeof ( Monitor . Models . ScaleType ) , value . ToString ( ) ) ;
32
+ }
29
33
30
34
/// <summary>
31
35
/// Gets or sets the Direction of the scale action
32
36
/// </summary>
33
- public new ScaleDirection Direction { get ; set ; }
37
+ public new ScaleDirection Direction
38
+ {
39
+ get => ( ScaleDirection ) System . Enum . Parse ( typeof ( ScaleDirection ) , base . Direction . ToString ( ) ) ;
40
+ set => base . Direction = ( Monitor . Models . ScaleDirection ) System . Enum . Parse ( typeof ( Monitor . Models . ScaleDirection ) , value . ToString ( ) ) ;
41
+ }
34
42
35
43
/// <summary>
36
44
/// Initializes a new instance of the ScaleAction class.
You can’t perform that action at this time.
0 commit comments