Fix api report
Signed-off-by: Jonathan Mezach <jonathan.mezach@rr-wfm.com>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
## API Report File for "backstage-plugin-analytics-module-nr"
|
||||
|
||||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
||||
|
||||
```ts
|
||||
import { AnalyticsApi } from '@backstage/core-plugin-api';
|
||||
import { AnalyticsEvent } from '@backstage/core-plugin-api';
|
||||
import { Config } from '@backstage/config';
|
||||
import { IdentityApi } from '@backstage/core-plugin-api';
|
||||
|
||||
// @public
|
||||
export class NewRelicBrowser implements AnalyticsApi {
|
||||
// (undocumented)
|
||||
captureEvent(event: AnalyticsEvent): void;
|
||||
// (undocumented)
|
||||
static fromConfig(
|
||||
config: Config,
|
||||
options: {
|
||||
identityApi?: IdentityApi;
|
||||
},
|
||||
): NewRelicBrowser;
|
||||
}
|
||||
|
||||
// (No @packageDocumentation comment for this package)
|
||||
```
|
||||
+5
-2
@@ -24,7 +24,7 @@ import type { setAPI } from '@newrelic/browser-agent/loaders/api/api';
|
||||
|
||||
type NewRelicAPI = ReturnType<typeof setAPI>;
|
||||
|
||||
export type NewRelicBrowserOptions = {
|
||||
type NewRelicBrowserOptions = {
|
||||
accountId: string;
|
||||
applicationId: string;
|
||||
licenseKey: string;
|
||||
@@ -33,7 +33,10 @@ export type NewRelicBrowserOptions = {
|
||||
useEuEndpoint: boolean;
|
||||
};
|
||||
|
||||
// Implementation that optionally initializes with a userId.
|
||||
/**
|
||||
* New Relic Browser API provider for the Backstage Analytics API.
|
||||
* @public
|
||||
*/
|
||||
export class NewRelicBrowser implements AnalyticsApi {
|
||||
private readonly agent: NewRelicAPI;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user