/** * Utility functions for formatting Log Analytics query results */ /** * Column presets for different use cases. * - minimal: Quick overview, reduces token count significantly * - investigation: Error investigation with exception details * - full: All columns (null = no filtering) */ export declare const COLUMN_PRESETS: Record; /** * Table type definition for Log Analytics results */ export interface LogAnalyticsTable { columns: { name: string; type: string; }[]; rows: any[][]; } /** * Filter table columns based on a list of column names. * Returns a new table with only the specified columns. * If columnsToInclude is null, returns the original table. */ export declare function filterColumns(table: LogAnalyticsTable, columnsToInclude: string[] | null): LogAnalyticsTable; /** * Resolve column preset or custom columns to an array of column names. * Returns null if no filtering should be applied. */ export declare function resolveColumnPreset(preset?: string, customColumns?: string[]): string[] | null; /** * Format Log Analytics table result as markdown table */ export declare function formatTableAsMarkdown(table: { columns: { name: string; type: string; }[]; rows: any[][]; }): string; /** * Convert Log Analytics query result to CSV */ export declare function formatTableAsCSV(table: { columns: { name: string; type: string; }[]; rows: any[][]; }): string; /** * Extract key insights from generic log data */ export declare function analyzeLogs(logsTable: any, tableName?: string): string; /** * Extract key insights from Azure Function logs */ export declare function analyzeFunctionLogs(logsTable: any): string; /** * Extract key insights from Azure Function errors */ export declare function analyzeFunctionErrors(errorsTable: any): string; /** * Analyze function execution statistics */ export declare function analyzeFunctionStats(statsTable: any): string; /** * Generate recommendations based on log analysis */ export declare function generateRecommendations(analysis: { errorCount?: number; successRate?: number; severityDistribution?: Record; exceptionTypes?: Record; }): string[]; /** * Sanitize error messages to remove sensitive information */ export declare function sanitizeErrorMessage(message: string): string; /** * Parse and validate ISO 8601 duration strings */ export declare function parseTimespan(timespan: string): { valid: boolean; error?: string; }; /** * Get common timespan presets */ export declare function getTimespanPresets(): Record; /** * Format a single log entry for display */ export declare function formatLogEntry(timestamp: string, severity: number | string, message: string, additionalFields?: Record): string; //# sourceMappingURL=loganalytics-formatters.d.ts.map