Class NullMetricCollector
- java.lang.Object
-
- com.liveperson.faas.metriccollector.NullMetricCollector
-
- All Implemented Interfaces:
MetricCollector
public class NullMetricCollector extends Object implements MetricCollector
-
-
Constructor Summary
Constructors Constructor Description NullMetricCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonGetLambdasFailure(String userId, double requestDurationInSec, String accountId, int statusCode, Exception ex)is invoked when retrieval of lambdas failedvoidonGetLambdasSuccess(String userId, double requestDurationInSec, String accountId)is invoked when all lambdas are retrieved successfullyvoidonInvokeByEventFailure(String externalSystem, double requestDurationInSec, String event, String accountId, int statusCode, Exception ex)Is invoked when a lambda invocation by event failsvoidonInvokeByEventSuccess(String externalSystem, double requestDurationInSec, String event, String accountId)Is invoked when a lambda is invoked by event successfullyvoidonInvokeByUUIDFailure(String externalSystem, double requestDurationInSec, String UUID, String accountId, int statusCode, Exception ex)is invoked when a lambda Invocation by UUID failsvoidonInvokeByUUIDSuccess(String externalSystem, double requestDurationInSec, String UUID, String accountId)is invoked when a lambda Invocation by UUID is successfullvoidonIsImplementedFailure(String externalSystem, double requestDurationInSc, String event, String accountId, int statusCode, Exception ex)is invoked when implementation of a specific event is unsuccessfully inquiredvoidonIsImplementedSuccess(String externalSystem, double requestDurationInSc, String event, String accountId)is invoked when implementation of a specific event is successfully inquired
-
-
-
Method Detail
-
onInvokeByEventSuccess
public void onInvokeByEventSuccess(String externalSystem, double requestDurationInSec, String event, String accountId)
Description copied from interface:MetricCollectorIs invoked when a lambda is invoked by event successfully- Specified by:
onInvokeByEventSuccessin interfaceMetricCollector- Parameters:
externalSystem- the name of the external system doing the invocationrequestDurationInSec- time the request took in secondsevent- the event that was used for the invocation i.e. all functions implementing this event were calledaccountId- 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:MetricCollectorIs invoked when a lambda invocation by event fails- Specified by:
onInvokeByEventFailurein interfaceMetricCollector- Parameters:
externalSystem- the name of the external system doing the invocationrequestDurationInSec- time the request took in secondsevent- the event that was used for the invocation i.e. all functions implementing this event were calledaccountId- AccountId related to function callex- Exception that caused the program to fail
-
onInvokeByUUIDSuccess
public void onInvokeByUUIDSuccess(String externalSystem, double requestDurationInSec, String UUID, String accountId)
Description copied from interface:MetricCollectoris invoked when a lambda Invocation by UUID is successfull- Specified by:
onInvokeByUUIDSuccessin interfaceMetricCollector- Parameters:
externalSystem- the name of the external system doing the invocationrequestDurationInSec- time the request took in secondsUUID- UUID of function that was invokedaccountId- 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:MetricCollectoris invoked when a lambda Invocation by UUID fails- Specified by:
onInvokeByUUIDFailurein interfaceMetricCollector- Parameters:
externalSystem- the name of the external system doing the invocationrequestDurationInSec- time the request took in secondsUUID- UUID of function that was invokedaccountId- AccountId related to function callex- Exception that caused the program to fail
-
onGetLambdasSuccess
public void onGetLambdasSuccess(String userId, double requestDurationInSec, String accountId)
Description copied from interface:MetricCollectoris invoked when all lambdas are retrieved successfully- Specified by:
onGetLambdasSuccessin interfaceMetricCollector- Parameters:
userId- User Id related to account for which lambdas are retrievedrequestDurationInSec- time the request took in secondsaccountId- AccountId related to function call
-
onGetLambdasFailure
public void onGetLambdasFailure(String userId, double requestDurationInSec, String accountId, int statusCode, Exception ex)
Description copied from interface:MetricCollectoris invoked when retrieval of lambdas failed- Specified by:
onGetLambdasFailurein interfaceMetricCollector- Parameters:
userId- User Id related to account for which lambdas are retrievedrequestDurationInSec- time the request took in secondsaccountId- AccountId related to function callex- Exception that caused the program to fail
-
onIsImplementedSuccess
public void onIsImplementedSuccess(String externalSystem, double requestDurationInSc, String event, String accountId)
Description copied from interface:MetricCollectoris invoked when implementation of a specific event is successfully inquired- Specified by:
onIsImplementedSuccessin interfaceMetricCollector- Parameters:
externalSystem- the name of the external system doing the invocationrequestDurationInSc- time the request took in secondsevent- event for which it was verified whether any lambdas implementing it existaccountId- 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:MetricCollectoris invoked when implementation of a specific event is unsuccessfully inquired- Specified by:
onIsImplementedFailurein interfaceMetricCollector- Parameters:
externalSystem- the name of the external system doing the invocationrequestDurationInSc- time the request took in secondsevent- event for which it was verified whether any lambdas implementing it existaccountId- AccountId related to function callex- Exception that caused the program to fail
-
-