Skip to content

Commit

Permalink
fix: Fix the variable key in the alarm notification delivery template (
Browse files Browse the repository at this point in the history
  • Loading branch information
wzh425 authored Apr 16, 2024
1 parent ba63fca commit a70ae36
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ private async Task AddLogVariablesAsync(AlarmRule alarmRule, Dictionary<string,

foreach (var resource in log.Resource)
{
variables.TryAdd($"{prefix}.{nameof(log.Resource)}.{nameof(resource.Key)}", resource.Value);
variables.TryAdd($"{prefix}.{nameof(log.Resource)}.{resource.Key}", resource.Value);
}

foreach (var attribute in log.Attributes)
{
variables.TryAdd($"{prefix}.{nameof(log.Attributes)}.{nameof(attribute.Key)}", attribute.Value);
variables.TryAdd($"{prefix}.{nameof(log.Attributes)}.{attribute.Key}", attribute.Value);
}
}
}

0 comments on commit a70ae36

Please sign in to comment.