new MetricsService()
Should not be called by the developer.
- Source:
Methods
-
clearFlowTag()
-
This method will clear the flow tag set by the user previously.
- Source:
-
flushEvents()
-
This method will send the buffered events to the server at once.
- Source:
-
getEventsInBuffer() → {object}
-
This method will return the a List of the buffered events.
- Source:
Returns:
events - list of events stored in buffer.- Type
- object
-
getFlowTag() → {string}
-
This method will return the a String to set a Flow Tag for the reported events.
- Source:
Returns:
flowTag - flow tag set by the user for reporting the events.- Type
- string
-
getSessionId()
-
get the current sessionID
- Source:
-
getUserId()
-
invoke the getUserId operation
- Source:
-
reportError(errorCode, errorType, errorMessage, errorDetails)
-
This method takes the event details from the developer and schedule it for sending to server as per Configuration values set by the developer.
Parameters:
Name Type Description errorCodestring errorCode of the reported error. Can be empty if not applicable errorTypestring errorType of the reported error. Can be empty if not applicable errorMessagestring errorMessage of the reported error. Can be empty if not applicable errorDetailsjson errorDetails of the reported error as a json string that can have key-value pairs for the following keys errfile, errmethod, errline, errstacktrace, formID, widgetID, flowTag. - Source:
Throws:
Exception -
reportHandledException(exceptionCode, exceptionType, exceptionMessage, exceptionDetails)
-
This method takes the event details from the developer and schedule it for sending to server as per Configuration values set by the developer.
Parameters:
Name Type Description exceptionCodestring Code for the reported exception. Can be empty if not applicable exceptionTypestring Type of the reported exception. Can be empty if not applicable exceptionMessagestring Message of the reported exception. Can be empty if not applicable exceptionDetailsjson Details of the reported exception as a JSON string that can have key-value pairs for the following keys exceptioncode, exceptionfile, exceptionmethod, exceptionline, exceptionstacktrace, formID, widgetID, flowTag. - Source:
Throws:
Exception -
sendCustomMetrics(reportingGroupID, metrics)
-
invoke the sendCustomMetrics operation
Parameters:
Name Type Description reportingGroupIDstring reporting Group ID metricsobject metrics being reported - Source:
-
sendEvent(evttype, evtSubType, formID, widgetID, flowTag, metaData)
-
This method takes the event details from the developer and schedule it for sending to server as per Configuration values set by the developer.
Parameters:
Name Type Description evttypestring Event Type for the reported event. evtSubTypestring string literal for eventSubType(max 256 Chars) formIDstring string literal for formID(max 256 Chars) widgetIDstring string literal for widgetID(max 256 Chars) flowTagstring string literal to override flow tag (max 256 Chars) metaDatastring string to describe metaData - Source:
Throws:
Exception -
setEventConfig(confType, eventBufferAutoFlushCount, eventBufferMaxCount)
-
This method will take the required values to set the event Configuration values.
Parameters:
Name Type Description confTypestring sets the Current Configuration Type possible values BUFFER or INSTANT. eventBufferAutoFlushCountnumber event buffer count to auto flush the events possible values any positive integer Default value 15 eventBufferMaxCountnumber Maximum event buffer count to store the events possible values any positive integer Default value 1000 - Source:
-
setEventTracking()
-
stub method used for event tracking
- Source:
-
setFlowTag(flowTag)
-
This method will take the a String to set a Flow Tag for the reported events.
Parameters:
Name Type Description flowTagstring sets flow tag for reporting the events. - Source:
-
setSessionId(sessionId)
-
sets the current sessionId
Parameters:
Name Type Description sessionIdstring - Source: