diff --git a/pkg/installevents/installevents_api.go b/pkg/installevents/installevents_api.go index e9edec8c1..97438dc15 100644 --- a/pkg/installevents/installevents_api.go +++ b/pkg/installevents/installevents_api.go @@ -59,6 +59,7 @@ const InstallationCreateInstallStatusMutation = `mutation( error { details message + optimizedMessage } hostName installId @@ -136,6 +137,7 @@ const InstallationCreateRecipeEventMutation = `mutation( error { details message + optimizedMessage } hostName installId diff --git a/pkg/installevents/types.go b/pkg/installevents/types.go index 0d33cb2ac..cc62c5418 100644 --- a/pkg/installevents/types.go +++ b/pkg/installevents/types.go @@ -252,6 +252,8 @@ type InstallationStatusError struct { Details string `json:"details,omitempty"` // The actual error message. Message string `json:"message,omitempty"` + // An optimised message for the error. + OptimizedMessage string `json:"optimizedMessage,omitempty"` } // InstallationStatusErrorInput - An object that represents a status error whenever an recipe has failed to install. @@ -260,4 +262,6 @@ type InstallationStatusErrorInput struct { Details string `json:"details,omitempty"` // The actual error message. Message string `json:"message,omitempty"` + // An optimised message for the error. + OptimizedMessage string `json:"optimizedMessage,omitempty"` }