UNPKG

@hemantwasthere/monitoring-sdk

Version:

Centralized monitoring SDK for Node.js applications with Prometheus, Loki, and Grafana integration

10 lines (9 loc) 373 B
import { CronJobMetric } from "./types"; export declare class CronMonitor { private metricsService?; private loggingService?; private getMetricsService; private getLoggingService; static monitor(jobName: string): (target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor; recordJob(metric: CronJobMetric): void; }