UNPKG

@joktec/kafka

Version:

JokTec - Kafka Service

16 lines 746 B
import { Counter } from '@joktec/core'; export declare const TOTAL_SEND_KAFKA_METRIC = "total_send_kafka_metric"; export declare const TOTAL_RECEIVE_KAFKA_METRIC = "total_receive_kafka_metric"; export declare enum KafkaMetricStatus { SUCCESS = "SUCCESS", ERROR = "ERROR" } export declare class KafkaMetricService { totalSend: Counter<string>; totalReceive: Counter<string>; constructor(totalSend: Counter<string>, totalReceive: Counter<string>); send(type: string, status: KafkaMetricStatus, key: string, conId?: string): void; receive(type: string, status: KafkaMetricStatus, key: string, conId?: string): void; } export declare const KafkaSendMetric: () => MethodDecorator; //# sourceMappingURL=kafka.metric.d.ts.map