@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.
@@ -30,7 +30,7 @@ import Metrics from '@webex/plugin-meetings/src/metrics';
30
30
  import {
31
31
  FLOOR_ACTION,
32
32
  SHARE_STATUS,
33
- METRICS_OPERATIONAL_MEASURES,
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, 'sendOperationalMetric');
2436
+ sandbox.stub(Metrics, 'sendBehavioralMetric');
2437
2437
  await assert.isRejected(meeting.reconnect());
2438
- assert(Metrics.sendOperationalMetric.calledOnce);
2438
+ assert(Metrics.sendBehavioralMetric.calledOnce);
2439
2439
  assert.calledWith(
2440
- Metrics.sendOperationalMetric,
2441
- METRICS_OPERATIONAL_MEASURES.MEETING_RECONNECT_FAILURE,
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('#sendOperationalMetric', () => {
93
+ describe('#sendBehavioralMetric', () => {
94
94
  it('sends client metric via Metrics plugin', () => {
95
- metrics.sendOperationalMetric('myMetric');
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.sendOperationalMetric('myMetric', data, metadata);
104
+ metrics.sendBehavioralMetric('myMetric', data, metadata);
105
105
 
106
106
  assert.calledWithMatch(
107
107
  mockSubmitMetric,
108
108
  'myMetric',
109
109
  {
110
- type: ['operational'],
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.sendOperationalMetric(),
131
- 'Missing operational metric name. Please provide one'
130
+ () => metrics.sendBehavioralMetric(),
131
+ 'Missing behavioral metric name. Please provide one'
132
132
  );
133
133
  });
134
134
  });