public interface EventsCollectorService
extends org.mule.runtime.api.service.Service
PolicyViolation related to particular events. The violation is kept in this service as long as the
event is alive| Modifier and Type | Method and Description |
|---|---|
void |
addExtraViolationData(String eventId,
Map<String,Object> data)
Adds additional data to the policy violation for an event
|
void |
addPolicyViolation(String eventId,
com.mulesoft.mule.runtime.gw.api.analytics.PolicyViolation violation)
Adds a violation for an event
|
Optional<Map<String,Object>> |
getExtraViolationData(String eventId)
Retrieves additional data associated to a violation of an event
|
Optional<com.mulesoft.mule.runtime.gw.api.analytics.PolicyViolation> |
getPolicyViolation(String eventId)
Retrieves a violation of an event
|
Optional<Map<String,Object>> |
removeExtraViolationData(String eventId)
Removes the additional data associated to a violation of an event
|
Optional<com.mulesoft.mule.runtime.gw.api.analytics.PolicyViolation> |
removePolicyViolation(String eventId)
Removes the violation of an event
|
void addPolicyViolation(String eventId, com.mulesoft.mule.runtime.gw.api.analytics.PolicyViolation violation)
eventId - id of the event related to the policy violationviolation - PolicyViolation that occurred during event executionvoid addExtraViolationData(String eventId, Map<String,Object> data)
eventId - id of the event related to the policy violationdata - set of key-value data related to the policy violation occurrenceOptional<com.mulesoft.mule.runtime.gw.api.analytics.PolicyViolation> getPolicyViolation(String eventId)
eventId - id of the event related to the policy violationPolicyViolation that occurred during event execution or empty if no violation is presentOptional<Map<String,Object>> getExtraViolationData(String eventId)
eventId - id of the event related to the policy violationOptional<com.mulesoft.mule.runtime.gw.api.analytics.PolicyViolation> removePolicyViolation(String eventId)
eventId - id of the event related to the policy violationPolicyViolation that occurred during event execution or empty if no violation is presentCopyright © 2014–2024 MuleSoft, Inc.. All rights reserved.