Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -565,10 +565,11 @@ type CreateInvestigationRequest struct {
InProgress *bool `json:"inProgress,omitempty"`
AlertFireUUID *string `json:"alertFireUuid,omitempty"`
AlertUUID *string `json:"alertUuid,omitempty"`
DeploymentEventUUID *string `json:"deploymentEventUuid,omitempty"`
Environment *string `json:"environment,omitempty"`
Namespace *string `json:"namespace,omitempty"`
ServiceName *string `json:"serviceName,omitempty"`
DeploymentEventUUID *string `json:"deploymentEventUuid,omitempty"`
PotentialIssueEventUUID *string `json:"potentialIssueEventUuid,omitempty"`
Environment *string `json:"environment,omitempty"`
Namespace *string `json:"namespace,omitempty"`
ServiceName *string `json:"serviceName,omitempty"`
}

type UpdateInvestigationRequest struct {
Expand All @@ -586,6 +587,7 @@ type UpdateInvestigationRequest struct {
RecommendedActions *[]string `json:"recommendedActions,omitempty"`
InProgress *bool `json:"inProgress,omitempty"`
DeploymentEventUUID *string `json:"deploymentEventUuid,omitempty"`
PotentialIssueEventUUID *string `json:"potentialIssueEventUuid,omitempty"`
Environment *string `json:"environment,omitempty"`
Namespace *string `json:"namespace,omitempty"`
ServiceName *string `json:"serviceName,omitempty"`
Expand Down
16 changes: 9 additions & 7 deletions tools/create_investigation.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ type CreateInvestigationHandlerArgs struct {
IssueUUID *string `json:"issueUuid,omitempty" jsonschema:"description=Optional related AI issue UUID for this investigation"`
AlertFireUUID *string `json:"alertFireUuid,omitempty" jsonschema:"description=Optional alert fire UUID to associate with this investigation"`
AlertUUID *string `json:"alertUuid,omitempty" jsonschema:"description=Optional alert UUID to associate with this investigation"`
DeploymentEventUUID *string `json:"deploymentEventUuid,omitempty" jsonschema:"description=Optional deployment event UUID to associate with this investigation for notification threading"`
DeploymentEventUUID *string `json:"deploymentEventUuid,omitempty" jsonschema:"description=Optional deployment event UUID to associate with this investigation for notification threading"`
PotentialIssueEventUUID *string `json:"potentialIssueEventUuid,omitempty" jsonschema:"description=Optional potential issue event UUID to associate with this investigation for notification threading"`
}

func CreateInvestigationHandler(ctx context.Context, arguments CreateInvestigationHandlerArgs) (*mcpgolang.ToolResponse, error) {
Expand Down Expand Up @@ -57,12 +58,13 @@ func CreateInvestigationHandler(ctx context.Context, arguments CreateInvestigati
InProgress: arguments.InProgress,
MetoroApprovalStatus: &reviewRequiredPtr,
IssueUUID: arguments.IssueUUID,
AlertFireUUID: arguments.AlertFireUUID,
AlertUUID: arguments.AlertUUID,
DeploymentEventUUID: arguments.DeploymentEventUUID,
Environment: arguments.Environment,
Namespace: arguments.Namespace,
ServiceName: arguments.ServiceName,
AlertFireUUID: arguments.AlertFireUUID,
AlertUUID: arguments.AlertUUID,
DeploymentEventUUID: arguments.DeploymentEventUUID,
PotentialIssueEventUUID: arguments.PotentialIssueEventUUID,
Environment: arguments.Environment,
Namespace: arguments.Namespace,
ServiceName: arguments.ServiceName,
}

requestBody, err := json.Marshal(request)
Expand Down
16 changes: 9 additions & 7 deletions tools/update_investigation.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ type UpdateInvestigationHandlerArgs struct {
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"`
ChatHistoryUUID *string `json:"chatHistoryUuid,omitempty" jsonschema:"description=Optional chat history UUID to associate with this investigation"`
IssueUUID *string `json:"issueUuid,omitempty" jsonschema:"description=Optional related AI issue UUID for this investigation"`
DeploymentEventUUID *string `json:"deploymentEventUuid,omitempty" jsonschema:"description=Optional deployment event UUID to associate with this investigation for notification threading"`
DeploymentEventUUID *string `json:"deploymentEventUuid,omitempty" jsonschema:"description=Optional deployment event UUID to associate with this investigation for notification threading"`
PotentialIssueEventUUID *string `json:"potentialIssueEventUuid,omitempty" jsonschema:"description=Optional potential issue event UUID to associate with this investigation for notification threading"`
}

func UpdateInvestigationHandler(ctx context.Context, arguments UpdateInvestigationHandlerArgs) (*mcpgolang.ToolResponse, error) {
Expand Down Expand Up @@ -61,12 +62,13 @@ func UpdateInvestigationHandler(ctx context.Context, arguments UpdateInvestigati
IsVisible: &falsePtr,
InProgress: arguments.InProgress,
MetoroApprovalStatus: &reviewRequiredPtr,
IssueUUID: arguments.IssueUUID,
RecommendedActions: arguments.RecommendedActions,
DeploymentEventUUID: arguments.DeploymentEventUUID,
Environment: arguments.Environment,
Namespace: arguments.Namespace,
ServiceName: arguments.ServiceName,
IssueUUID: arguments.IssueUUID,
RecommendedActions: arguments.RecommendedActions,
DeploymentEventUUID: arguments.DeploymentEventUUID,
PotentialIssueEventUUID: arguments.PotentialIssueEventUUID,
Environment: arguments.Environment,
Namespace: arguments.Namespace,
ServiceName: arguments.ServiceName,
}

requestBody, err := json.Marshal(request)
Expand Down