@webex/internal-plugin-metrics
Advanced tools
Comparing version 3.0.0-beta.400 to 3.0.0-beta.401
@@ -495,2 +495,12 @@ "use strict"; | ||
/** | ||
* Total latency for all refresh captcha requests. | ||
*/ | ||
}, { | ||
key: "getRefreshCaptchaReqResp", | ||
value: function getRefreshCaptchaReqResp() { | ||
var refreshCaptchaReqResp = this.precomputedLatencies.get('internal.refresh.captcha.time'); | ||
return refreshCaptchaReqResp ? Math.floor(refreshCaptchaReqResp) : undefined; | ||
} | ||
/** | ||
* Total latency for all other app api requests. | ||
@@ -497,0 +507,0 @@ * Excludes meeting info, because it's measured separately. |
@@ -235,2 +235,3 @@ "use strict"; | ||
joinTimes.clickToInterstitial = cdl.getClickToInterstitial(); | ||
joinTimes.refreshCaptchaServiceReqResp = cdl.getRefreshCaptchaReqResp(); | ||
break; | ||
@@ -237,0 +238,0 @@ case 'client.call.initiated': |
@@ -168,3 +168,3 @@ "use strict"; | ||
}, | ||
version: "3.0.0-beta.400" | ||
version: "3.0.0-beta.401" | ||
}); | ||
@@ -171,0 +171,0 @@ var _default = Metrics; |
@@ -214,2 +214,6 @@ import { WebexPlugin } from '@webex/webex-core'; | ||
/** | ||
* Total latency for all refresh captcha requests. | ||
*/ | ||
getRefreshCaptchaReqResp(): number; | ||
/** | ||
* Total latency for all other app api requests. | ||
@@ -216,0 +220,0 @@ * Excludes meeting info, because it's measured separately. |
@@ -105,2 +105,2 @@ import { ClientEvent as RawClientEvent, Event as RawEvent, MediaQualityEvent as RawMediaQualityEvent } from '@webex/event-dictionary-ts'; | ||
}) => Promise<any>; | ||
export type PreComputedLatencies = 'internal.client.pageJMT' | 'internal.download.time' | 'internal.click.to.interstitial' | 'internal.get.u2c.time' | 'internal.call.init.join.req' | 'internal.other.app.api.time'; | ||
export type PreComputedLatencies = 'internal.client.pageJMT' | 'internal.download.time' | 'internal.click.to.interstitial' | 'internal.refresh.captcha.time' | 'internal.get.u2c.time' | 'internal.call.init.join.req' | 'internal.other.app.api.time'; |
{ | ||
"name": "@webex/internal-plugin-metrics", | ||
"version": "3.0.0-beta.400", | ||
"version": "3.0.0-beta.401", | ||
"description": "", | ||
@@ -31,10 +31,10 @@ "license": "MIT", | ||
"dependencies": { | ||
"@webex/common": "3.0.0-beta.400", | ||
"@webex/common-timers": "3.0.0-beta.400", | ||
"@webex/common": "3.0.0-beta.401", | ||
"@webex/common-timers": "3.0.0-beta.401", | ||
"@webex/event-dictionary-ts": "^1.0.1387", | ||
"@webex/internal-plugin-device": "3.0.0-beta.400", | ||
"@webex/internal-plugin-metrics": "3.0.0-beta.400", | ||
"@webex/test-helper-chai": "3.0.0-beta.400", | ||
"@webex/test-helper-mock-webex": "3.0.0-beta.400", | ||
"@webex/webex-core": "3.0.0-beta.400", | ||
"@webex/internal-plugin-device": "3.0.0-beta.401", | ||
"@webex/internal-plugin-metrics": "3.0.0-beta.401", | ||
"@webex/test-helper-chai": "3.0.0-beta.401", | ||
"@webex/test-helper-mock-webex": "3.0.0-beta.401", | ||
"@webex/webex-core": "3.0.0-beta.401", | ||
"ip-anonymize": "^0.1.0", | ||
@@ -41,0 +41,0 @@ "lodash": "^4.17.21", |
@@ -459,2 +459,11 @@ /* eslint-disable class-methods-use-this */ | ||
/** | ||
* Total latency for all refresh captcha requests. | ||
*/ | ||
public getRefreshCaptchaReqResp() { | ||
const refreshCaptchaReqResp = this.precomputedLatencies.get('internal.refresh.captcha.time'); | ||
return refreshCaptchaReqResp ? Math.floor(refreshCaptchaReqResp) : undefined; | ||
} | ||
/** | ||
* Total latency for all other app api requests. | ||
@@ -461,0 +470,0 @@ * Excludes meeting info, because it's measured separately. |
@@ -253,2 +253,3 @@ /* eslint-disable valid-jsdoc */ | ||
joinTimes.clickToInterstitial = cdl.getClickToInterstitial(); | ||
joinTimes.refreshCaptchaServiceReqResp = cdl.getRefreshCaptchaReqResp(); | ||
break; | ||
@@ -255,0 +256,0 @@ |
@@ -168,4 +168,5 @@ import { | ||
| 'internal.click.to.interstitial' | ||
| 'internal.refresh.captcha.time' | ||
| 'internal.get.u2c.time' | ||
| 'internal.call.init.join.req' | ||
| 'internal.other.app.api.time'; |
@@ -106,2 +106,5 @@ /*! | ||
.returns(10); | ||
webex.internal.newMetrics.callDiagnosticLatencies.getRefreshCaptchaReqResp = sinon | ||
.stub() | ||
.returns(10); | ||
const promise = webex.internal.newMetrics.callDiagnosticMetrics.submitToCallDiagnostics( | ||
@@ -123,2 +126,3 @@ //@ts-ignore | ||
meetingInfoReqResp: 10, | ||
refreshCaptchaServiceReqResp: 10, | ||
}, | ||
@@ -125,0 +129,0 @@ }); |
@@ -209,2 +209,20 @@ import {assert} from '@webex/test-helper-chai'; | ||
describe('getRefreshCaptchaReqResp', () => { | ||
it('returns undefined when no precomputed value available', () => { | ||
assert.deepEqual(cdl.getRefreshCaptchaReqResp(), undefined); | ||
}); | ||
it('returns the correct value', () => { | ||
cdl.saveLatency('internal.refresh.captcha.time', 123); | ||
assert.deepEqual(cdl.getRefreshCaptchaReqResp(), 123); | ||
}); | ||
it('returns the correct whole number', () => { | ||
cdl.saveLatency('internal.refresh.captcha.time', 321.44); | ||
assert.deepEqual(cdl.getRefreshCaptchaReqResp(), 321); | ||
}); | ||
}); | ||
describe('saveTimestamp', () => { | ||
@@ -211,0 +229,0 @@ afterEach(() => { |
@@ -321,2 +321,3 @@ import {assert} from '@webex/test-helper-chai'; | ||
meetingInfoReqResp: undefined, | ||
refreshCaptchaServiceReqResp: undefined, | ||
}, | ||
@@ -323,0 +324,0 @@ }, |
@@ -77,2 +77,3 @@ /*! | ||
clickToInterstitial: undefined, | ||
refreshCaptchaServiceReqResp: undefined, | ||
}, | ||
@@ -79,0 +80,0 @@ name: 'client.interstitial-window.launched', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
641310
12379
+ Added@webex/common@3.0.0-beta.401(transitive)
+ Added@webex/common-timers@3.0.0-beta.401(transitive)
+ Added@webex/http-core@3.0.0-beta.401(transitive)
+ Added@webex/internal-plugin-device@3.0.0-beta.401(transitive)
+ Added@webex/plugin-logger@3.0.0-beta.401(transitive)
+ Added@webex/storage-adapter-spec@3.0.0-beta.401(transitive)
+ Added@webex/test-helper-chai@3.0.0-beta.401(transitive)
+ Added@webex/test-helper-file@3.0.0-beta.401(transitive)
+ Added@webex/test-helper-make-local-url@3.0.0-beta.401(transitive)
+ Added@webex/test-helper-mocha@3.0.0-beta.401(transitive)
+ Added@webex/test-helper-mock-webex@3.0.0-beta.401(transitive)
+ Added@webex/test-helper-retry@3.0.0-beta.401(transitive)
+ Added@webex/test-helper-test-users@3.0.0-beta.401(transitive)
+ Added@webex/test-users@3.0.0-beta.401(transitive)
+ Added@webex/webex-core@3.0.0-beta.401(transitive)
- Removed@webex/common@3.0.0-beta.400(transitive)
- Removed@webex/common-timers@3.0.0-beta.400(transitive)
- Removed@webex/http-core@3.0.0-beta.400(transitive)
- Removed@webex/internal-plugin-device@3.0.0-beta.400(transitive)
- Removed@webex/plugin-logger@3.0.0-beta.400(transitive)
- Removed@webex/storage-adapter-spec@3.0.0-beta.400(transitive)
- Removed@webex/test-helper-chai@3.0.0-beta.400(transitive)
- Removed@webex/test-helper-file@3.0.0-beta.400(transitive)
- Removed@webex/test-helper-make-local-url@3.0.0-beta.400(transitive)
- Removed@webex/test-helper-mocha@3.0.0-beta.400(transitive)
- Removed@webex/test-helper-mock-webex@3.0.0-beta.400(transitive)
- Removed@webex/test-helper-retry@3.0.0-beta.400(transitive)
- Removed@webex/test-helper-test-users@3.0.0-beta.400(transitive)
- Removed@webex/test-users@3.0.0-beta.400(transitive)
- Removed@webex/webex-core@3.0.0-beta.400(transitive)
Updated@webex/common@3.0.0-beta.401