Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom details on payload #782

Open
ghost opened this issue Mar 29, 2021 · 0 comments
Open

Custom details on payload #782

ghost opened this issue Mar 29, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 29, 2021

Description

Can we add in custom fields with custom information to allow for more details on the message.

What

MessageFactory. has a map called payload, can we do something this?

    Map<String, String> payload = new HashMap<String, String>();
    payload.put("summary", modelData.event().message());
    payload.put("source", "Graylog:" + modelData.event().sourceStreams());
    payload.put("severity", eventPriority);
    payload.put("timestamp", modelData.event().eventTimestamp().toString());
    payload.put("component", "GraylogAlerts");
    payload.put("group", modelData.event().sourceStreams().toString());
    payload.put("class", "alerts");
    payload.put("details", customDetailsMap.toString());

Why

This will help with event alerting

@ghost ghost added the feature label Mar 29, 2021
@kroepke kroepke added the triaged label Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant