Skip to content

Commit

Permalink
Following coding rules
Browse files Browse the repository at this point in the history
  • Loading branch information
c8y3 committed Jan 5, 2024
1 parent c953d45 commit b008e6a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ private String getValuesAggregationField(MessageSummary messageSummary, LoggingN
return valuesAggregationField.toString();
}

private LoggingAlertFields buildLoggingAlertFields(EventNotificationContext ctx, LoggingNotificationConfig config, LoggingAlertConfig generalConfig, DateTime date, MessageSummary messageSummary) {
private LoggingAlertFields buildLoggingAlertFields(EventNotificationContext context, LoggingNotificationConfig config, LoggingAlertConfig generalConfig, DateTime date, MessageSummary messageSummary) {
String key = getValuesAggregationField(messageSummary, config);
LoggingAlertFields fields = this.loggingAlertFieldsCache.get(key);
if (fields != null) {
return fields;
}

String messagesUrl = this.messagesURLBuilder.buildMessagesUrl(ctx, config.splitFields(), messageSummary, date);
String loggingAlertID = getAlertIDWithSuffix(config.aggregationTime(), generalConfig, ctx, key);
String messagesUrl = this.messagesURLBuilder.buildMessagesUrl(context, config.splitFields(), messageSummary, date);
String loggingAlertID = getAlertIDWithSuffix(config.aggregationTime(), generalConfig, context, key);

fields = new LoggingAlertFields(loggingAlertID, config.severity().getType(), date, messagesUrl);
this.loggingAlertFieldsCache.put(key, fields);
Expand Down

0 comments on commit b008e6a

Please sign in to comment.