@atlaskit/editor-plugin-ncs-step-metrics
Version:
NcsStepMetrics plugin for @atlaskit/editor-core
19 lines (18 loc) • 631 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getPayload = void 0;
var _analytics = require("@atlaskit/editor-common/analytics");
/**
* Transforms the session step metrics into a payload for analytics.
* @param sessionStepMetrics - The session step metrics to be sent as an analytics event.
*/
var getPayload = exports.getPayload = function getPayload(sessionStepMetrics) {
return {
action: _analytics.ACTION.NCS_SESSION_STEP_METRICS,
actionSubject: _analytics.ACTION_SUBJECT.COLLAB,
attributes: sessionStepMetrics,
eventType: _analytics.EVENT_TYPE.OPERATIONAL
};
};
;