Class AlertWriterES
java.lang.Object
io.camunda.optimize.service.db.es.writer.AlertWriterES
- All Implemented Interfaces:
AlertWriter
@Component
@Conditional(io.camunda.optimize.service.util.configuration.condition.ElasticSearchCondition.class)
public class AlertWriterES
extends Object
implements AlertWriter
-
Constructor Summary
ConstructorsConstructorDescriptionAlertWriterES(OptimizeElasticsearchClient esClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, TaskRepositoryES taskRepositoryES) -
Method Summary
Modifier and TypeMethodDescriptioncreateAlert(AlertDefinitionDto alertDefinitionDto) voiddeleteAlert(String alertId) voiddeleteAlerts(List<String> alertIds) voiddeleteAlertsForReport(String reportId) Delete all alerts that are associated with following report IDvoidupdateAlert(AlertDefinitionDto alertUpdate) voidwriteAlertTriggeredStatus(boolean alertStatus, String alertId)
-
Constructor Details
-
AlertWriterES
public AlertWriterES(OptimizeElasticsearchClient esClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, TaskRepositoryES taskRepositoryES)
-
-
Method Details
-
createAlert
- Specified by:
createAlertin interfaceAlertWriter
-
updateAlert
- Specified by:
updateAlertin interfaceAlertWriter
-
deleteAlert
- Specified by:
deleteAlertin interfaceAlertWriter
-
deleteAlerts
- Specified by:
deleteAlertsin interfaceAlertWriter
-
deleteAlertsForReport
Delete all alerts that are associated with following report ID- Specified by:
deleteAlertsForReportin interfaceAlertWriter
-
writeAlertTriggeredStatus
- Specified by:
writeAlertTriggeredStatusin interfaceAlertWriter
-