Skip to content
This repository has been archived by the owner on Jan 17, 2022. It is now read-only.

Added summary from hits collection #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

robbanp
Copy link

@robbanp robbanp commented Jul 29, 2016

So, we can get a brief summary of the alert messages in the incident alarm

Closes #4

@jalogisch
Copy link

@robbanp if you would sign the CLA we could merge that PR - if not it will be closed in a week.

thanks

@robbanp
Copy link
Author

robbanp commented Mar 13, 2018

@jalogisch CLA? :)

@joschi
Copy link
Contributor

joschi commented Mar 13, 2018

@robbanp
Copy link
Author

robbanp commented Mar 13, 2018

@jalogisch Done!

@joschi
Copy link
Contributor

joschi commented Mar 13, 2018

✅ Confirmed that the CLA has been signed on Jul 17, 2017 3:14:49 PM (probably in the Graylog2 organization instead of graylog-labs).

@@ -7,7 +7,7 @@

<groupId>org.graylog.plugins</groupId>
<artifactId>graylog-plugin-pagerduty</artifactId>
<version>1.3.1-SNAPSHOT</version>
<version>1.3.2-SNAPSHOT</version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert this unrelated change.

@@ -50,7 +50,7 @@ public URI getURL() {

@Override
public Version getVersion() {
return new Version(1, 3, 1, "SNAPSHOT");
return new Version(1, 3, 2, "SNAPSHOT");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert this unrelated change.

@@ -154,13 +154,15 @@ private PagerDutyEvent buildPagerDutyEvent(final Stream stream, final AlertCondi
final String description = "[ " + stream.getTitle() + " ] " + checkResult.getResultDescription() + " - "
+ buildStreamLink(clientUrl, stream);

final List<Message> backlog_items = getAlarmBacklog(checkResult);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use camelCase for variable names, e. g. backlogItems and backlogSummary.

for (Message message : messages) {
final String msg = message.getMessage();
if (msg.length() > 225) {
sb.append("Message: {").append(msg.substring(0, 255)).append("... } ");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this use the same number in the condition (225) and inside the block (255)?

@joschi joschi self-assigned this Mar 13, 2018
@jalogisch
Copy link

@robbanp will you work on the suggestions?

@robbanp
Copy link
Author

robbanp commented Mar 23, 2018

@jalogisch I can

@joschi
Copy link
Contributor

joschi commented Jun 8, 2018

@robbanp Any news here?

@joschi joschi removed their assignment Aug 1, 2019
@CLAassistant
Copy link

CLAassistant commented Sep 17, 2019

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Robert Pohl seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

See message details in incident?
4 participants