Skip navigation links
com.newrelic.agent.service.analytics

Class TransactionEventsService

    • Method Detail

      • addHarvestableToService

        public void addHarvestableToService(java.lang.String appName)
      • clearReservoir

        public void clearReservoir()
        Description copied from interface: EventService
        Reset the event reservoir to allow for the next harvest to start
        Specified by:
        clearReservoir in interface EventService
      • isEnabled

        public final boolean isEnabled()
        Description copied from interface: Service
        Is the service enabled.
        Specified by:
        isEnabled in interface Service
        Returns:
        true if the service is enabled
      • doStart

        protected void doStart()
                        throws java.lang.Exception
        Register appropriate listeners.
        Specified by:
        doStart in class AbstractService
        Throws:
        java.lang.Exception
      • doStop

        protected void doStop()
                       throws java.lang.Exception
        Unregister listeners and clear state.
        Specified by:
        doStop in class AbstractService
        Throws:
        java.lang.Exception
      • getMaxSamplesStored

        public int getMaxSamplesStored()
        Description copied from interface: EventService
        Returns the current limit of events to store per harvest interval. For example, if the maximum size for a 60 second harvest is is 10000 events and this service is configured for 5 second harvests this would return 833 (60/5 = 12, 10000/12 = 833).
        Specified by:
        getMaxSamplesStored in interface EventService
        Returns:
        the maximum number of events to store per configured harvest interval
      • setMaxSamplesStored

        public void setMaxSamplesStored(int maxSamplesStored)
        Description copied from interface: EventService
        Update the current limit of events to store per harvest interval.
        Specified by:
        setMaxSamplesStored in interface EventService
        Parameters:
        maxSamplesStored - the new maximum number of events to store per harvest interval.
      • harvestEvents

        public void harvestEvents(java.lang.String appName)
        Description copied from interface: EventService
        Perform the harvest of any pending events right now.
        Specified by:
        harvestEvents in interface EventService
        Parameters:
        appName - the application to harvest for
      • getEventHarvestIntervalMetric

        public java.lang.String getEventHarvestIntervalMetric()
        Description copied from interface: EventService
        Returns the metric name for this service that records the actual interval in which the harvest is happening. This is different from the report period below because it will be the actual time between harvests, rather than the expected time.
        Specified by:
        getEventHarvestIntervalMetric in interface EventService
        Returns:
        harvest interval metric name
      • getReportPeriodInSecondsMetric

        public java.lang.String getReportPeriodInSecondsMetric()
        Description copied from interface: EventService
        Returns the metric name for this service that records the expected report period. This will be the value we get back on connect.
        Specified by:
        getReportPeriodInSecondsMetric in interface EventService
        Returns:
        report period metric name
      • getEventHarvestLimitMetric

        public java.lang.String getEventHarvestLimitMetric()
        Description copied from interface: EventService
        Returns the metric name for this service that records the harvest limit. This will be the value we get back on connect.
        Specified by:
        getEventHarvestLimitMetric in interface EventService
        Returns:
        event harvest limit metric name