From b008e6a33852f7efc3edcc58d7a890771781a31a Mon Sep 17 00:00:00 2001 From: c8y3 <25362953+c8y3@users.noreply.github.com> Date: Fri, 5 Jan 2024 10:00:55 +0100 Subject: [PATCH] Following coding rules --- .../events/notifications/types/MessageBodyBuilder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/airbus_cyber_security/graylog/events/notifications/types/MessageBodyBuilder.java b/src/main/java/com/airbus_cyber_security/graylog/events/notifications/types/MessageBodyBuilder.java index 6d364ac..d4175ae 100644 --- a/src/main/java/com/airbus_cyber_security/graylog/events/notifications/types/MessageBodyBuilder.java +++ b/src/main/java/com/airbus_cyber_security/graylog/events/notifications/types/MessageBodyBuilder.java @@ -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);