public class CompatibilityEventsCollectorService extends Object implements EventsCollectorService
| Constructor and Description |
|---|
CompatibilityEventsCollectorService() |
| 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
|
String |
getName() |
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
|
public String getName()
getName in interface org.mule.runtime.api.meta.NamedObjectpublic void addPolicyViolation(String eventId, com.mulesoft.mule.runtime.gw.api.analytics.PolicyViolation violation)
EventsCollectorServiceaddPolicyViolation in interface EventsCollectorServiceeventId - id of the event related to the policy violationviolation - PolicyViolation that occurred during event executionpublic void addExtraViolationData(String eventId, Map<String,Object> data)
EventsCollectorServiceaddExtraViolationData in interface EventsCollectorServiceeventId - id of the event related to the policy violationdata - set of key-value data related to the policy violation occurrencepublic Optional<com.mulesoft.mule.runtime.gw.api.analytics.PolicyViolation> getPolicyViolation(String eventId)
EventsCollectorServicegetPolicyViolation in interface EventsCollectorServiceeventId - id of the event related to the policy violationPolicyViolation that occurred during event execution or empty if no violation is presentpublic Optional<Map<String,Object>> getExtraViolationData(String eventId)
EventsCollectorServicegetExtraViolationData in interface EventsCollectorServiceeventId - id of the event related to the policy violationpublic Optional<com.mulesoft.mule.runtime.gw.api.analytics.PolicyViolation> removePolicyViolation(String eventId)
EventsCollectorServiceremovePolicyViolation in interface EventsCollectorServiceeventId - id of the event related to the policy violationPolicyViolation that occurred during event execution or empty if no violation is presentpublic Optional<Map<String,Object>> removeExtraViolationData(String eventId)
EventsCollectorServiceremoveExtraViolationData in interface EventsCollectorServiceeventId - id of the event related to the policy violationCopyright © 2014–2024 MuleSoft, Inc.. All rights reserved.