@webex/plugin-meetings 1.153.4 → 1.154.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants.js +13 -8
- package/dist/constants.js.map +1 -1
- package/dist/meeting/index.js +44 -34
- package/dist/meeting/index.js.map +1 -1
- package/dist/meetings/index.js +8 -1
- package/dist/meetings/index.js.map +1 -1
- package/dist/metrics/config.js +3 -1
- package/dist/metrics/config.js.map +1 -1
- package/dist/metrics/index.js +23 -9
- package/dist/metrics/index.js.map +1 -1
- package/dist/peer-connection-manager/index.js +14 -9
- package/dist/peer-connection-manager/index.js.map +1 -1
- package/dist/reconnection-manager/index.js +1 -1
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/roap/handler.js +4 -4
- package/dist/roap/handler.js.map +1 -1
- package/package.json +5 -5
- package/src/constants.js +12 -6
- package/src/meeting/index.js +75 -62
- package/src/meetings/index.js +14 -3
- package/src/metrics/config.js +1 -0
- package/src/metrics/index.js +23 -9
- package/src/peer-connection-manager/index.js +20 -13
- package/src/reconnection-manager/index.js +3 -3
- package/src/roap/handler.js +5 -5
- package/test/unit/spec/meeting/index.js +5 -5
- package/test/unit/spec/metrics/index.js +6 -6
|
@@ -30,7 +30,7 @@ import Metrics from '@webex/plugin-meetings/src/metrics';
|
|
|
30
30
|
import {
|
|
31
31
|
FLOOR_ACTION,
|
|
32
32
|
SHARE_STATUS,
|
|
33
|
-
|
|
33
|
+
BEHAVIORAL_METRICS,
|
|
34
34
|
MEETING_INFO_FAILURE_REASON,
|
|
35
35
|
PASSWORD_STATUS,
|
|
36
36
|
EVENTS,
|
|
@@ -2433,12 +2433,12 @@ describe('plugin-meetings', () => {
|
|
|
2433
2433
|
});
|
|
2434
2434
|
|
|
2435
2435
|
it('should send metrics on reconnect failure', async () => {
|
|
2436
|
-
sandbox.stub(Metrics, '
|
|
2436
|
+
sandbox.stub(Metrics, 'sendBehavioralMetric');
|
|
2437
2437
|
await assert.isRejected(meeting.reconnect());
|
|
2438
|
-
assert(Metrics.
|
|
2438
|
+
assert(Metrics.sendBehavioralMetric.calledOnce);
|
|
2439
2439
|
assert.calledWith(
|
|
2440
|
-
Metrics.
|
|
2441
|
-
|
|
2440
|
+
Metrics.sendBehavioralMetric,
|
|
2441
|
+
BEHAVIORAL_METRICS.MEETING_RECONNECT_FAILURE,
|
|
2442
2442
|
{
|
|
2443
2443
|
correlation_id: meeting.correlationId,
|
|
2444
2444
|
locus_id: meeting.locusUrl.split('/').pop(),
|
|
@@ -90,9 +90,9 @@ browserOnly(describe)('Meeting metrics', () => {
|
|
|
90
90
|
});
|
|
91
91
|
});
|
|
92
92
|
|
|
93
|
-
describe('#
|
|
93
|
+
describe('#sendBehavioralMetric', () => {
|
|
94
94
|
it('sends client metric via Metrics plugin', () => {
|
|
95
|
-
metrics.
|
|
95
|
+
metrics.sendBehavioralMetric('myMetric');
|
|
96
96
|
|
|
97
97
|
assert.calledOnce(mockSubmitMetric);
|
|
98
98
|
});
|
|
@@ -101,13 +101,13 @@ browserOnly(describe)('Meeting metrics', () => {
|
|
|
101
101
|
const data = {value: 567};
|
|
102
102
|
const metadata = {test: true};
|
|
103
103
|
|
|
104
|
-
metrics.
|
|
104
|
+
metrics.sendBehavioralMetric('myMetric', data, metadata);
|
|
105
105
|
|
|
106
106
|
assert.calledWithMatch(
|
|
107
107
|
mockSubmitMetric,
|
|
108
108
|
'myMetric',
|
|
109
109
|
{
|
|
110
|
-
type: ['
|
|
110
|
+
type: ['behavioral'],
|
|
111
111
|
fields: {
|
|
112
112
|
browser_version: getBrowserVersion(),
|
|
113
113
|
os_version: getOSVersion(),
|
|
@@ -127,8 +127,8 @@ browserOnly(describe)('Meeting metrics', () => {
|
|
|
127
127
|
|
|
128
128
|
it('throws error if no metric name is given', () => {
|
|
129
129
|
assert.throws(
|
|
130
|
-
() => metrics.
|
|
131
|
-
'Missing
|
|
130
|
+
() => metrics.sendBehavioralMetric(),
|
|
131
|
+
'Missing behavioral metric name. Please provide one'
|
|
132
132
|
);
|
|
133
133
|
});
|
|
134
134
|
});
|