@mcp-consultant-tools/log-analytics 28.0.0 → 29.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli/commands/function-commands.d.ts +7 -0
- package/build/cli/commands/function-commands.d.ts.map +1 -0
- package/build/cli/commands/function-commands.js +120 -0
- package/build/cli/commands/function-commands.js.map +1 -0
- package/build/cli/commands/index.d.ts +10 -0
- package/build/cli/commands/index.d.ts.map +1 -0
- package/build/cli/commands/index.js +15 -0
- package/build/cli/commands/index.js.map +1 -0
- package/build/cli/commands/query-commands.d.ts +7 -0
- package/build/cli/commands/query-commands.d.ts.map +1 -0
- package/build/cli/commands/query-commands.js +486 -0
- package/build/cli/commands/query-commands.js.map +1 -0
- package/build/cli/commands/workspace-commands.d.ts +7 -0
- package/build/cli/commands/workspace-commands.d.ts.map +1 -0
- package/build/cli/commands/workspace-commands.js +47 -0
- package/build/cli/commands/workspace-commands.js.map +1 -0
- package/build/cli/output.d.ts +11 -0
- package/build/cli/output.d.ts.map +1 -0
- package/build/cli/output.js +10 -0
- package/build/cli/output.js.map +1 -0
- package/build/cli.d.ts +9 -0
- package/build/cli.d.ts.map +1 -0
- package/build/cli.js +27 -0
- package/build/cli.js.map +1 -0
- package/build/context-factory.d.ts +4 -0
- package/build/context-factory.d.ts.map +1 -0
- package/build/context-factory.js +45 -0
- package/build/context-factory.js.map +1 -0
- package/build/index.d.ts +14 -2
- package/build/index.d.ts.map +1 -1
- package/build/index.js +35 -1121
- package/build/index.js.map +1 -1
- package/build/prompts/index.d.ts +7 -0
- package/build/prompts/index.d.ts.map +1 -0
- package/build/prompts/index.js +6 -0
- package/build/prompts/index.js.map +1 -0
- package/build/prompts/templates.d.ts +3 -0
- package/build/prompts/templates.d.ts.map +1 -0
- package/build/prompts/templates.js +195 -0
- package/build/prompts/templates.js.map +1 -0
- package/build/services/index.d.ts +3 -0
- package/build/services/index.d.ts.map +1 -0
- package/build/services/index.js +2 -0
- package/build/services/index.js.map +1 -0
- package/build/services/log-analytics-service.d.ts +117 -0
- package/build/services/log-analytics-service.d.ts.map +1 -0
- package/build/services/log-analytics-service.js +419 -0
- package/build/services/log-analytics-service.js.map +1 -0
- package/build/tool-examples.d.ts +1 -8
- package/build/tool-examples.d.ts.map +1 -1
- package/build/tool-examples.js +1 -12
- package/build/tool-examples.js.map +1 -1
- package/build/tools/function-tools.d.ts +3 -0
- package/build/tools/function-tools.d.ts.map +1 -0
- package/build/tools/function-tools.js +536 -0
- package/build/tools/function-tools.js.map +1 -0
- package/build/tools/index.d.ts +9 -0
- package/build/tools/index.d.ts.map +1 -0
- package/build/tools/index.js +12 -0
- package/build/tools/index.js.map +1 -0
- package/build/tools/query-tools.d.ts +3 -0
- package/build/tools/query-tools.d.ts.map +1 -0
- package/build/tools/query-tools.js +105 -0
- package/build/tools/query-tools.js.map +1 -0
- package/build/tools/workspace-tools.d.ts +3 -0
- package/build/tools/workspace-tools.d.ts.map +1 -0
- package/build/tools/workspace-tools.js +53 -0
- package/build/tools/workspace-tools.js.map +1 -0
- package/build/types.d.ts +9 -0
- package/build/types.d.ts.map +1 -0
- package/build/types.js +2 -0
- package/build/types.js.map +1 -0
- package/package.json +5 -3
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Function CLI Commands - 4 commands for Azure Functions monitoring
|
|
3
|
+
*/
|
|
4
|
+
import type { Command } from 'commander';
|
|
5
|
+
import type { ServiceContext } from '../../context-factory.js';
|
|
6
|
+
export declare function registerFunctionCommands(program: Command, ctx: ServiceContext): void;
|
|
7
|
+
//# sourceMappingURL=function-commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-commands.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/function-commands.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAQ/D,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,cAAc,GAAG,IAAI,CAuIpF"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Function CLI Commands - 4 commands for Azure Functions monitoring
|
|
3
|
+
*/
|
|
4
|
+
import { getGlobalFlags, handleCliError } from '@mcp-consultant-tools/core';
|
|
5
|
+
import { outputResult } from '../output.js';
|
|
6
|
+
import { formatTableAsMarkdown, filterColumns, resolveColumnPreset, } from '../../utils/loganalytics-formatters.js';
|
|
7
|
+
export function registerFunctionCommands(program, ctx) {
|
|
8
|
+
const fn = program.command('fn').description('Azure Functions monitoring operations');
|
|
9
|
+
fn
|
|
10
|
+
.command('logs')
|
|
11
|
+
.description('Get Azure Function logs from FunctionAppLogs table')
|
|
12
|
+
.argument('<resourceId>', 'Resource ID')
|
|
13
|
+
.option('-n, --function-name <name>', 'Function name to filter by')
|
|
14
|
+
.option('-t, --timespan <timespan>', 'Time range (e.g., PT1H, P1D)', 'PT1H')
|
|
15
|
+
.option('-s, --severity <level>', 'Minimum severity level (0=Verbose, 1=Info, 2=Warning, 3=Error, 4=Critical)')
|
|
16
|
+
.option('-l, --limit <n>', 'Maximum results', '100')
|
|
17
|
+
.option('-p, --preset <preset>', 'Column preset: minimal, investigation, full')
|
|
18
|
+
.option('-c, --columns <columns>', 'Custom columns (comma-separated)')
|
|
19
|
+
.option('-f, --format <format>', 'Output format: json, markdown', 'json')
|
|
20
|
+
.action(async (resourceId, opts) => {
|
|
21
|
+
try {
|
|
22
|
+
const severity = opts.severity !== undefined ? parseInt(opts.severity) : undefined;
|
|
23
|
+
const result = await ctx.logAnalytics.getFunctionLogs(resourceId, opts.functionName, opts.timespan, severity, parseInt(opts.limit));
|
|
24
|
+
const columns = opts.columns ? opts.columns.split(',').map((c) => c.trim()) : undefined;
|
|
25
|
+
const columnsToInclude = resolveColumnPreset(opts.preset, columns);
|
|
26
|
+
const filteredTables = result.tables.map((t) => filterColumns(t, columnsToInclude));
|
|
27
|
+
const filteredResult = { ...result, tables: filteredTables };
|
|
28
|
+
let data = filteredResult;
|
|
29
|
+
if (opts.format === 'markdown' && filteredTables.length > 0) {
|
|
30
|
+
data = filteredTables.map((t) => formatTableAsMarkdown(t)).join('\n\n');
|
|
31
|
+
}
|
|
32
|
+
const rowCount = filteredTables.reduce((acc, t) => acc + (t.rows?.length || 0), 0);
|
|
33
|
+
const fnLabel = opts.functionName ? ` for '${opts.functionName}'` : '';
|
|
34
|
+
outputResult({ fileName: `fn-logs-${resourceId}`, data, summary: `Found ${rowCount} function log(s)${fnLabel}` }, getGlobalFlags(program));
|
|
35
|
+
}
|
|
36
|
+
catch (error) {
|
|
37
|
+
handleCliError(error, 'get function logs');
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
fn
|
|
41
|
+
.command('errors')
|
|
42
|
+
.description('Get Azure Function error logs with exception details')
|
|
43
|
+
.argument('<resourceId>', 'Resource ID')
|
|
44
|
+
.option('-n, --function-name <name>', 'Function name to filter by')
|
|
45
|
+
.option('-t, --timespan <timespan>', 'Time range (e.g., PT1H, P1D)', 'PT1H')
|
|
46
|
+
.option('-l, --limit <n>', 'Maximum results', '100')
|
|
47
|
+
.option('-p, --preset <preset>', 'Column preset: minimal, investigation, full')
|
|
48
|
+
.option('-c, --columns <columns>', 'Custom columns (comma-separated)')
|
|
49
|
+
.option('-f, --format <format>', 'Output format: json, markdown', 'json')
|
|
50
|
+
.action(async (resourceId, opts) => {
|
|
51
|
+
try {
|
|
52
|
+
const result = await ctx.logAnalytics.getFunctionErrors(resourceId, opts.functionName, opts.timespan, parseInt(opts.limit));
|
|
53
|
+
const columns = opts.columns ? opts.columns.split(',').map((c) => c.trim()) : undefined;
|
|
54
|
+
const columnsToInclude = resolveColumnPreset(opts.preset, columns);
|
|
55
|
+
const filteredTables = result.tables.map((t) => filterColumns(t, columnsToInclude));
|
|
56
|
+
const filteredResult = { ...result, tables: filteredTables };
|
|
57
|
+
let data = filteredResult;
|
|
58
|
+
if (opts.format === 'markdown' && filteredTables.length > 0) {
|
|
59
|
+
data = filteredTables.map((t) => formatTableAsMarkdown(t)).join('\n\n');
|
|
60
|
+
}
|
|
61
|
+
const rowCount = filteredTables.reduce((acc, t) => acc + (t.rows?.length || 0), 0);
|
|
62
|
+
const fnLabel = opts.functionName ? ` for '${opts.functionName}'` : '';
|
|
63
|
+
outputResult({ fileName: `fn-errors-${resourceId}`, data, summary: `Found ${rowCount} function error(s)${fnLabel}` }, getGlobalFlags(program));
|
|
64
|
+
}
|
|
65
|
+
catch (error) {
|
|
66
|
+
handleCliError(error, 'get function errors');
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
fn
|
|
70
|
+
.command('stats')
|
|
71
|
+
.description('Get execution statistics for Azure Functions (count, success rate)')
|
|
72
|
+
.argument('<resourceId>', 'Resource ID')
|
|
73
|
+
.option('-n, --function-name <name>', 'Function name (stats for all if not specified)')
|
|
74
|
+
.option('-t, --timespan <timespan>', 'Time range (e.g., PT1H, P1D)', 'PT1H')
|
|
75
|
+
.option('-f, --format <format>', 'Output format: json, markdown', 'json')
|
|
76
|
+
.action(async (resourceId, opts) => {
|
|
77
|
+
try {
|
|
78
|
+
const result = await ctx.logAnalytics.getFunctionStats(resourceId, opts.functionName, opts.timespan);
|
|
79
|
+
let data = result;
|
|
80
|
+
if (opts.format === 'markdown' && result.tables && result.tables.length > 0) {
|
|
81
|
+
data = result.tables.map((t) => formatTableAsMarkdown(t)).join('\n\n');
|
|
82
|
+
}
|
|
83
|
+
const fnLabel = opts.functionName ? ` for '${opts.functionName}'` : ' for all functions';
|
|
84
|
+
outputResult({ fileName: `fn-stats-${resourceId}`, data, summary: `Function statistics${fnLabel}` }, getGlobalFlags(program));
|
|
85
|
+
}
|
|
86
|
+
catch (error) {
|
|
87
|
+
handleCliError(error, 'get function stats');
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
fn
|
|
91
|
+
.command('invocations')
|
|
92
|
+
.description('Get Azure Function invocation history from requests/traces tables')
|
|
93
|
+
.argument('<resourceId>', 'Resource ID')
|
|
94
|
+
.option('-n, --function-name <name>', 'Function name to filter by')
|
|
95
|
+
.option('-t, --timespan <timespan>', 'Time range (e.g., PT1H, P1D)', 'PT1H')
|
|
96
|
+
.option('-l, --limit <n>', 'Maximum results', '100')
|
|
97
|
+
.option('-p, --preset <preset>', 'Column preset: minimal, investigation, full')
|
|
98
|
+
.option('-c, --columns <columns>', 'Custom columns (comma-separated)')
|
|
99
|
+
.option('-f, --format <format>', 'Output format: json, markdown', 'json')
|
|
100
|
+
.action(async (resourceId, opts) => {
|
|
101
|
+
try {
|
|
102
|
+
const result = await ctx.logAnalytics.getFunctionInvocations(resourceId, opts.functionName, opts.timespan, parseInt(opts.limit));
|
|
103
|
+
const columns = opts.columns ? opts.columns.split(',').map((c) => c.trim()) : undefined;
|
|
104
|
+
const columnsToInclude = resolveColumnPreset(opts.preset, columns);
|
|
105
|
+
const filteredTables = result.tables.map((t) => filterColumns(t, columnsToInclude));
|
|
106
|
+
const filteredResult = { ...result, tables: filteredTables };
|
|
107
|
+
let data = filteredResult;
|
|
108
|
+
if (opts.format === 'markdown' && filteredTables.length > 0) {
|
|
109
|
+
data = filteredTables.map((t) => formatTableAsMarkdown(t)).join('\n\n');
|
|
110
|
+
}
|
|
111
|
+
const rowCount = filteredTables.reduce((acc, t) => acc + (t.rows?.length || 0), 0);
|
|
112
|
+
const fnLabel = opts.functionName ? ` for '${opts.functionName}'` : '';
|
|
113
|
+
outputResult({ fileName: `fn-invocations-${resourceId}`, data, summary: `Found ${rowCount} invocation(s)${fnLabel}` }, getGlobalFlags(program));
|
|
114
|
+
}
|
|
115
|
+
catch (error) {
|
|
116
|
+
handleCliError(error, 'get function invocations');
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=function-commands.js.map
|
|
@@ -0,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c,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC5D,IAAI,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC/E,CAAC;YAED,MAAM,QAAQ,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC,GAAW,EAAE,CAAM,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;YAChG,MAAM,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;YACvE,YAAY,CACV,EAAE,QAAQ,EAAE,kBAAkB,UAAU,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,QAAQ,iBAAiB,OAAO,EAAE,EAAE,EACxG,cAAc,CAAC,OAAO,CAAC,CACxB,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAAC,cAAc,CAAC,KAAK,EAAE,0BAA0B,CAAC,CAAC;QAAC,CAAC;IACxE,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI Commands barrel export + combined registration
|
|
3
|
+
*/
|
|
4
|
+
import type { Command } from 'commander';
|
|
5
|
+
import type { ServiceContext } from '../../context-factory.js';
|
|
6
|
+
export declare function registerAllCommands(program: Command, ctx: ServiceContext): void;
|
|
7
|
+
export { registerQueryCommands } from './query-commands.js';
|
|
8
|
+
export { registerFunctionCommands } from './function-commands.js';
|
|
9
|
+
export { registerWorkspaceCommands } from './workspace-commands.js';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAK/D,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,cAAc,GAAG,IAAI,CAI/E;AAED,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI Commands barrel export + combined registration
|
|
3
|
+
*/
|
|
4
|
+
import { registerQueryCommands } from './query-commands.js';
|
|
5
|
+
import { registerFunctionCommands } from './function-commands.js';
|
|
6
|
+
import { registerWorkspaceCommands } from './workspace-commands.js';
|
|
7
|
+
export function registerAllCommands(program, ctx) {
|
|
8
|
+
registerQueryCommands(program, ctx);
|
|
9
|
+
registerFunctionCommands(program, ctx);
|
|
10
|
+
registerWorkspaceCommands(program, ctx);
|
|
11
|
+
}
|
|
12
|
+
export { registerQueryCommands } from './query-commands.js';
|
|
13
|
+
export { registerFunctionCommands } from './function-commands.js';
|
|
14
|
+
export { registerWorkspaceCommands } from './workspace-commands.js';
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cli/commands/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,MAAM,UAAU,mBAAmB,CAAC,OAAgB,EAAE,GAAmB;IACvE,qBAAqB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IACpC,wBAAwB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IACvC,yBAAyB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;AAC1C,CAAC;AAED,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Query CLI Commands - 6 commands for KQL queries, log search, and investigation
|
|
3
|
+
*/
|
|
4
|
+
import type { Command } from 'commander';
|
|
5
|
+
import type { ServiceContext } from '../../context-factory.js';
|
|
6
|
+
export declare function registerQueryCommands(program: Command, ctx: ServiceContext): void;
|
|
7
|
+
//# sourceMappingURL=query-commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-commands.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/query-commands.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAQ/D,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,cAAc,GAAG,IAAI,CAggBjF"}
|