File tree Expand file tree Collapse file tree 3 files changed +57
-6
lines changed
src/ResourceManager/Insights/Commands.Insights Expand file tree Collapse file tree 3 files changed +57
-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
* Fixed issue #7513 [ Insights] Set-AzureRMDiagnosticSetting requires explicit specification of categories during creation of setting
23
25
- Now the cmdlet does not require explicit indication of the categories to enable during creation, i.e. it works as it is documented
24
26
25
27
## Version 5.1.4
26
-
27
28
* Fixed issues #6833 and #7102 (Diagnostic Settings area)
28
29
- Issues with the default name, i.e. "service", during creation and listing/getting of diagnostic settings
29
30
- Issues creating diagnostic settings with categories
Original file line number Diff line number Diff line change @@ -25,17 +25,47 @@ 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
31
+ {
32
+ return ( ComparisonOperationType ) System . Enum . Parse ( typeof ( ComparisonOperationType ) , base . OperatorProperty . ToString ( ) ) ;
33
+ }
34
+ set
35
+ {
36
+ base . OperatorProperty = ( Monitor . Models . ComparisonOperationType ) System . Enum . Parse ( typeof ( Monitor . Models . ComparisonOperationType ) , value . ToString ( ) ) ;
37
+ }
38
+ }
29
39
30
40
/// <summary>
31
41
/// Gets or sets the Statistic of the Metric Trigger
32
42
/// </summary>
33
- public new MetricStatisticType Statistic { get ; set ; }
43
+ public new MetricStatisticType Statistic
44
+ {
45
+ get
46
+ {
47
+ return ( MetricStatisticType ) System . Enum . Parse ( typeof ( MetricStatisticType ) , base . Statistic . ToString ( ) ) ;
48
+ }
49
+ set
50
+ {
51
+ base . Statistic = ( Monitor . Models . MetricStatisticType ) System . Enum . Parse ( typeof ( Monitor . Models . MetricStatisticType ) , value . ToString ( ) ) ;
52
+ }
53
+ }
34
54
35
55
/// <summary>
36
56
/// Gets or sets the TimeAggregation of the Metric Trigger
37
57
/// </summary>
38
- public new TimeAggregationType TimeAggregation { get ; set ; }
58
+ public new TimeAggregationType TimeAggregation
59
+ {
60
+ get
61
+ {
62
+ return ( TimeAggregationType ) System . Enum . Parse ( typeof ( TimeAggregationType ) , base . TimeAggregation . ToString ( ) ) ;
63
+ }
64
+ set
65
+ {
66
+ base . TimeAggregation = ( Monitor . Models . TimeAggregationType ) System . Enum . Parse ( typeof ( Monitor . Models . TimeAggregationType ) , value . ToString ( ) ) ;
67
+ }
68
+ }
39
69
40
70
/// <summary>
41
71
/// Initializes a new instance of the MetricTrigger class.
Original file line number Diff line number Diff line change @@ -25,12 +25,32 @@ 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
31
+ {
32
+ return ( ScaleType ) System . Enum . Parse ( typeof ( ScaleType ) , base . Type . ToString ( ) ) ;
33
+ }
34
+ set
35
+ {
36
+ base . Type = ( Monitor . Models . ScaleType ) System . Enum . Parse ( typeof ( Monitor . Models . ScaleType ) , value . ToString ( ) ) ;
37
+ }
38
+ }
29
39
30
40
/// <summary>
31
41
/// Gets or sets the Direction of the scale action
32
42
/// </summary>
33
- public new ScaleDirection Direction { get ; set ; }
43
+ public new ScaleDirection Direction
44
+ {
45
+ get
46
+ {
47
+ return ( ScaleDirection ) System . Enum . Parse ( typeof ( ScaleDirection ) , base . Direction . ToString ( ) ) ;
48
+ }
49
+ set
50
+ {
51
+ base . Direction = ( Monitor . Models . ScaleDirection ) System . Enum . Parse ( typeof ( Monitor . Models . ScaleDirection ) , value . ToString ( ) ) ;
52
+ }
53
+ }
34
54
35
55
/// <summary>
36
56
/// Initializes a new instance of the ScaleAction class.
You can’t perform that action at this time.
0 commit comments