public interface EventService extends Service
Modifier and Type | Method and Description |
---|---|
void |
clearReservoir()
Reset the event reservoir to allow for the next harvest to start
|
java.lang.String |
getEventHarvestIntervalMetric()
Returns the metric name for this service that records the actual interval in which the harvest is happening.
|
java.lang.String |
getEventHarvestLimitMetric()
Returns the metric name for this service that records the harvest limit.
|
int |
getMaxSamplesStored()
Returns the current limit of events to store per harvest interval.
|
java.lang.String |
getReportPeriodInSecondsMetric()
Returns the metric name for this service that records the expected report period.
|
void |
harvestEvents(java.lang.String appName)
Perform the harvest of any pending events right now.
|
void |
setMaxSamplesStored(int maxSamplesStored)
Update the current limit of events to store per harvest interval.
|
getLogger, getName, isEnabled, isStarted, isStartedOrStarting, isStopped, isStoppedOrStopping, start, stop
void harvestEvents(java.lang.String appName)
appName
- the application to harvest forjava.lang.String getEventHarvestIntervalMetric()
java.lang.String getReportPeriodInSecondsMetric()
java.lang.String getEventHarvestLimitMetric()
int getMaxSamplesStored()
void setMaxSamplesStored(int maxSamplesStored)
maxSamplesStored
- the new maximum number of events to store per harvest interval.void clearReservoir()