Class NullMetricCollector

    • Constructor Detail

      • NullMetricCollector

        public NullMetricCollector()
    • Method Detail

      • onInvokeByEventSuccess

        public void onInvokeByEventSuccess​(String externalSystem,
                                           double requestDurationInSec,
                                           String event,
                                           String accountId)
        Description copied from interface: MetricCollector
        Is invoked when a lambda is invoked by event successfully
        Specified by:
        onInvokeByEventSuccess in interface MetricCollector
        Parameters:
        externalSystem - the name of the external system doing the invocation
        requestDurationInSec - time the request took in seconds
        event - the event that was used for the invocation i.e. all functions implementing this event were called
        accountId - AccountId related to function call
      • onInvokeByEventFailure

        public void onInvokeByEventFailure​(String externalSystem,
                                           double requestDurationInSec,
                                           String event,
                                           String accountId,
                                           int statusCode,
                                           Exception ex)
        Description copied from interface: MetricCollector
        Is invoked when a lambda invocation by event fails
        Specified by:
        onInvokeByEventFailure in interface MetricCollector
        Parameters:
        externalSystem - the name of the external system doing the invocation
        requestDurationInSec - time the request took in seconds
        event - the event that was used for the invocation i.e. all functions implementing this event were called
        accountId - AccountId related to function call
        ex - Exception that caused the program to fail
      • onInvokeByUUIDSuccess

        public void onInvokeByUUIDSuccess​(String externalSystem,
                                          double requestDurationInSec,
                                          String UUID,
                                          String accountId)
        Description copied from interface: MetricCollector
        is invoked when a lambda Invocation by UUID is successfull
        Specified by:
        onInvokeByUUIDSuccess in interface MetricCollector
        Parameters:
        externalSystem - the name of the external system doing the invocation
        requestDurationInSec - time the request took in seconds
        UUID - UUID of function that was invoked
        accountId - AccountId related to function call
      • onInvokeByUUIDFailure

        public void onInvokeByUUIDFailure​(String externalSystem,
                                          double requestDurationInSec,
                                          String UUID,
                                          String accountId,
                                          int statusCode,
                                          Exception ex)
        Description copied from interface: MetricCollector
        is invoked when a lambda Invocation by UUID fails
        Specified by:
        onInvokeByUUIDFailure in interface MetricCollector
        Parameters:
        externalSystem - the name of the external system doing the invocation
        requestDurationInSec - time the request took in seconds
        UUID - UUID of function that was invoked
        accountId - AccountId related to function call
        ex - Exception that caused the program to fail
      • onGetLambdasSuccess

        public void onGetLambdasSuccess​(String userId,
                                        double requestDurationInSec,
                                        String accountId)
        Description copied from interface: MetricCollector
        is invoked when all lambdas are retrieved successfully
        Specified by:
        onGetLambdasSuccess in interface MetricCollector
        Parameters:
        userId - User Id related to account for which lambdas are retrieved
        requestDurationInSec - time the request took in seconds
        accountId - AccountId related to function call
      • onGetLambdasFailure

        public void onGetLambdasFailure​(String userId,
                                        double requestDurationInSec,
                                        String accountId,
                                        int statusCode,
                                        Exception ex)
        Description copied from interface: MetricCollector
        is invoked when retrieval of lambdas failed
        Specified by:
        onGetLambdasFailure in interface MetricCollector
        Parameters:
        userId - User Id related to account for which lambdas are retrieved
        requestDurationInSec - time the request took in seconds
        accountId - AccountId related to function call
        ex - Exception that caused the program to fail
      • onIsImplementedSuccess

        public void onIsImplementedSuccess​(String externalSystem,
                                           double requestDurationInSc,
                                           String event,
                                           String accountId)
        Description copied from interface: MetricCollector
        is invoked when implementation of a specific event is successfully inquired
        Specified by:
        onIsImplementedSuccess in interface MetricCollector
        Parameters:
        externalSystem - the name of the external system doing the invocation
        requestDurationInSc - time the request took in seconds
        event - event for which it was verified whether any lambdas implementing it exist
        accountId - AccountId related to function call
      • onIsImplementedFailure

        public void onIsImplementedFailure​(String externalSystem,
                                           double requestDurationInSc,
                                           String event,
                                           String accountId,
                                           int statusCode,
                                           Exception ex)
        Description copied from interface: MetricCollector
        is invoked when implementation of a specific event is unsuccessfully inquired
        Specified by:
        onIsImplementedFailure in interface MetricCollector
        Parameters:
        externalSystem - the name of the external system doing the invocation
        requestDurationInSc - time the request took in seconds
        event - event for which it was verified whether any lambdas implementing it exist
        accountId - AccountId related to function call
        ex - Exception that caused the program to fail