Graylog2 / Graylog2/graylog-plugin-integrations

Pager Duty Additional fields

Open
#1,157 2 comments 0 reactions 0 assignees View on GitHub
feature triaged
Dominant language
Java
Stars
17
Forks
14
PR merge metrics
No merged PRs in 30d

Description

# Description
When using the pager duty plugin, there is not enough information in the payload to include extra fields. This change / patch allows for extra information to be placed in the org/graylog/integrations/pagerduty/client/MessageFactory.java class at line 87 - 98

## What
ImmutableList immutableList = modelData.backlog();
StringBuilder stringBuilder = new StringBuilder();
for (Object objectSummary : immutableList) {
MessageSummary summary = (MessageSummary)objectSummary;
String message = summary.getMessage();
stringBuilder.append(message);
stringBuilder.append("\n");
}
String messageDetails = stringBuilder.toString();

payload.put("custom_details", messageDetails);

## Why

Having this custom field allows for clients to publish critical information on the alerts to better route them.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.