You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// GetAnalysis is a tool for retrieving a specific analysis from an investigation
255
205
varGetAnalysis=mcpgrafana.MustTool(
256
206
"get_analysis",
257
-
"Retrieves a specific analysis from a Sift investigation by their UUIDs. Both the investigation ID and analysis ID should be provided as strings in UUID format.",
207
+
"Retrieves a specific analysis from an investigation by its UUID. The investigation ID and analysis ID should be provided as strings in UUID format.",
258
208
getAnalysis,
259
209
)
260
210
@@ -290,17 +240,17 @@ var ListInvestigations = mcpgrafana.MustTool(
290
240
listInvestigations,
291
241
)
292
242
293
-
// RunErrorPatternLogsParams defines the parameters for running an ErrorPatternLogs check
294
-
typeRunErrorPatternLogsParamsstruct {
243
+
// FindErrorPatternLogsParams defines the parameters for running an ErrorPatternLogs check
244
+
typeFindErrorPatternLogsParamsstruct {
295
245
Namestring`json:"name" jsonschema:"required,description=The name of the investigation"`
296
246
Labelsmap[string]string`json:"labels" jsonschema:"required,description=Labels to scope the analysis"`
297
247
Start time.Time`json:"start,omitempty" jsonschema:"description=Start time for the investigation. Defaults to 30 minutes ago if not specified."`
298
248
End time.Time`json:"end,omitempty" jsonschema:"description=End time for the investigation. Defaults to now if not specified."`
299
249
QueryURLstring`json:"queryUrl,omitempty" jsonschema:"description=Optional query URL for the investigation"`
300
250
}
301
251
302
-
// runErrorPatternLogs creates an investigation with ErrorPatternLogs check, waits for it to complete, and returns the analysis
// RunErrorPatternLogs is a tool for running an ErrorPatternLogs check
354
-
varRunErrorPatternLogs=mcpgrafana.MustTool(
355
-
"run_error_pattern_logs",
356
-
"Creates a Sift investigation with ErrorPatternLogs check, waits for it to complete, and returns the analysis results. This tool triggers an investigation with the ErrorPatternLogs check in the relevant Loki datasource. It investigates if the there are elevated errors rates in the logs compared to the last day's average and returns the error pattern found, if any.",
357
-
runErrorPatternLogs,
302
+
// FindErrorPatternLogs is a tool for running an ErrorPatternLogs check
303
+
varFindErrorPatternLogs=mcpgrafana.MustTool(
304
+
"find_error_pattern_logs",
305
+
"Creates an investigation to search for error patterns in logs, waits for it to complete, and returns the analysis results. This tool triggers an investigation in the relevant Loki datasource to determine if there are elevated error rates compared to the last day's average, and returns the error pattern found, if any.",
306
+
findErrorPatternLogs,
358
307
)
359
308
360
-
// RunSlowRequestsCheckParams defines the parameters for running an SlowRequests check
361
-
typeRunSlowRequestsCheckParamsstruct {
309
+
// FindSlowRequestsParams defines the parameters for running an SlowRequests check
310
+
typeFindSlowRequestsParamsstruct {
362
311
Namestring`json:"name" jsonschema:"required,description=The name of the investigation"`
363
312
Labelsmap[string]string`json:"labels" jsonschema:"required,description=Labels to scope the analysis"`
364
313
Start time.Time`json:"start,omitempty" jsonschema:"description=Start time for the investigation. Defaults to 30 minutes ago if not specified."`
365
314
End time.Time`json:"end,omitempty" jsonschema:"description=End time for the investigation. Defaults to now if not specified."`
366
315
QueryURLstring`json:"queryUrl,omitempty" jsonschema:"description=Optional query URL for the investigation"`
367
316
}
368
317
369
-
// runSlowRequests creates an investigation with SlowRequests check, waits for it to complete, and returns the analysis
0 commit comments