Skip to content

Commit ea11dd2

Browse files
committed
review comments
1 parent 8d1f6cb commit ea11dd2

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

tools/sift.go

+8-10
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,10 @@ var ListSiftInvestigations = mcpgrafana.MustTool(
233233

234234
// FindErrorPatternLogsParams defines the parameters for running an ErrorPatternLogs check
235235
type FindErrorPatternLogsParams struct {
236-
Name string `json:"name" jsonschema:"required,description=The name of the investigation"`
237-
Labels map[string]string `json:"labels" jsonschema:"required,description=Labels to scope the analysis"`
238-
Start time.Time `json:"start,omitempty" jsonschema:"description=Start time for the investigation. Defaults to 30 minutes ago if not specified."`
239-
End time.Time `json:"end,omitempty" jsonschema:"description=End time for the investigation. Defaults to now if not specified."`
240-
QueryURL string `json:"queryUrl,omitempty" jsonschema:"description=Optional query URL for the investigation"`
236+
Name string `json:"name" jsonschema:"required,description=The name of the investigation"`
237+
Labels map[string]string `json:"labels" jsonschema:"required,description=Labels to scope the analysis"`
238+
Start time.Time `json:"start,omitempty" jsonschema:"description=Start time for the investigation. Defaults to 30 minutes ago if not specified."`
239+
End time.Time `json:"end,omitempty" jsonschema:"description=End time for the investigation. Defaults to now if not specified."`
241240
}
242241

243242
// findErrorPatternLogs creates an investigation with ErrorPatternLogs check, waits for it to complete, and returns the analysis
@@ -299,11 +298,10 @@ var FindErrorPatternLogs = mcpgrafana.MustTool(
299298

300299
// FindSlowRequestsParams defines the parameters for running an SlowRequests check
301300
type FindSlowRequestsParams struct {
302-
Name string `json:"name" jsonschema:"required,description=The name of the investigation"`
303-
Labels map[string]string `json:"labels" jsonschema:"required,description=Labels to scope the analysis"`
304-
Start time.Time `json:"start,omitempty" jsonschema:"description=Start time for the investigation. Defaults to 30 minutes ago if not specified."`
305-
End time.Time `json:"end,omitempty" jsonschema:"description=End time for the investigation. Defaults to now if not specified."`
306-
QueryURL string `json:"queryUrl,omitempty" jsonschema:"description=Optional query URL for the investigation"`
301+
Name string `json:"name" jsonschema:"required,description=The name of the investigation"`
302+
Labels map[string]string `json:"labels" jsonschema:"required,description=Labels to scope the analysis"`
303+
Start time.Time `json:"start,omitempty" jsonschema:"description=Start time for the investigation. Defaults to 30 minutes ago if not specified."`
304+
End time.Time `json:"end,omitempty" jsonschema:"description=End time for the investigation. Defaults to now if not specified."`
307305
}
308306

309307
// findSlowRequests creates an investigation with SlowRequests check, waits for it to complete, and returns the analysis

0 commit comments

Comments
 (0)