(apiClient: ApiClient, userPlan: UserPlan)
| 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(); |
no outgoing calls
no test coverage detected