Class FunctionStatsImpl

  • All Implemented Interfaces:
    org.apache.pulsar.common.policies.data.FunctionStats

    public class FunctionStatsImpl
    extends java.lang.Object
    implements org.apache.pulsar.common.policies.data.FunctionStats
    Statistics for Pulsar Function.
    • Field Detail

      • receivedTotal

        public long receivedTotal
        Overall total number of records function received from source.
      • processedSuccessfullyTotal

        public long processedSuccessfullyTotal
        Overall total number of records successfully processed by user function.
      • systemExceptionsTotal

        public long systemExceptionsTotal
        Overall total number of system exceptions thrown.
      • userExceptionsTotal

        public long userExceptionsTotal
        Overall total number of user exceptions thrown.
      • avgProcessLatency

        public java.lang.Double avgProcessLatency
        Average process latency for function.
      • lastInvocation

        public java.lang.Long lastInvocation
        Timestamp of when the function was last invoked by any instance.
    • Constructor Detail

      • FunctionStatsImpl

        public FunctionStatsImpl()
    • Method Detail

      • calculateOverall

        public FunctionStatsImpl calculateOverall()
        Specified by:
        calculateOverall in interface org.apache.pulsar.common.policies.data.FunctionStats
      • decode

        public static FunctionStatsImpl decode​(java.lang.String json)
                                        throws java.io.IOException
        Throws:
        java.io.IOException