m-cloud API Documentation - v1.0.1-beta.5
    Preparing search index...

    Interface PerformanceMonitorOptions

    性能监控配置选项 控制性能监控的行为和数据收集方式

    interface PerformanceMonitorOptions {
        sampleRate?: number;
        outputFormat?: "json";
        outputTarget?: string | ((data: any) => void);
        trackDatabase?: boolean;
        trackExternalAPI?: boolean;
    }
    Index

    Properties

    sampleRate?: number

    采样率 (0-100),默认100%

    outputFormat?: "json"

    输出格式,默认JSON

    outputTarget?: string | ((data: any) => void)

    输出目标,可以是函数或字符串

    trackDatabase?: boolean

    是否记录数据库查询耗时

    trackExternalAPI?: boolean

    是否记录外部API调用耗时