@@ -27,26 +27,44 @@ public class MetricTrigger : Monitor.Models.MetricTrigger
27
27
/// </summary>
28
28
public new ComparisonOperationType OperatorProperty
29
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 ( ) ) ;
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
+ }
32
38
}
33
39
34
40
/// <summary>
35
41
/// Gets or sets the Statistic of the Metric Trigger
36
42
/// </summary>
37
43
public new MetricStatisticType Statistic
38
44
{
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 ( ) ) ;
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
+ }
41
53
}
42
54
43
55
/// <summary>
44
56
/// Gets or sets the TimeAggregation of the Metric Trigger
45
57
/// </summary>
46
58
public new TimeAggregationType TimeAggregation
47
59
{
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 ( ) ) ;
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
+ }
50
68
}
51
69
52
70
/// <summary>
0 commit comments