0.0.3 • Published 5 years ago

trustedcollector v0.0.3

Weekly downloads
8
License
-
Repository
-
Last release
5 years ago

trustedcollector

The trustedcollector library exported as a node module.

$ npm i trustedcollector --save-dev

Installation

Using npm:

$ npm i trustedcollector --save-dev

Usage

Angular Project: import trustedcollector module in 'app.module.ts'

import { TrustedcollectorModule} from 'trustedcollector';
...
@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule, TrustedcollectorModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})

Import inside the component where we want to push the event.

import {TrustedcollectorService, PaymentEvent, LoginEvent } from 'trustedcollector';

Vaidate the event data by typecasting into respective interface.

 const loginEventData: LoginEvent = {...};

Push the event using trustedcollector service

 this.trustedcollectorService.pushEvent("frontline.login", loginEventData);

Why trustedcollector?

This SDK is a simple typescript library which will push telemetry Events to a dedicated trusted collector Engine which collects this event data in a data pool and serves as a source to analytics framework.

  • Easy to Integrate.
  • Lightweight.
  • Extensible.

License

MIT

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago