UNPKG

applicationinsights

Version:
48 lines (47 loc) 1.73 kB
import { StatsbeatFeature, StatsbeatInstrumentation } from "../../shim/types"; /** * Utility class to manage statsbeat features using bitmap flags */ export declare class StatsbeatFeaturesManager { private static instance; /** * Get the singleton instance of StatsbeatFeaturesManager */ static getInstance(): StatsbeatFeaturesManager; /** * Get the current statsbeat features configuration from environment variable */ private getCurrentConfig; /** * Set the statsbeat features environment variable with updated configuration */ private setConfig; /** * Enable a specific statsbeat feature by setting the corresponding bit */ enableFeature(feature: StatsbeatFeature): void; /** * Disable a specific statsbeat feature by clearing the corresponding bit */ disableFeature(feature: StatsbeatFeature): void; /** * Check if a specific statsbeat feature is enabled */ isFeatureEnabled(feature: StatsbeatFeature): boolean; /** * Enable a specific statsbeat instrumentation by setting the corresponding bit */ enableInstrumentation(instrumentation: StatsbeatInstrumentation): void; /** * Disable a specific statsbeat instrumentation by clearing the corresponding bit */ disableInstrumentation(instrumentation: StatsbeatInstrumentation): void; /** * Check if a specific statsbeat instrumentation is enabled */ isInstrumentationEnabled(instrumentation: StatsbeatInstrumentation): boolean; /** * Initialize the statsbeat features environment variable with default values if not set */ initialize(): void; }