Skip to content

Commit 876fad1

Browse files
authored
update investigations with alert uuid and fire uuid (#85)
* Make alert investigations visible and update investigations with alert uuid and fire uuid * set vis false
1 parent ac18c90 commit 876fad1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

model/model.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,8 @@ type CreateInvestigationRequest struct {
562562
MetoroApprovalStatus *string `json:"metoroApprovalStatus,omitempty"`
563563
IssueUUID *string `json:"issueUuid,omitempty"`
564564
InProgress *bool `json:"inProgress,omitempty"`
565+
AlertFireUUID *string `json:"alertFireUuid,omitempty"`
566+
AlertUUID *string `json:"alertUuid,omitempty"`
565567
}
566568

567569
type UpdateInvestigationRequest struct {

tools/create_investigation.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ type CreateInvestigationHandlerArgs struct {
2222
TimeConfig utils.TimeConfig `json:"time_config" jsonschema:"required,description=The time period to get the pods for. e.g. if you want the get the pods for the last 5 minutes you would set time_period=5 and time_window=Minutes. You can also set an absolute time range by setting start_time and end_time"`
2323
ChatHistoryUUID *string `json:"chatHistoryUuid,omitempty" jsonschema:"description=Optional chat history UUID to associate with this investigation"`
2424
IssueUUID *string `json:"issueUuid,omitempty" jsonschema:"description=Optional related AI issue UUID for this investigation"`
25+
AlertFireUUID *string `json:"alertFireUuid,omitempty" jsonschema:"description=Optional alert fire UUID to associate with this investigation"`
26+
AlertUUID *string `json:"alertUuid,omitempty" jsonschema:"description=Optional alert UUID to associate with this investigation"`
2527
}
2628

2729
func CreateInvestigationHandler(ctx context.Context, arguments CreateInvestigationHandlerArgs) (*mcpgolang.ToolResponse, error) {
@@ -52,6 +54,8 @@ func CreateInvestigationHandler(ctx context.Context, arguments CreateInvestigati
5254
InProgress: arguments.InProgress,
5355
MetoroApprovalStatus: &reviewRequiredPtr,
5456
IssueUUID: arguments.IssueUUID,
57+
AlertFireUUID: arguments.AlertFireUUID,
58+
AlertUUID: arguments.AlertUUID,
5559
}
5660

5761
requestBody, err := json.Marshal(request)

0 commit comments

Comments
 (0)