com.airbus_cyber_security.graylog.alert.bundles.ExportAlertRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graylog-plugin-alert-wizard Show documentation
Show all versions of graylog-plugin-alert-wizard Show documentation
Graylog ${project.artifactId} plugin.
package com.airbus_cyber_security.graylog.alert.bundles;
import com.airbus_cyber_security.graylog.alert.AlertRuleStreamImpl;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.auto.value.AutoValue;
import javax.annotation.Nullable;
import javax.validation.constraints.NotNull;
import java.util.Map;
@AutoValue
@JsonAutoDetect
public abstract class ExportAlertRule {
@JsonProperty("title")
@NotNull
public abstract String getTitle();
@JsonProperty("notification_parameters")
public abstract Map notificationParameters();
@JsonProperty("description")
@Nullable
public abstract String getDescription();
@JsonProperty("condition_type")
@Nullable
public abstract String getConditionType();
@JsonProperty("condition_parameters")
public abstract Map conditionParameters();
@JsonProperty("stream")
public abstract AlertRuleStreamImpl getStream();
@JsonProperty("second_stream")
@Nullable
public abstract AlertRuleStreamImpl getSecondStream();
@JsonCreator
public static ExportAlertRule create(@JsonProperty("title") String title,
@JsonProperty("notification_parameters") Map notificationParameters,
@JsonProperty("description") String description,
@JsonProperty("condition_type") String conditionType,
@JsonProperty("condition_parameters") Map conditionParameters,
@JsonProperty("stream") AlertRuleStreamImpl stream,
@JsonProperty("second_stream") AlertRuleStreamImpl stream2) {
return new AutoValue_ExportAlertRule(title, notificationParameters, description, conditionType, conditionParameters, stream, stream2);
}
}