kpi-client
TypeScript icon, indicating that this package has built-in type declarations

0.0.14 • Public • Published

Module Doris KPI Client

Installation

yarn add @doris.mobi/kpi-client

DataDog Service

Configuration

import { KpiClientModule } from 'kpi-client';

@Module({
  imports: [KpiClientModule.forRoot({})]
})
export class AppModule {}

Usage

import { DatadogAsyncLogManagerService } from 'kpi-client';

export class MyClass {
    constructor(private readonly asyncLogManager: DatadogAsyncLogManagerService) {}
    
    async myFunction() {
        await this.asyncLogManager.createAsyncLog({
            data: { foo: 'bar' },
            level: 'info', // info | warn | error
            message: `any messages`,
            service_name: 'service_name',
            log_key: 'any_key',
        })
    }
}

Readme

Keywords

none

Package Sidebar

Install

npm i kpi-client

Weekly Downloads

20

Version

0.0.14

License

MIT

Unpacked Size

18.3 kB

Total Files

31

Last publish

Collaborators

  • dorispontomobi