Skip to content

Commit 930f309

Browse files
authored
fix issue for monitor (#14364)
1 parent f70d243 commit 930f309

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Monitor/Monitor/Metrics/GetAzureRmMetricCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ protected override void ProcessRecordInternal()
153153
timegrain = null;
154154
}
155155
string metricNames = (this.MetricName != null && this.MetricName.Count() > 0) ? string.Join(",", this.MetricName) : null;
156-
string aggregation = (this.AggregationType != null && this.AggregationType.HasValue) ? this.AggregationType.Value.ToString() : null;
156+
string aggregation = this.AggregationType.HasValue ? this.AggregationType.Value.ToString() : null;
157157
int? top = (this.Top == default(int?)) ? null : this.Top;
158158
string orderBy = (this.OrderBy == default(string)) ? null : this.OrderBy;
159159
ResultType? resultType = (this.ResultType == default(ResultType?)) ? null : this.ResultType;

src/Monitor/Monitor/ScheduledQueryRules/NewScheduledQueryRuleCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ protected override void ProcessRecordInternal()
114114

115115
parameters.Validate();
116116
if (this.ShouldProcess(this.Name,
117-
string.Format("Creating Log Alert Rule '{0}' in resource group {0}", this.Name,
117+
string.Format("Creating Log Alert Rule '{0}' in resource group {1}", this.Name,
118118
this.ResourceGroupName)))
119119
{
120120

src/Monitor/Monitor/ScheduledQueryRules/RemoveScheduledQueryRuleCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected override void ProcessRecordInternal()
8585
}
8686

8787
if (this.ShouldProcess(this.Name,
88-
string.Format("Deleting Log Alert Rule '{0}' in resource group {0}", this.Name,
88+
string.Format("Deleting Log Alert Rule '{0}' in resource group {1}", this.Name,
8989
this.ResourceGroupName)))
9090
{
9191
try

0 commit comments

Comments
 (0)