com.airbus_cyber_security.graylog.alert.AlertRuleService 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;
import com.airbus_cyber_security.graylog.alert.bundles.ExportAlertRule;
import com.airbus_cyber_security.graylog.alert.rest.models.requests.AlertRuleRequest;
import com.mongodb.MongoException;
import org.graylog2.database.NotFoundException;
import java.io.UnsupportedEncodingException;
import java.util.List;
public interface AlertRuleService {
long count();
AlertRule update(String title, AlertRule alert);
AlertRule create(AlertRule alert);
List all();
int destroy(String alertTitle) throws MongoException, UnsupportedEncodingException;
AlertRule load(String title) throws NotFoundException;
boolean isPresent(String title);
boolean isValidRequest(AlertRuleRequest request);
boolean isValidImportRequest(ExportAlertRule request);
}