MCPcopy Create free account
hub / github.com/ProtonDriveApps/sdk / init

Method init

cli/src/telemetry/metricHandler.ts:36–43  ·  view source on GitHub ↗
(apiClient: ApiClient, userPlan: UserPlan)

Source from the content-addressed store, hash-verified

34 private requestService?: MetricsRequestService;
35
36 init(apiClient: ApiClient, userPlan: UserPlan) {
37 this.requestService = new MetricsRequestService(
38 apiClient.authenticatedRequest,
39 `${apiClient.baseUrlWithProtocol}/api/data/v1/metrics`,
40 );
41 this.metrics = new Metrics(this.requestService);
42 this.handler = new ConfiguredMetricHandler(this.metrics, userPlan);
43 }
44
45 async flush() {
46 await this.requestService?.processAllRequests();

Callers 5

initOpenPGPCryptoModuleFunction · 0.45
initSentryFunction · 0.45
initTelemetryFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected