Documentation
¶
Overview ¶
Package agentclient provides the Kubernaut Agent OpenAPI client wrapper.
DD-HAPI-003: Mandatory OpenAPI Client Usage This wrapper provides a business-friendly API around the auto-generated OpenAPI client (oas_client_gen.go).
BR-AI-006: API call construction and response handling.
Package agentclient provides the Kubernaut Agent OpenAPI client.
Code generated by ogen, DO NOT EDIT.
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type APIError
- type AlternativeWorkflow
- func (s *AlternativeWorkflow) Decode(d *jx.Decoder) error
- func (s *AlternativeWorkflow) Encode(e *jx.Encoder)
- func (s *AlternativeWorkflow) GetConfidence() float64
- func (s *AlternativeWorkflow) GetExecutionBundle() OptNilString
- func (s *AlternativeWorkflow) GetRationale() string
- func (s *AlternativeWorkflow) GetWorkflowID() string
- func (s *AlternativeWorkflow) MarshalJSON() ([]byte, error)
- func (s *AlternativeWorkflow) SetConfidence(val float64)
- func (s *AlternativeWorkflow) SetExecutionBundle(val OptNilString)
- func (s *AlternativeWorkflow) SetRationale(val string)
- func (s *AlternativeWorkflow) SetWorkflowID(val string)
- func (s *AlternativeWorkflow) UnmarshalJSON(data []byte) error
- func (s *AlternativeWorkflow) Validate() error
- type BusinessClassification
- func (s *BusinessClassification) Decode(d *jx.Decoder) error
- func (s *BusinessClassification) Encode(e *jx.Encoder)
- func (s *BusinessClassification) GetBusinessUnit() OptNilString
- func (s *BusinessClassification) GetCriticality() OptNilString
- func (s *BusinessClassification) GetServiceOwner() OptNilString
- func (s *BusinessClassification) GetSlaRequirement() OptNilString
- func (s *BusinessClassification) MarshalJSON() ([]byte, error)
- func (s *BusinessClassification) SetBusinessUnit(val OptNilString)
- func (s *BusinessClassification) SetCriticality(val OptNilString)
- func (s *BusinessClassification) SetServiceOwner(val OptNilString)
- func (s *BusinessClassification) SetSlaRequirement(val OptNilString)
- func (s *BusinessClassification) UnmarshalJSON(data []byte) error
- type Client
- func (c *Client) GetConfigConfigGet(ctx context.Context) (jx.Raw, error)
- func (c *Client) HealthCheckHealthGet(ctx context.Context) (jx.Raw, error)
- func (c *Client) IncidentAnalyzeEndpointAPIV1IncidentAnalyzePost(ctx context.Context, request *IncidentRequest) (IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostRes, error)
- func (c *Client) IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGet(ctx context.Context, ...) (IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetRes, error)
- func (c *Client) IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGet(ctx context.Context, ...) (IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetRes, error)
- func (c *Client) ReadinessCheckReadyGet(ctx context.Context) (jx.Raw, error)
- type ClientOption
- type Config
- type EnrichmentResults
- func (s *EnrichmentResults) Decode(d *jx.Decoder) error
- func (s *EnrichmentResults) Encode(e *jx.Encoder)
- func (s *EnrichmentResults) GetBusinessClassification() OptNilBusinessClassification
- func (s *EnrichmentResults) GetCustomLabels() OptNilEnrichmentResultsCustomLabels
- func (s *EnrichmentResults) GetKubernetesContext() OptNilEnrichmentResultsKubernetesContext
- func (s *EnrichmentResults) MarshalJSON() ([]byte, error)
- func (s *EnrichmentResults) SetBusinessClassification(val OptNilBusinessClassification)
- func (s *EnrichmentResults) SetCustomLabels(val OptNilEnrichmentResultsCustomLabels)
- func (s *EnrichmentResults) SetKubernetesContext(val OptNilEnrichmentResultsKubernetesContext)
- func (s *EnrichmentResults) UnmarshalJSON(data []byte) error
- func (s *EnrichmentResults) Validate() error
- type EnrichmentResultsCustomLabels
- func (s *EnrichmentResultsCustomLabels) Decode(d *jx.Decoder) error
- func (s EnrichmentResultsCustomLabels) Encode(e *jx.Encoder)
- func (s EnrichmentResultsCustomLabels) MarshalJSON() ([]byte, error)
- func (s *EnrichmentResultsCustomLabels) UnmarshalJSON(data []byte) error
- func (s EnrichmentResultsCustomLabels) Validate() error
- type EnrichmentResultsKubernetesContext
- type ErrorHandler
- type HTTPError
- func (s *HTTPError) Decode(d *jx.Decoder) error
- func (s *HTTPError) Encode(e *jx.Encoder)
- func (s *HTTPError) GetDetail() string
- func (s *HTTPError) GetInstance() string
- func (s *HTTPError) GetRequestID() OptNilString
- func (s *HTTPError) GetStatus() int
- func (s *HTTPError) GetTitle() string
- func (s *HTTPError) GetType() string
- func (s *HTTPError) MarshalJSON() ([]byte, error)
- func (s *HTTPError) SetDetail(val string)
- func (s *HTTPError) SetInstance(val string)
- func (s *HTTPError) SetRequestID(val OptNilString)
- func (s *HTTPError) SetStatus(val int)
- func (s *HTTPError) SetTitle(val string)
- func (s *HTTPError) SetType(val string)
- func (s *HTTPError) UnmarshalJSON(data []byte) error
- type HTTPValidationError
- func (s *HTTPValidationError) Decode(d *jx.Decoder) error
- func (s *HTTPValidationError) Encode(e *jx.Encoder)
- func (s *HTTPValidationError) GetDetail() []ValidationError
- func (s *HTTPValidationError) MarshalJSON() ([]byte, error)
- func (s *HTTPValidationError) SetDetail(val []ValidationError)
- func (s *HTTPValidationError) UnmarshalJSON(data []byte) error
- func (s *HTTPValidationError) Validate() error
- type Handler
- type HumanReviewReason
- func (HumanReviewReason) AllValues() []HumanReviewReason
- func (s *HumanReviewReason) Decode(d *jx.Decoder) error
- func (s HumanReviewReason) Encode(e *jx.Encoder)
- func (s HumanReviewReason) MarshalJSON() ([]byte, error)
- func (s HumanReviewReason) MarshalText() ([]byte, error)
- func (s *HumanReviewReason) UnmarshalJSON(data []byte) error
- func (s *HumanReviewReason) UnmarshalText(data []byte) error
- func (s HumanReviewReason) Validate() error
- type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostAcceptedApplicationJSON
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostAcceptedApplicationJSON) Decode(d *jx.Decoder) error
- func (s IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostAcceptedApplicationJSON) Encode(e *jx.Encoder)
- func (s IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostAcceptedApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostAcceptedApplicationJSON) UnmarshalJSON(data []byte) error
- type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest) Decode(d *jx.Decoder) error
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest) Encode(e *jx.Encoder)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest) MarshalJSON() ([]byte, error)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest) UnmarshalJSON(data []byte) error
- type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden) Decode(d *jx.Decoder) error
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden) Encode(e *jx.Encoder)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden) MarshalJSON() ([]byte, error)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden) UnmarshalJSON(data []byte) error
- type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError) Decode(d *jx.Decoder) error
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError) Encode(e *jx.Encoder)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError) MarshalJSON() ([]byte, error)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError) UnmarshalJSON(data []byte) error
- type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized) Decode(d *jx.Decoder) error
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized) Encode(e *jx.Encoder)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized) MarshalJSON() ([]byte, error)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized) UnmarshalJSON(data []byte) error
- type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity) Decode(d *jx.Decoder) error
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity) Encode(e *jx.Encoder)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity) MarshalJSON() ([]byte, error)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity) UnmarshalJSON(data []byte) error
- type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) Decode(d *jx.Decoder) error
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) Encode(e *jx.Encoder)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) GetDetail() string
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) GetInstance() string
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) GetRequestID() OptNilString
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) GetStatus() int
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) GetTitle() string
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) GetType() string
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) MarshalJSON() ([]byte, error)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) SetDetail(val string)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) SetInstance(val string)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) SetRequestID(val OptNilString)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) SetStatus(val int)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) SetTitle(val string)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) SetType(val string)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) UnmarshalJSON(data []byte) error
- type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) Decode(d *jx.Decoder) error
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) Encode(e *jx.Encoder)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) GetDetail() string
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) GetInstance() string
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) GetRequestID() OptNilString
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) GetStatus() int
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) GetTitle() string
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) GetType() string
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) MarshalJSON() ([]byte, error)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) SetDetail(val string)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) SetInstance(val string)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) SetRequestID(val OptNilString)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) SetStatus(val int)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) SetTitle(val string)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) SetType(val string)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) UnmarshalJSON(data []byte) error
- type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) Decode(d *jx.Decoder) error
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) Encode(e *jx.Encoder)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) GetDetail() string
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) GetInstance() string
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) GetRequestID() OptNilString
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) GetStatus() int
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) GetTitle() string
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) GetType() string
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) MarshalJSON() ([]byte, error)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) SetDetail(val string)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) SetInstance(val string)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) SetRequestID(val OptNilString)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) SetStatus(val int)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) SetTitle(val string)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) SetType(val string)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) UnmarshalJSON(data []byte) error
- type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostRes
- type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) Decode(d *jx.Decoder) error
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) Encode(e *jx.Encoder)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) GetDetail() string
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) GetInstance() string
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) GetRequestID() OptNilString
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) GetStatus() int
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) GetTitle() string
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) GetType() string
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) MarshalJSON() ([]byte, error)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) SetDetail(val string)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) SetInstance(val string)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) SetRequestID(val OptNilString)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) SetStatus(val int)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) SetTitle(val string)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) SetType(val string)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) UnmarshalJSON(data []byte) error
- type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) Decode(d *jx.Decoder) error
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) Encode(e *jx.Encoder)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) GetDetail() string
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) GetInstance() string
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) GetRequestID() OptNilString
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) GetStatus() int
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) GetTitle() string
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) GetType() string
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) MarshalJSON() ([]byte, error)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) SetDetail(val string)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) SetInstance(val string)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) SetRequestID(val OptNilString)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) SetStatus(val int)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) SetTitle(val string)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) SetType(val string)
- func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) UnmarshalJSON(data []byte) error
- type IncidentRequest
- func (s *IncidentRequest) Decode(d *jx.Decoder) error
- func (s *IncidentRequest) Encode(e *jx.Encoder)
- func (s *IncidentRequest) GetBusinessCategory() string
- func (s *IncidentRequest) GetClusterName() string
- func (s *IncidentRequest) GetDeduplicationWindowMinutes() OptNilInt
- func (s *IncidentRequest) GetDescription() OptNilString
- func (s *IncidentRequest) GetEnrichmentResults() OptNilEnrichmentResults
- func (s *IncidentRequest) GetEnvironment() string
- func (s *IncidentRequest) GetErrorMessage() string
- func (s *IncidentRequest) GetFiringTime() OptNilString
- func (s *IncidentRequest) GetFirstSeen() OptNilString
- func (s *IncidentRequest) GetIncidentID() string
- func (s *IncidentRequest) GetIsDuplicate() OptNilBool
- func (s *IncidentRequest) GetLastSeen() OptNilString
- func (s *IncidentRequest) GetOccurrenceCount() OptNilInt
- func (s *IncidentRequest) GetPriority() string
- func (s *IncidentRequest) GetReceivedTime() OptNilString
- func (s *IncidentRequest) GetRemediationID() string
- func (s *IncidentRequest) GetResourceKind() string
- func (s *IncidentRequest) GetResourceName() string
- func (s *IncidentRequest) GetResourceNamespace() string
- func (s *IncidentRequest) GetRiskTolerance() string
- func (s *IncidentRequest) GetSeverity() Severity
- func (s *IncidentRequest) GetSignalLabels() OptNilIncidentRequestSignalLabels
- func (s *IncidentRequest) GetSignalMode() OptNilSignalMode
- func (s *IncidentRequest) GetSignalName() string
- func (s *IncidentRequest) GetSignalSource() string
- func (s *IncidentRequest) MarshalJSON() ([]byte, error)
- func (s *IncidentRequest) SetBusinessCategory(val string)
- func (s *IncidentRequest) SetClusterName(val string)
- func (s *IncidentRequest) SetDeduplicationWindowMinutes(val OptNilInt)
- func (s *IncidentRequest) SetDescription(val OptNilString)
- func (s *IncidentRequest) SetEnrichmentResults(val OptNilEnrichmentResults)
- func (s *IncidentRequest) SetEnvironment(val string)
- func (s *IncidentRequest) SetErrorMessage(val string)
- func (s *IncidentRequest) SetFiringTime(val OptNilString)
- func (s *IncidentRequest) SetFirstSeen(val OptNilString)
- func (s *IncidentRequest) SetIncidentID(val string)
- func (s *IncidentRequest) SetIsDuplicate(val OptNilBool)
- func (s *IncidentRequest) SetLastSeen(val OptNilString)
- func (s *IncidentRequest) SetOccurrenceCount(val OptNilInt)
- func (s *IncidentRequest) SetPriority(val string)
- func (s *IncidentRequest) SetReceivedTime(val OptNilString)
- func (s *IncidentRequest) SetRemediationID(val string)
- func (s *IncidentRequest) SetResourceKind(val string)
- func (s *IncidentRequest) SetResourceName(val string)
- func (s *IncidentRequest) SetResourceNamespace(val string)
- func (s *IncidentRequest) SetRiskTolerance(val string)
- func (s *IncidentRequest) SetSeverity(val Severity)
- func (s *IncidentRequest) SetSignalLabels(val OptNilIncidentRequestSignalLabels)
- func (s *IncidentRequest) SetSignalMode(val OptNilSignalMode)
- func (s *IncidentRequest) SetSignalName(val string)
- func (s *IncidentRequest) SetSignalSource(val string)
- func (s *IncidentRequest) UnmarshalJSON(data []byte) error
- func (s *IncidentRequest) Validate() error
- type IncidentRequestSignalLabels
- type IncidentResponse
- func (s *IncidentResponse) Decode(d *jx.Decoder) error
- func (s *IncidentResponse) Encode(e *jx.Encoder)
- func (s *IncidentResponse) GetAlternativeWorkflows() []AlternativeWorkflow
- func (s *IncidentResponse) GetAnalysis() string
- func (s *IncidentResponse) GetConfidence() float64
- func (s *IncidentResponse) GetDetectedLabels() OptNilIncidentResponseDetectedLabels
- func (s *IncidentResponse) GetHumanReviewReason() OptNilHumanReviewReason
- func (s *IncidentResponse) GetIncidentID() string
- func (s *IncidentResponse) GetIsActionable() OptNilBool
- func (s *IncidentResponse) GetNeedsHumanReview() OptBool
- func (s *IncidentResponse) GetRootCauseAnalysis() IncidentResponseRootCauseAnalysis
- func (s *IncidentResponse) GetSelectedWorkflow() OptNilIncidentResponseSelectedWorkflow
- func (s *IncidentResponse) GetTimestamp() string
- func (s *IncidentResponse) GetValidationAttemptsHistory() []ValidationAttempt
- func (s *IncidentResponse) GetWarnings() []string
- func (s *IncidentResponse) MarshalJSON() ([]byte, error)
- func (s *IncidentResponse) SetAlternativeWorkflows(val []AlternativeWorkflow)
- func (s *IncidentResponse) SetAnalysis(val string)
- func (s *IncidentResponse) SetConfidence(val float64)
- func (s *IncidentResponse) SetDetectedLabels(val OptNilIncidentResponseDetectedLabels)
- func (s *IncidentResponse) SetHumanReviewReason(val OptNilHumanReviewReason)
- func (s *IncidentResponse) SetIncidentID(val string)
- func (s *IncidentResponse) SetIsActionable(val OptNilBool)
- func (s *IncidentResponse) SetNeedsHumanReview(val OptBool)
- func (s *IncidentResponse) SetRootCauseAnalysis(val IncidentResponseRootCauseAnalysis)
- func (s *IncidentResponse) SetSelectedWorkflow(val OptNilIncidentResponseSelectedWorkflow)
- func (s *IncidentResponse) SetTimestamp(val string)
- func (s *IncidentResponse) SetValidationAttemptsHistory(val []ValidationAttempt)
- func (s *IncidentResponse) SetWarnings(val []string)
- func (s *IncidentResponse) UnmarshalJSON(data []byte) error
- func (s *IncidentResponse) Validate() error
- type IncidentResponseDetectedLabels
- type IncidentResponseRootCauseAnalysis
- type IncidentResponseSelectedWorkflow
- type IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetConflict
- func (s *IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetConflict) Decode(d *jx.Decoder) error
- func (s *IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetConflict) Encode(e *jx.Encoder)
- func (s *IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetConflict) MarshalJSON() ([]byte, error)
- func (s *IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetConflict) UnmarshalJSON(data []byte) error
- type IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound
- func (s *IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound) Decode(d *jx.Decoder) error
- func (s *IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound) Encode(e *jx.Encoder)
- func (s *IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound) MarshalJSON() ([]byte, error)
- func (s *IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound) UnmarshalJSON(data []byte) error
- type IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetParams
- type IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetRes
- type IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetOKApplicationJSON
- func (s *IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetOKApplicationJSON) Encode(e *jx.Encoder)
- func (s IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetOKApplicationJSON) UnmarshalJSON(data []byte) error
- type IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetParams
- type IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetRes
- type Invoker
- type KubernautAgentClient
- func (c *KubernautAgentClient) GetSessionResult(ctx context.Context, sessionID string) (*IncidentResponse, error)
- func (c *KubernautAgentClient) Investigate(ctx context.Context, req *IncidentRequest) (*IncidentResponse, error)
- func (c *KubernautAgentClient) PollSession(ctx context.Context, sessionID string) (*SessionStatus, error)
- func (c *KubernautAgentClient) SubmitInvestigation(ctx context.Context, req *IncidentRequest) (string, error)
- type Labeler
- type Middleware
- type OperationName
- type OptBool
- func (o *OptBool) Decode(d *jx.Decoder) error
- func (o OptBool) Encode(e *jx.Encoder)
- func (o OptBool) Get() (v bool, ok bool)
- func (o OptBool) IsSet() bool
- func (s OptBool) MarshalJSON() ([]byte, error)
- func (o OptBool) Or(d bool) bool
- func (o *OptBool) Reset()
- func (o *OptBool) SetTo(v bool)
- func (s *OptBool) UnmarshalJSON(data []byte) error
- type OptNilBool
- func (o *OptNilBool) Decode(d *jx.Decoder) error
- func (o OptNilBool) Encode(e *jx.Encoder)
- func (o OptNilBool) Get() (v bool, ok bool)
- func (o OptNilBool) IsNull() bool
- func (o OptNilBool) IsSet() bool
- func (s OptNilBool) MarshalJSON() ([]byte, error)
- func (o OptNilBool) Or(d bool) bool
- func (o *OptNilBool) Reset()
- func (o *OptNilBool) SetTo(v bool)
- func (o *OptNilBool) SetToNull()
- func (s *OptNilBool) UnmarshalJSON(data []byte) error
- type OptNilBusinessClassification
- func (o *OptNilBusinessClassification) Decode(d *jx.Decoder) error
- func (o OptNilBusinessClassification) Encode(e *jx.Encoder)
- func (o OptNilBusinessClassification) Get() (v BusinessClassification, ok bool)
- func (o OptNilBusinessClassification) IsNull() bool
- func (o OptNilBusinessClassification) IsSet() bool
- func (s OptNilBusinessClassification) MarshalJSON() ([]byte, error)
- func (o OptNilBusinessClassification) Or(d BusinessClassification) BusinessClassification
- func (o *OptNilBusinessClassification) Reset()
- func (o *OptNilBusinessClassification) SetTo(v BusinessClassification)
- func (o *OptNilBusinessClassification) SetToNull()
- func (s *OptNilBusinessClassification) UnmarshalJSON(data []byte) error
- type OptNilEnrichmentResults
- func (o *OptNilEnrichmentResults) Decode(d *jx.Decoder) error
- func (o OptNilEnrichmentResults) Encode(e *jx.Encoder)
- func (o OptNilEnrichmentResults) Get() (v EnrichmentResults, ok bool)
- func (o OptNilEnrichmentResults) IsNull() bool
- func (o OptNilEnrichmentResults) IsSet() bool
- func (s OptNilEnrichmentResults) MarshalJSON() ([]byte, error)
- func (o OptNilEnrichmentResults) Or(d EnrichmentResults) EnrichmentResults
- func (o *OptNilEnrichmentResults) Reset()
- func (o *OptNilEnrichmentResults) SetTo(v EnrichmentResults)
- func (o *OptNilEnrichmentResults) SetToNull()
- func (s *OptNilEnrichmentResults) UnmarshalJSON(data []byte) error
- type OptNilEnrichmentResultsCustomLabels
- func (o *OptNilEnrichmentResultsCustomLabels) Decode(d *jx.Decoder) error
- func (o OptNilEnrichmentResultsCustomLabels) Encode(e *jx.Encoder)
- func (o OptNilEnrichmentResultsCustomLabels) Get() (v EnrichmentResultsCustomLabels, ok bool)
- func (o OptNilEnrichmentResultsCustomLabels) IsNull() bool
- func (o OptNilEnrichmentResultsCustomLabels) IsSet() bool
- func (s OptNilEnrichmentResultsCustomLabels) MarshalJSON() ([]byte, error)
- func (o OptNilEnrichmentResultsCustomLabels) Or(d EnrichmentResultsCustomLabels) EnrichmentResultsCustomLabels
- func (o *OptNilEnrichmentResultsCustomLabels) Reset()
- func (o *OptNilEnrichmentResultsCustomLabels) SetTo(v EnrichmentResultsCustomLabels)
- func (o *OptNilEnrichmentResultsCustomLabels) SetToNull()
- func (s *OptNilEnrichmentResultsCustomLabels) UnmarshalJSON(data []byte) error
- type OptNilEnrichmentResultsKubernetesContext
- func (o *OptNilEnrichmentResultsKubernetesContext) Decode(d *jx.Decoder) error
- func (o OptNilEnrichmentResultsKubernetesContext) Encode(e *jx.Encoder)
- func (o OptNilEnrichmentResultsKubernetesContext) Get() (v EnrichmentResultsKubernetesContext, ok bool)
- func (o OptNilEnrichmentResultsKubernetesContext) IsNull() bool
- func (o OptNilEnrichmentResultsKubernetesContext) IsSet() bool
- func (s OptNilEnrichmentResultsKubernetesContext) MarshalJSON() ([]byte, error)
- func (o OptNilEnrichmentResultsKubernetesContext) Or(d EnrichmentResultsKubernetesContext) EnrichmentResultsKubernetesContext
- func (o *OptNilEnrichmentResultsKubernetesContext) Reset()
- func (o *OptNilEnrichmentResultsKubernetesContext) SetTo(v EnrichmentResultsKubernetesContext)
- func (o *OptNilEnrichmentResultsKubernetesContext) SetToNull()
- func (s *OptNilEnrichmentResultsKubernetesContext) UnmarshalJSON(data []byte) error
- type OptNilHumanReviewReason
- func (o *OptNilHumanReviewReason) Decode(d *jx.Decoder) error
- func (o OptNilHumanReviewReason) Encode(e *jx.Encoder)
- func (o OptNilHumanReviewReason) Get() (v HumanReviewReason, ok bool)
- func (o OptNilHumanReviewReason) IsNull() bool
- func (o OptNilHumanReviewReason) IsSet() bool
- func (s OptNilHumanReviewReason) MarshalJSON() ([]byte, error)
- func (o OptNilHumanReviewReason) Or(d HumanReviewReason) HumanReviewReason
- func (o *OptNilHumanReviewReason) Reset()
- func (o *OptNilHumanReviewReason) SetTo(v HumanReviewReason)
- func (o *OptNilHumanReviewReason) SetToNull()
- func (s *OptNilHumanReviewReason) UnmarshalJSON(data []byte) error
- type OptNilIncidentRequestSignalLabels
- func (o *OptNilIncidentRequestSignalLabels) Decode(d *jx.Decoder) error
- func (o OptNilIncidentRequestSignalLabels) Encode(e *jx.Encoder)
- func (o OptNilIncidentRequestSignalLabels) Get() (v IncidentRequestSignalLabels, ok bool)
- func (o OptNilIncidentRequestSignalLabels) IsNull() bool
- func (o OptNilIncidentRequestSignalLabels) IsSet() bool
- func (s OptNilIncidentRequestSignalLabels) MarshalJSON() ([]byte, error)
- func (o OptNilIncidentRequestSignalLabels) Or(d IncidentRequestSignalLabels) IncidentRequestSignalLabels
- func (o *OptNilIncidentRequestSignalLabels) Reset()
- func (o *OptNilIncidentRequestSignalLabels) SetTo(v IncidentRequestSignalLabels)
- func (o *OptNilIncidentRequestSignalLabels) SetToNull()
- func (s *OptNilIncidentRequestSignalLabels) UnmarshalJSON(data []byte) error
- type OptNilIncidentResponseDetectedLabels
- func (o *OptNilIncidentResponseDetectedLabels) Decode(d *jx.Decoder) error
- func (o OptNilIncidentResponseDetectedLabels) Encode(e *jx.Encoder)
- func (o OptNilIncidentResponseDetectedLabels) Get() (v IncidentResponseDetectedLabels, ok bool)
- func (o OptNilIncidentResponseDetectedLabels) IsNull() bool
- func (o OptNilIncidentResponseDetectedLabels) IsSet() bool
- func (s OptNilIncidentResponseDetectedLabels) MarshalJSON() ([]byte, error)
- func (o OptNilIncidentResponseDetectedLabels) Or(d IncidentResponseDetectedLabels) IncidentResponseDetectedLabels
- func (o *OptNilIncidentResponseDetectedLabels) Reset()
- func (o *OptNilIncidentResponseDetectedLabels) SetTo(v IncidentResponseDetectedLabels)
- func (o *OptNilIncidentResponseDetectedLabels) SetToNull()
- func (s *OptNilIncidentResponseDetectedLabels) UnmarshalJSON(data []byte) error
- type OptNilIncidentResponseSelectedWorkflow
- func (o *OptNilIncidentResponseSelectedWorkflow) Decode(d *jx.Decoder) error
- func (o OptNilIncidentResponseSelectedWorkflow) Encode(e *jx.Encoder)
- func (o OptNilIncidentResponseSelectedWorkflow) Get() (v IncidentResponseSelectedWorkflow, ok bool)
- func (o OptNilIncidentResponseSelectedWorkflow) IsNull() bool
- func (o OptNilIncidentResponseSelectedWorkflow) IsSet() bool
- func (s OptNilIncidentResponseSelectedWorkflow) MarshalJSON() ([]byte, error)
- func (o OptNilIncidentResponseSelectedWorkflow) Or(d IncidentResponseSelectedWorkflow) IncidentResponseSelectedWorkflow
- func (o *OptNilIncidentResponseSelectedWorkflow) Reset()
- func (o *OptNilIncidentResponseSelectedWorkflow) SetTo(v IncidentResponseSelectedWorkflow)
- func (o *OptNilIncidentResponseSelectedWorkflow) SetToNull()
- func (s *OptNilIncidentResponseSelectedWorkflow) UnmarshalJSON(data []byte) error
- type OptNilInt
- func (o *OptNilInt) Decode(d *jx.Decoder) error
- func (o OptNilInt) Encode(e *jx.Encoder)
- func (o OptNilInt) Get() (v int, ok bool)
- func (o OptNilInt) IsNull() bool
- func (o OptNilInt) IsSet() bool
- func (s OptNilInt) MarshalJSON() ([]byte, error)
- func (o OptNilInt) Or(d int) int
- func (o *OptNilInt) Reset()
- func (o *OptNilInt) SetTo(v int)
- func (o *OptNilInt) SetToNull()
- func (s *OptNilInt) UnmarshalJSON(data []byte) error
- type OptNilSignalMode
- func (o *OptNilSignalMode) Decode(d *jx.Decoder) error
- func (o OptNilSignalMode) Encode(e *jx.Encoder)
- func (o OptNilSignalMode) Get() (v SignalMode, ok bool)
- func (o OptNilSignalMode) IsNull() bool
- func (o OptNilSignalMode) IsSet() bool
- func (s OptNilSignalMode) MarshalJSON() ([]byte, error)
- func (o OptNilSignalMode) Or(d SignalMode) SignalMode
- func (o *OptNilSignalMode) Reset()
- func (o *OptNilSignalMode) SetTo(v SignalMode)
- func (o *OptNilSignalMode) SetToNull()
- func (s *OptNilSignalMode) UnmarshalJSON(data []byte) error
- type OptNilString
- func (o *OptNilString) Decode(d *jx.Decoder) error
- func (o OptNilString) Encode(e *jx.Encoder)
- func (o OptNilString) Get() (v string, ok bool)
- func (o OptNilString) IsNull() bool
- func (o OptNilString) IsSet() bool
- func (s OptNilString) MarshalJSON() ([]byte, error)
- func (o OptNilString) Or(d string) string
- func (o *OptNilString) Reset()
- func (o *OptNilString) SetTo(v string)
- func (o *OptNilString) SetToNull()
- func (s *OptNilString) UnmarshalJSON(data []byte) error
- type Option
- type Route
- type Server
- type ServerOption
- func WithErrorHandler(h ErrorHandler) ServerOption
- func WithMaxMultipartMemory(max int64) ServerOption
- func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
- func WithMiddleware(m ...Middleware) ServerOption
- func WithNotFound(notFound http.HandlerFunc) ServerOption
- func WithPathPrefix(prefix string) ServerOption
- type SessionStatus
- type Severity
- func (Severity) AllValues() []Severity
- func (s *Severity) Decode(d *jx.Decoder) error
- func (s Severity) Encode(e *jx.Encoder)
- func (s Severity) MarshalJSON() ([]byte, error)
- func (s Severity) MarshalText() ([]byte, error)
- func (s *Severity) UnmarshalJSON(data []byte) error
- func (s *Severity) UnmarshalText(data []byte) error
- func (s Severity) Validate() error
- type SignalMode
- func (SignalMode) AllValues() []SignalMode
- func (s *SignalMode) Decode(d *jx.Decoder) error
- func (s SignalMode) Encode(e *jx.Encoder)
- func (s SignalMode) MarshalJSON() ([]byte, error)
- func (s SignalMode) MarshalText() ([]byte, error)
- func (s *SignalMode) UnmarshalJSON(data []byte) error
- func (s *SignalMode) UnmarshalText(data []byte) error
- func (s SignalMode) Validate() error
- type UnimplementedHandler
- func (UnimplementedHandler) GetConfigConfigGet(ctx context.Context) (r jx.Raw, _ error)
- func (UnimplementedHandler) HealthCheckHealthGet(ctx context.Context) (r jx.Raw, _ error)
- func (UnimplementedHandler) IncidentAnalyzeEndpointAPIV1IncidentAnalyzePost(ctx context.Context, req *IncidentRequest) (r IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostRes, _ error)
- func (UnimplementedHandler) IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGet(ctx context.Context, ...) (r IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetRes, ...)
- func (UnimplementedHandler) IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGet(ctx context.Context, ...) (r IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetRes, _ error)
- func (UnimplementedHandler) ReadinessCheckReadyGet(ctx context.Context) (r jx.Raw, _ error)
- type ValidationAttempt
- func (s *ValidationAttempt) Decode(d *jx.Decoder) error
- func (s *ValidationAttempt) Encode(e *jx.Encoder)
- func (s *ValidationAttempt) GetAttempt() int
- func (s *ValidationAttempt) GetErrors() []string
- func (s *ValidationAttempt) GetIsValid() bool
- func (s *ValidationAttempt) GetTimestamp() string
- func (s *ValidationAttempt) GetWorkflowID() OptNilString
- func (s *ValidationAttempt) MarshalJSON() ([]byte, error)
- func (s *ValidationAttempt) SetAttempt(val int)
- func (s *ValidationAttempt) SetErrors(val []string)
- func (s *ValidationAttempt) SetIsValid(val bool)
- func (s *ValidationAttempt) SetTimestamp(val string)
- func (s *ValidationAttempt) SetWorkflowID(val OptNilString)
- func (s *ValidationAttempt) UnmarshalJSON(data []byte) error
- func (s *ValidationAttempt) Validate() error
- type ValidationError
- func (s *ValidationError) Decode(d *jx.Decoder) error
- func (s *ValidationError) Encode(e *jx.Encoder)
- func (s *ValidationError) GetLoc() []ValidationErrorLocItem
- func (s *ValidationError) GetMsg() string
- func (s *ValidationError) GetType() string
- func (s *ValidationError) MarshalJSON() ([]byte, error)
- func (s *ValidationError) SetLoc(val []ValidationErrorLocItem)
- func (s *ValidationError) SetMsg(val string)
- func (s *ValidationError) SetType(val string)
- func (s *ValidationError) UnmarshalJSON(data []byte) error
- func (s *ValidationError) Validate() error
- type ValidationErrorLocItem
- func (s *ValidationErrorLocItem) Decode(d *jx.Decoder) error
- func (s ValidationErrorLocItem) Encode(e *jx.Encoder)
- func (s ValidationErrorLocItem) GetInt() (v int, ok bool)
- func (s ValidationErrorLocItem) GetString() (v string, ok bool)
- func (s ValidationErrorLocItem) IsInt() bool
- func (s ValidationErrorLocItem) IsString() bool
- func (s ValidationErrorLocItem) MarshalJSON() ([]byte, error)
- func (s *ValidationErrorLocItem) SetInt(v int)
- func (s *ValidationErrorLocItem) SetString(v string)
- func (s *ValidationErrorLocItem) UnmarshalJSON(data []byte) error
- type ValidationErrorLocItemType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIError ¶
type APIError struct {
StatusCode int // HTTP status code (0 for network errors)
Message string // Human-readable error message
}
APIError represents an HTTP error from the Kubernaut Agent.
type AlternativeWorkflow ¶
type AlternativeWorkflow struct {
// Workflow identifier.
WorkflowID string `json:"workflow_id"`
// OCI execution bundle reference.
ExecutionBundle OptNilString `json:"execution_bundle"`
// Confidence score for this alternative.
Confidence float64 `json:"confidence"`
// Why this alternative was considered but not selected.
Rationale string `json:"rationale"`
}
Alternative workflow recommendation for operator context. Design Decision: ADR-045 v1.2 (Alternative Workflows for Audit) IMPORTANT: Alternatives are for CONTEXT, not EXECUTION. Per APPROVAL_REJECTION_BEHAVIOR_DETAILED.md: - ✅ Purpose: Help operator make an informed decision - ✅ Content: Pros/cons of alternative approaches - ❌ NOT: A fallback queue for automatic execution Only `selected_workflow` is executed. Alternatives provide: - Audit trail of what options were considered - Context for operator approval decisions - Transparency into AI reasoning. Ref: #/components/schemas/AlternativeWorkflow
func (*AlternativeWorkflow) Decode ¶
func (s *AlternativeWorkflow) Decode(d *jx.Decoder) error
Decode decodes AlternativeWorkflow from json.
func (*AlternativeWorkflow) Encode ¶
func (s *AlternativeWorkflow) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AlternativeWorkflow) GetConfidence ¶
func (s *AlternativeWorkflow) GetConfidence() float64
GetConfidence returns the value of Confidence.
func (*AlternativeWorkflow) GetExecutionBundle ¶
func (s *AlternativeWorkflow) GetExecutionBundle() OptNilString
GetExecutionBundle returns the value of ExecutionBundle.
func (*AlternativeWorkflow) GetRationale ¶
func (s *AlternativeWorkflow) GetRationale() string
GetRationale returns the value of Rationale.
func (*AlternativeWorkflow) GetWorkflowID ¶
func (s *AlternativeWorkflow) GetWorkflowID() string
GetWorkflowID returns the value of WorkflowID.
func (*AlternativeWorkflow) MarshalJSON ¶
func (s *AlternativeWorkflow) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AlternativeWorkflow) SetConfidence ¶
func (s *AlternativeWorkflow) SetConfidence(val float64)
SetConfidence sets the value of Confidence.
func (*AlternativeWorkflow) SetExecutionBundle ¶
func (s *AlternativeWorkflow) SetExecutionBundle(val OptNilString)
SetExecutionBundle sets the value of ExecutionBundle.
func (*AlternativeWorkflow) SetRationale ¶
func (s *AlternativeWorkflow) SetRationale(val string)
SetRationale sets the value of Rationale.
func (*AlternativeWorkflow) SetWorkflowID ¶
func (s *AlternativeWorkflow) SetWorkflowID(val string)
SetWorkflowID sets the value of WorkflowID.
func (*AlternativeWorkflow) UnmarshalJSON ¶
func (s *AlternativeWorkflow) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AlternativeWorkflow) Validate ¶
func (s *AlternativeWorkflow) Validate() error
type BusinessClassification ¶
type BusinessClassification struct {
// Business unit owning the service (e.g., 'payments', 'platform').
BusinessUnit OptNilString `json:"businessUnit"`
// Service owner team or individual.
ServiceOwner OptNilString `json:"serviceOwner"`
// Business criticality: critical, high, medium, low.
Criticality OptNilString `json:"criticality"`
// SLA tier: platinum, gold, silver, bronze.
SlaRequirement OptNilString `json:"slaRequirement"`
}
Business context from SignalProcessing categorization phase. BR-SP-002: Business Classification BR-SP-080: Business Unit Detection BR-SP-081: SLA Requirement Mapping Used for: 1. Workflow filtering - select workflows matching business context 2. Rego approval policies - criticality/SLA-based gating 3. LLM context - business impact understanding. Ref: #/components/schemas/BusinessClassification
func (*BusinessClassification) Decode ¶
func (s *BusinessClassification) Decode(d *jx.Decoder) error
Decode decodes BusinessClassification from json.
func (*BusinessClassification) Encode ¶
func (s *BusinessClassification) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*BusinessClassification) GetBusinessUnit ¶
func (s *BusinessClassification) GetBusinessUnit() OptNilString
GetBusinessUnit returns the value of BusinessUnit.
func (*BusinessClassification) GetCriticality ¶
func (s *BusinessClassification) GetCriticality() OptNilString
GetCriticality returns the value of Criticality.
func (*BusinessClassification) GetServiceOwner ¶
func (s *BusinessClassification) GetServiceOwner() OptNilString
GetServiceOwner returns the value of ServiceOwner.
func (*BusinessClassification) GetSlaRequirement ¶
func (s *BusinessClassification) GetSlaRequirement() OptNilString
GetSlaRequirement returns the value of SlaRequirement.
func (*BusinessClassification) MarshalJSON ¶
func (s *BusinessClassification) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*BusinessClassification) SetBusinessUnit ¶
func (s *BusinessClassification) SetBusinessUnit(val OptNilString)
SetBusinessUnit sets the value of BusinessUnit.
func (*BusinessClassification) SetCriticality ¶
func (s *BusinessClassification) SetCriticality(val OptNilString)
SetCriticality sets the value of Criticality.
func (*BusinessClassification) SetServiceOwner ¶
func (s *BusinessClassification) SetServiceOwner(val OptNilString)
SetServiceOwner sets the value of ServiceOwner.
func (*BusinessClassification) SetSlaRequirement ¶
func (s *BusinessClassification) SetSlaRequirement(val OptNilString)
SetSlaRequirement sets the value of SlaRequirement.
func (*BusinessClassification) UnmarshalJSON ¶
func (s *BusinessClassification) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
func NewClient ¶
func NewClient(serverURL string, opts ...ClientOption) (*Client, error)
NewClient initializes new Client defined by OAS.
func (*Client) GetConfigConfigGet ¶
GetConfigConfigGet invokes get_config_config_get operation.
Get service configuration (sanitized) Business Requirement: BR-HAPI-128 (Configuration endpoint).
GET /config
func (*Client) HealthCheckHealthGet ¶
HealthCheckHealthGet invokes health_check_health_get operation.
Liveness probe endpoint Business Requirement: BR-HAPI-126 (Health check endpoint).
GET /health
func (*Client) IncidentAnalyzeEndpointAPIV1IncidentAnalyzePost ¶
func (c *Client) IncidentAnalyzeEndpointAPIV1IncidentAnalyzePost(ctx context.Context, request *IncidentRequest) (IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostRes, error)
IncidentAnalyzeEndpointAPIV1IncidentAnalyzePost invokes incident_analyze_endpoint_api_v1_incident_analyze_post operation.
Submit incident analysis request (async session-based pattern). Business Requirement: BR-HAPI-002 (Incident analysis endpoint) Business Requirement: BR-AA-HAPI-064.1 (Async submit returns session ID) Design Decision: DD-AUTH-006 (User attribution for LLM cost tracking) Called by: AIAnalysis Controller via SubmitInvestigation() Returns HTTP 202 Accepted with {"session_id": "<uuid>"}. The investigation runs as a background task. Poll via GET /incident/session/{id}.
POST /api/v1/incident/analyze
func (*Client) IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGet ¶
func (c *Client) IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGet(ctx context.Context, params IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetParams) (IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetRes, error)
IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGet invokes incident_session_result_endpoint_api_v1_incident_session__session_id__result_get operation.
Retrieve completed investigation result. BR-AA-HAPI-064.3.
GET /api/v1/incident/session/{session_id}/result
func (*Client) IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGet ¶
func (c *Client) IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGet(ctx context.Context, params IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetParams) (IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetRes, error)
IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGet invokes incident_session_status_endpoint_api_v1_incident_session__session_id__get operation.
Poll session status. BR-AA-HAPI-064.2.
GET /api/v1/incident/session/{session_id}
func (*Client) ReadinessCheckReadyGet ¶
ReadinessCheckReadyGet invokes readiness_check_ready_get operation.
Readiness probe endpoint Business Requirements: - BR-HAPI-127 (Readiness check endpoint) - BR-HAPI-201 (Graceful shutdown with DD-007 pattern) TDD GREEN Phase: Check shutdown flag first REFACTOR phase: Real dependency health checks.
GET /ready
type ClientOption ¶
type ClientOption interface {
// contains filtered or unexported methods
}
ClientOption is client config option.
func WithClient ¶
func WithClient(client ht.Client) ClientOption
WithClient specifies http client to use.
type EnrichmentResults ¶
type EnrichmentResults struct {
// Kubernetes resource context.
KubernetesContext OptNilEnrichmentResultsKubernetesContext `json:"kubernetesContext"`
// Custom labels from SignalProcessing (subdomain → values). Auto-appended to workflow search per
// DD-HAPI-001.
CustomLabels OptNilEnrichmentResultsCustomLabels `json:"customLabels"`
// Business classification from SP categorization (BR-SP-002). Used for workflow filtering and Rego
// approval policies.
BusinessClassification OptNilBusinessClassification `json:"businessClassification"`
}
Enrichment results from SignalProcessing. Contains Kubernetes context, custom labels, and business classification used for workflow filtering and LLM context. ADR-056: detectedLabels removed -- now computed by HAPI post-RCA via LabelDetector. ADR-055: ownerChain removed -- resolved by HAPI via get_resource_context tool. Design Decision: DD-HAPI-001 Custom Labels (DD-HAPI-001): - Format: map[string][]string (subdomain → list of values) - Keys are subdomains (e.g., "constraint", "team") - Values are lists of strings (boolean keys or "key=value" pairs) - Example: {"constraint": ["cost-constrained"], "team": ["name=payments"]} - Auto-appended to MCP workflow search (invisible to LLM). Ref: #/components/schemas/EnrichmentResults
func (*EnrichmentResults) Decode ¶
func (s *EnrichmentResults) Decode(d *jx.Decoder) error
Decode decodes EnrichmentResults from json.
func (*EnrichmentResults) Encode ¶
func (s *EnrichmentResults) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*EnrichmentResults) GetBusinessClassification ¶
func (s *EnrichmentResults) GetBusinessClassification() OptNilBusinessClassification
GetBusinessClassification returns the value of BusinessClassification.
func (*EnrichmentResults) GetCustomLabels ¶
func (s *EnrichmentResults) GetCustomLabels() OptNilEnrichmentResultsCustomLabels
GetCustomLabels returns the value of CustomLabels.
func (*EnrichmentResults) GetKubernetesContext ¶
func (s *EnrichmentResults) GetKubernetesContext() OptNilEnrichmentResultsKubernetesContext
GetKubernetesContext returns the value of KubernetesContext.
func (*EnrichmentResults) MarshalJSON ¶
func (s *EnrichmentResults) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*EnrichmentResults) SetBusinessClassification ¶
func (s *EnrichmentResults) SetBusinessClassification(val OptNilBusinessClassification)
SetBusinessClassification sets the value of BusinessClassification.
func (*EnrichmentResults) SetCustomLabels ¶
func (s *EnrichmentResults) SetCustomLabels(val OptNilEnrichmentResultsCustomLabels)
SetCustomLabels sets the value of CustomLabels.
func (*EnrichmentResults) SetKubernetesContext ¶
func (s *EnrichmentResults) SetKubernetesContext(val OptNilEnrichmentResultsKubernetesContext)
SetKubernetesContext sets the value of KubernetesContext.
func (*EnrichmentResults) UnmarshalJSON ¶
func (s *EnrichmentResults) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EnrichmentResults) Validate ¶
func (s *EnrichmentResults) Validate() error
type EnrichmentResultsCustomLabels ¶
func (*EnrichmentResultsCustomLabels) Decode ¶
func (s *EnrichmentResultsCustomLabels) Decode(d *jx.Decoder) error
Decode decodes EnrichmentResultsCustomLabels from json.
func (EnrichmentResultsCustomLabels) Encode ¶
func (s EnrichmentResultsCustomLabels) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (EnrichmentResultsCustomLabels) MarshalJSON ¶
func (s EnrichmentResultsCustomLabels) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*EnrichmentResultsCustomLabels) UnmarshalJSON ¶
func (s *EnrichmentResultsCustomLabels) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (EnrichmentResultsCustomLabels) Validate ¶
func (s EnrichmentResultsCustomLabels) Validate() error
type EnrichmentResultsKubernetesContext ¶
func (*EnrichmentResultsKubernetesContext) Decode ¶
func (s *EnrichmentResultsKubernetesContext) Decode(d *jx.Decoder) error
Decode decodes EnrichmentResultsKubernetesContext from json.
func (EnrichmentResultsKubernetesContext) Encode ¶
func (s EnrichmentResultsKubernetesContext) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (EnrichmentResultsKubernetesContext) MarshalJSON ¶
func (s EnrichmentResultsKubernetesContext) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*EnrichmentResultsKubernetesContext) UnmarshalJSON ¶
func (s *EnrichmentResultsKubernetesContext) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type HTTPError ¶
type HTTPError struct {
Type string `json:"type"`
Title string `json:"title"`
Detail string `json:"detail"`
Status int `json:"status"`
Instance string `json:"instance"`
RequestID OptNilString `json:"request_id"`
}
RFC 7807 Problem Details for HTTP APIs Business Requirement: BR-HAPI-200 - RFC 7807 Error Response Standard Design Decision: DD-004 - RFC 7807 Problem Details Reference: https://tools.ietf.org/html/rfc7807 Reference: Gateway Service (pkg/gateway/errors/rfc7807.go) Reference: Context API (pkg/contextapi/errors/rfc7807.go) Reference: Dynamic Toolset (pkg/toolset/errors/rfc7807.go) Named HTTPError in OpenAPI spec for compatibility with existing Go client. Ref: #/components/schemas/HTTPError
func (*HTTPError) GetInstance ¶
GetInstance returns the value of Instance.
func (*HTTPError) GetRequestID ¶
func (s *HTTPError) GetRequestID() OptNilString
GetRequestID returns the value of RequestID.
func (*HTTPError) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*HTTPError) SetInstance ¶
SetInstance sets the value of Instance.
func (*HTTPError) SetRequestID ¶
func (s *HTTPError) SetRequestID(val OptNilString)
SetRequestID sets the value of RequestID.
func (*HTTPError) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type HTTPValidationError ¶
type HTTPValidationError struct {
Detail []ValidationError `json:"detail"`
}
Ref: #/components/schemas/HTTPValidationError
func (*HTTPValidationError) Decode ¶
func (s *HTTPValidationError) Decode(d *jx.Decoder) error
Decode decodes HTTPValidationError from json.
func (*HTTPValidationError) Encode ¶
func (s *HTTPValidationError) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*HTTPValidationError) GetDetail ¶
func (s *HTTPValidationError) GetDetail() []ValidationError
GetDetail returns the value of Detail.
func (*HTTPValidationError) MarshalJSON ¶
func (s *HTTPValidationError) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*HTTPValidationError) SetDetail ¶
func (s *HTTPValidationError) SetDetail(val []ValidationError)
SetDetail sets the value of Detail.
func (*HTTPValidationError) UnmarshalJSON ¶
func (s *HTTPValidationError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*HTTPValidationError) Validate ¶
func (s *HTTPValidationError) Validate() error
type Handler ¶
type Handler interface {
// GetConfigConfigGet implements get_config_config_get operation.
//
// Get service configuration (sanitized)
// Business Requirement: BR-HAPI-128 (Configuration endpoint).
//
// GET /config
GetConfigConfigGet(ctx context.Context) (jx.Raw, error)
// HealthCheckHealthGet implements health_check_health_get operation.
//
// Liveness probe endpoint
// Business Requirement: BR-HAPI-126 (Health check endpoint).
//
// GET /health
HealthCheckHealthGet(ctx context.Context) (jx.Raw, error)
// IncidentAnalyzeEndpointAPIV1IncidentAnalyzePost implements incident_analyze_endpoint_api_v1_incident_analyze_post operation.
//
// Submit incident analysis request (async session-based pattern).
// Business Requirement: BR-HAPI-002 (Incident analysis endpoint)
// Business Requirement: BR-AA-HAPI-064.1 (Async submit returns session ID)
// Design Decision: DD-AUTH-006 (User attribution for LLM cost tracking)
// Called by: AIAnalysis Controller via SubmitInvestigation()
// Returns HTTP 202 Accepted with {"session_id": "<uuid>"}.
// The investigation runs as a background task. Poll via GET /incident/session/{id}.
//
// POST /api/v1/incident/analyze
IncidentAnalyzeEndpointAPIV1IncidentAnalyzePost(ctx context.Context, req *IncidentRequest) (IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostRes, error)
// IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGet implements incident_session_result_endpoint_api_v1_incident_session__session_id__result_get operation.
//
// Retrieve completed investigation result. BR-AA-HAPI-064.3.
//
// GET /api/v1/incident/session/{session_id}/result
IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGet(ctx context.Context, params IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetParams) (IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetRes, error)
// IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGet implements incident_session_status_endpoint_api_v1_incident_session__session_id__get operation.
//
// Poll session status. BR-AA-HAPI-064.2.
//
// GET /api/v1/incident/session/{session_id}
IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGet(ctx context.Context, params IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetParams) (IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetRes, error)
// ReadinessCheckReadyGet implements readiness_check_ready_get operation.
//
// Readiness probe endpoint
// Business Requirements:
// - BR-HAPI-127 (Readiness check endpoint)
// - BR-HAPI-201 (Graceful shutdown with DD-007 pattern)
// TDD GREEN Phase: Check shutdown flag first
// REFACTOR phase: Real dependency health checks.
//
// GET /ready
ReadinessCheckReadyGet(ctx context.Context) (jx.Raw, error)
}
Handler handles operations described by OpenAPI v3 specification.
type HumanReviewReason ¶
type HumanReviewReason string
Structured reason for needs_human_review=true. Business Requirements: BR-HAPI-197, BR-HAPI-200, BR-496 Design Decision: DD-HAPI-002 v1.2, DD-HAPI-006 v1.3 AIAnalysis uses this for reliable subReason mapping instead of parsing warnings. Ref: #/components/schemas/HumanReviewReason
const ( HumanReviewReasonWorkflowNotFound HumanReviewReason = "workflow_not_found" HumanReviewReasonImageMismatch HumanReviewReason = "image_mismatch" HumanReviewReasonParameterValidationFailed HumanReviewReason = "parameter_validation_failed" HumanReviewReasonNoMatchingWorkflows HumanReviewReason = "no_matching_workflows" HumanReviewReasonLowConfidence HumanReviewReason = "low_confidence" HumanReviewReasonLlmParsingError HumanReviewReason = "llm_parsing_error" HumanReviewReasonInvestigationInconclusive HumanReviewReason = "investigation_inconclusive" HumanReviewReasonRcaIncomplete HumanReviewReason = "rca_incomplete" )
func (HumanReviewReason) AllValues ¶
func (HumanReviewReason) AllValues() []HumanReviewReason
AllValues returns all HumanReviewReason values.
func (*HumanReviewReason) Decode ¶
func (s *HumanReviewReason) Decode(d *jx.Decoder) error
Decode decodes HumanReviewReason from json.
func (HumanReviewReason) Encode ¶
func (s HumanReviewReason) Encode(e *jx.Encoder)
Encode encodes HumanReviewReason as json.
func (HumanReviewReason) MarshalJSON ¶
func (s HumanReviewReason) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (HumanReviewReason) MarshalText ¶
func (s HumanReviewReason) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*HumanReviewReason) UnmarshalJSON ¶
func (s *HumanReviewReason) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*HumanReviewReason) UnmarshalText ¶
func (s *HumanReviewReason) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (HumanReviewReason) Validate ¶
func (s HumanReviewReason) Validate() error
type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostAcceptedApplicationJSON ¶
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostAcceptedApplicationJSON) Decode ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostAcceptedApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostAcceptedApplicationJSON from json.
func (IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostAcceptedApplicationJSON) Encode ¶
func (s IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostAcceptedApplicationJSON) Encode(e *jx.Encoder)
Encode encodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostAcceptedApplicationJSON as json.
func (IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostAcceptedApplicationJSON) MarshalJSON ¶
func (s IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostAcceptedApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostAcceptedApplicationJSON) UnmarshalJSON ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostAcceptedApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest ¶
type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest HTTPError
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest) Decode ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest) Decode(d *jx.Decoder) error
Decode decodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest from json.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest) Encode ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest) Encode(e *jx.Encoder)
Encode encodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest as json.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest) MarshalJSON ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest) UnmarshalJSON ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden ¶
type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden HTTPError
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden) Decode ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden) Decode(d *jx.Decoder) error
Decode decodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden from json.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden) Encode ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden) Encode(e *jx.Encoder)
Encode encodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden as json.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden) MarshalJSON ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden) UnmarshalJSON ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError ¶
type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError HTTPError
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError) Decode ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError) Decode(d *jx.Decoder) error
Decode decodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError from json.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError) Encode ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError) Encode(e *jx.Encoder)
Encode encodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError as json.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError) MarshalJSON ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError) UnmarshalJSON ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized ¶
type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized HTTPError
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized) Decode ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized) Decode(d *jx.Decoder) error
Decode decodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized from json.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized) Encode ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized) Encode(e *jx.Encoder)
Encode encodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized as json.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized) MarshalJSON ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized) UnmarshalJSON ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity ¶
type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity HTTPError
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity) Decode ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity) Decode(d *jx.Decoder) error
Decode decodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity from json.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity) Encode ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity) Encode(e *jx.Encoder)
Encode encodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity as json.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity) MarshalJSON ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity) UnmarshalJSON ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON ¶
type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON struct {
Type string `json:"type"`
Title string `json:"title"`
Detail string `json:"detail"`
Status int `json:"status"`
Instance string `json:"instance"`
RequestID OptNilString `json:"request_id"`
}
RFC 7807 Problem Details for HTTP APIs Business Requirement: BR-HAPI-200 - RFC 7807 Error Response Standard Design Decision: DD-004 - RFC 7807 Problem Details Reference: https://tools.ietf.org/html/rfc7807 Reference: Gateway Service (pkg/gateway/errors/rfc7807.go) Reference: Context API (pkg/contextapi/errors/rfc7807.go) Reference: Dynamic Toolset (pkg/toolset/errors/rfc7807.go) Named HTTPError in OpenAPI spec for compatibility with existing Go client.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) Decode ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) Decode(d *jx.Decoder) error
Decode decodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON from json.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) Encode ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) GetDetail ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) GetDetail() string
GetDetail returns the value of Detail.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) GetInstance ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) GetInstance() string
GetInstance returns the value of Instance.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) GetRequestID ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) GetRequestID() OptNilString
GetRequestID returns the value of RequestID.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) GetStatus ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) GetStatus() int
GetStatus returns the value of Status.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) GetTitle ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) GetTitle() string
GetTitle returns the value of Title.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) GetType ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) GetType() string
GetType returns the value of Type.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) MarshalJSON ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) SetDetail ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) SetDetail(val string)
SetDetail sets the value of Detail.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) SetInstance ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) SetInstance(val string)
SetInstance sets the value of Instance.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) SetRequestID ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) SetRequestID(val OptNilString)
SetRequestID sets the value of RequestID.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) SetStatus ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) SetStatus(val int)
SetStatus sets the value of Status.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) SetTitle ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) SetTitle(val string)
SetTitle sets the value of Title.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) SetType ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) SetType(val string)
SetType sets the value of Type.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) UnmarshalJSON ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON ¶
type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON struct {
Type string `json:"type"`
Title string `json:"title"`
Detail string `json:"detail"`
Status int `json:"status"`
Instance string `json:"instance"`
RequestID OptNilString `json:"request_id"`
}
RFC 7807 Problem Details for HTTP APIs Business Requirement: BR-HAPI-200 - RFC 7807 Error Response Standard Design Decision: DD-004 - RFC 7807 Problem Details Reference: https://tools.ietf.org/html/rfc7807 Reference: Gateway Service (pkg/gateway/errors/rfc7807.go) Reference: Context API (pkg/contextapi/errors/rfc7807.go) Reference: Dynamic Toolset (pkg/toolset/errors/rfc7807.go) Named HTTPError in OpenAPI spec for compatibility with existing Go client.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) Decode ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) Decode(d *jx.Decoder) error
Decode decodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON from json.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) Encode ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) GetDetail ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) GetDetail() string
GetDetail returns the value of Detail.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) GetInstance ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) GetInstance() string
GetInstance returns the value of Instance.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) GetRequestID ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) GetRequestID() OptNilString
GetRequestID returns the value of RequestID.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) GetStatus ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) GetStatus() int
GetStatus returns the value of Status.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) GetTitle ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) GetTitle() string
GetTitle returns the value of Title.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) GetType ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) GetType() string
GetType returns the value of Type.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) MarshalJSON ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) SetDetail ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) SetDetail(val string)
SetDetail sets the value of Detail.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) SetInstance ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) SetInstance(val string)
SetInstance sets the value of Instance.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) SetRequestID ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) SetRequestID(val OptNilString)
SetRequestID sets the value of RequestID.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) SetStatus ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) SetStatus(val int)
SetStatus sets the value of Status.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) SetTitle ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) SetTitle(val string)
SetTitle sets the value of Title.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) SetType ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) SetType(val string)
SetType sets the value of Type.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) UnmarshalJSON ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON ¶
type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON struct {
Type string `json:"type"`
Title string `json:"title"`
Detail string `json:"detail"`
Status int `json:"status"`
Instance string `json:"instance"`
RequestID OptNilString `json:"request_id"`
}
RFC 7807 Problem Details for HTTP APIs Business Requirement: BR-HAPI-200 - RFC 7807 Error Response Standard Design Decision: DD-004 - RFC 7807 Problem Details Reference: https://tools.ietf.org/html/rfc7807 Reference: Gateway Service (pkg/gateway/errors/rfc7807.go) Reference: Context API (pkg/contextapi/errors/rfc7807.go) Reference: Dynamic Toolset (pkg/toolset/errors/rfc7807.go) Named HTTPError in OpenAPI spec for compatibility with existing Go client.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) Decode ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) Decode(d *jx.Decoder) error
Decode decodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON from json.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) Encode ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) GetDetail ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) GetDetail() string
GetDetail returns the value of Detail.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) GetInstance ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) GetInstance() string
GetInstance returns the value of Instance.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) GetRequestID ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) GetRequestID() OptNilString
GetRequestID returns the value of RequestID.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) GetStatus ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) GetStatus() int
GetStatus returns the value of Status.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) GetTitle ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) GetTitle() string
GetTitle returns the value of Title.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) GetType ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) GetType() string
GetType returns the value of Type.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) MarshalJSON ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) SetDetail ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) SetDetail(val string)
SetDetail sets the value of Detail.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) SetInstance ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) SetInstance(val string)
SetInstance sets the value of Instance.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) SetRequestID ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) SetRequestID(val OptNilString)
SetRequestID sets the value of RequestID.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) SetStatus ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) SetStatus(val int)
SetStatus sets the value of Status.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) SetTitle ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) SetTitle(val string)
SetTitle sets the value of Title.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) SetType ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) SetType(val string)
SetType sets the value of Type.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) UnmarshalJSON ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostRes ¶
type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostRes interface {
// contains filtered or unexported methods
}
type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON ¶
type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON struct {
}
RFC 7807 Problem Details for HTTP APIs Business Requirement: BR-HAPI-200 - RFC 7807 Error Response Standard Design Decision: DD-004 - RFC 7807 Problem Details Reference: https://tools.ietf.org/html/rfc7807 Reference: Gateway Service (pkg/gateway/errors/rfc7807.go) Reference: Context API (pkg/contextapi/errors/rfc7807.go) Reference: Dynamic Toolset (pkg/toolset/errors/rfc7807.go) Named HTTPError in OpenAPI spec for compatibility with existing Go client.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) Decode ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) Decode(d *jx.Decoder) error
Decode decodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON from json.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) Encode ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) GetDetail ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) GetDetail() string
GetDetail returns the value of Detail.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) GetInstance ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) GetInstance() string
GetInstance returns the value of Instance.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) GetRequestID ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) GetRequestID() OptNilString
GetRequestID returns the value of RequestID.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) GetStatus ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) GetStatus() int
GetStatus returns the value of Status.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) GetTitle ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) GetTitle() string
GetTitle returns the value of Title.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) GetType ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) GetType() string
GetType returns the value of Type.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) MarshalJSON ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) SetDetail ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) SetDetail(val string)
SetDetail sets the value of Detail.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) SetInstance ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) SetInstance(val string)
SetInstance sets the value of Instance.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) SetRequestID ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) SetRequestID(val OptNilString)
SetRequestID sets the value of RequestID.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) SetStatus ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) SetStatus(val int)
SetStatus sets the value of Status.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) SetTitle ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) SetTitle(val string)
SetTitle sets the value of Title.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) SetType ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) SetType(val string)
SetType sets the value of Type.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) UnmarshalJSON ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON ¶
type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON struct {
Type string `json:"type"`
Title string `json:"title"`
Detail string `json:"detail"`
Status int `json:"status"`
Instance string `json:"instance"`
RequestID OptNilString `json:"request_id"`
}
RFC 7807 Problem Details for HTTP APIs Business Requirement: BR-HAPI-200 - RFC 7807 Error Response Standard Design Decision: DD-004 - RFC 7807 Problem Details Reference: https://tools.ietf.org/html/rfc7807 Reference: Gateway Service (pkg/gateway/errors/rfc7807.go) Reference: Context API (pkg/contextapi/errors/rfc7807.go) Reference: Dynamic Toolset (pkg/toolset/errors/rfc7807.go) Named HTTPError in OpenAPI spec for compatibility with existing Go client.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) Decode ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) Decode(d *jx.Decoder) error
Decode decodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON from json.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) Encode ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) GetDetail ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) GetDetail() string
GetDetail returns the value of Detail.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) GetInstance ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) GetInstance() string
GetInstance returns the value of Instance.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) GetRequestID ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) GetRequestID() OptNilString
GetRequestID returns the value of RequestID.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) GetStatus ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) GetStatus() int
GetStatus returns the value of Status.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) GetTitle ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) GetTitle() string
GetTitle returns the value of Title.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) GetType ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) GetType() string
GetType returns the value of Type.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) MarshalJSON ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) SetDetail ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) SetDetail(val string)
SetDetail sets the value of Detail.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) SetInstance ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) SetInstance(val string)
SetInstance sets the value of Instance.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) SetRequestID ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) SetRequestID(val OptNilString)
SetRequestID sets the value of RequestID.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) SetStatus ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) SetStatus(val int)
SetStatus sets the value of Status.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) SetTitle ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) SetTitle(val string)
SetTitle sets the value of Title.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) SetType ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) SetType(val string)
SetType sets the value of Type.
func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) UnmarshalJSON ¶
func (s *IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type IncidentRequest ¶
type IncidentRequest struct {
// Unique incident identifier.
IncidentID string `json:"incident_id"`
// Remediation request ID for audit correlation (e.g., 'req-2025-11-27-abc123'). MANDATORY per
// DD-WORKFLOW-002 v2.2. This ID is for CORRELATION/AUDIT ONLY - do NOT use for RCA analysis or
// workflow matching.
RemediationID string `json:"remediation_id"`
// Canonical signal name (e.g., OOMKilled, CrashLoopBackOff).
SignalName string `json:"signal_name"`
// Signal severity (BR-SEVERITY-001: critical, high, medium, low, unknown).
Severity Severity `json:"severity"`
// Monitoring system.
SignalSource string `json:"signal_source"`
// Kubernetes namespace.
ResourceNamespace string `json:"resource_namespace"`
// Kubernetes resource kind.
ResourceKind string `json:"resource_kind"`
// Resource name.
ResourceName string `json:"resource_name"`
// Error message.
ErrorMessage string `json:"error_message"`
// Additional description.
Description OptNilString `json:"description"`
// Deployment environment.
Environment string `json:"environment"`
// Business priority.
Priority string `json:"priority"`
// Risk tolerance.
RiskTolerance string `json:"risk_tolerance"`
// Business category.
BusinessCategory string `json:"business_category"`
// Kubernetes cluster name.
ClusterName string `json:"cluster_name"`
// Duplicate signal.
IsDuplicate OptNilBool `json:"is_duplicate"`
// Occurrence count.
OccurrenceCount OptNilInt `json:"occurrence_count"`
// Dedup window.
DeduplicationWindowMinutes OptNilInt `json:"deduplication_window_minutes"`
// Firing time.
FiringTime OptNilString `json:"firing_time"`
// Received time.
ReceivedTime OptNilString `json:"received_time"`
// First seen.
FirstSeen OptNilString `json:"first_seen"`
// Last seen.
LastSeen OptNilString `json:"last_seen"`
// Signal labels.
SignalLabels OptNilIncidentRequestSignalLabels `json:"signal_labels"`
// Enriched context from SignalProcessing.
EnrichmentResults OptNilEnrichmentResults `json:"enrichment_results"`
// Signal mode: 'reactive' or 'proactive'. Controls prompt strategy (ADR-054).
SignalMode OptNilSignalMode `json:"signal_mode"`
}
Request model for initial incident analysis endpoint Business Requirements: - BR-HAPI-002: Incident analysis request schema - BR-AUDIT-001: Unified audit trail (remediation_id) Design Decision: DD-WORKFLOW-002 v2.2 - remediation_id is MANDATORY for audit trail correlation - remediation_id is for CORRELATION ONLY - do NOT use for RCA or workflow matching Design Decision: DD-HAPI-001 - enrichment_results contains DetectedLabels for workflow filtering. Ref: #/components/schemas/IncidentRequest
func (*IncidentRequest) Decode ¶
func (s *IncidentRequest) Decode(d *jx.Decoder) error
Decode decodes IncidentRequest from json.
func (*IncidentRequest) Encode ¶
func (s *IncidentRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*IncidentRequest) GetBusinessCategory ¶
func (s *IncidentRequest) GetBusinessCategory() string
GetBusinessCategory returns the value of BusinessCategory.
func (*IncidentRequest) GetClusterName ¶
func (s *IncidentRequest) GetClusterName() string
GetClusterName returns the value of ClusterName.
func (*IncidentRequest) GetDeduplicationWindowMinutes ¶
func (s *IncidentRequest) GetDeduplicationWindowMinutes() OptNilInt
GetDeduplicationWindowMinutes returns the value of DeduplicationWindowMinutes.
func (*IncidentRequest) GetDescription ¶
func (s *IncidentRequest) GetDescription() OptNilString
GetDescription returns the value of Description.
func (*IncidentRequest) GetEnrichmentResults ¶
func (s *IncidentRequest) GetEnrichmentResults() OptNilEnrichmentResults
GetEnrichmentResults returns the value of EnrichmentResults.
func (*IncidentRequest) GetEnvironment ¶
func (s *IncidentRequest) GetEnvironment() string
GetEnvironment returns the value of Environment.
func (*IncidentRequest) GetErrorMessage ¶
func (s *IncidentRequest) GetErrorMessage() string
GetErrorMessage returns the value of ErrorMessage.
func (*IncidentRequest) GetFiringTime ¶
func (s *IncidentRequest) GetFiringTime() OptNilString
GetFiringTime returns the value of FiringTime.
func (*IncidentRequest) GetFirstSeen ¶
func (s *IncidentRequest) GetFirstSeen() OptNilString
GetFirstSeen returns the value of FirstSeen.
func (*IncidentRequest) GetIncidentID ¶
func (s *IncidentRequest) GetIncidentID() string
GetIncidentID returns the value of IncidentID.
func (*IncidentRequest) GetIsDuplicate ¶
func (s *IncidentRequest) GetIsDuplicate() OptNilBool
GetIsDuplicate returns the value of IsDuplicate.
func (*IncidentRequest) GetLastSeen ¶
func (s *IncidentRequest) GetLastSeen() OptNilString
GetLastSeen returns the value of LastSeen.
func (*IncidentRequest) GetOccurrenceCount ¶
func (s *IncidentRequest) GetOccurrenceCount() OptNilInt
GetOccurrenceCount returns the value of OccurrenceCount.
func (*IncidentRequest) GetPriority ¶
func (s *IncidentRequest) GetPriority() string
GetPriority returns the value of Priority.
func (*IncidentRequest) GetReceivedTime ¶
func (s *IncidentRequest) GetReceivedTime() OptNilString
GetReceivedTime returns the value of ReceivedTime.
func (*IncidentRequest) GetRemediationID ¶
func (s *IncidentRequest) GetRemediationID() string
GetRemediationID returns the value of RemediationID.
func (*IncidentRequest) GetResourceKind ¶
func (s *IncidentRequest) GetResourceKind() string
GetResourceKind returns the value of ResourceKind.
func (*IncidentRequest) GetResourceName ¶
func (s *IncidentRequest) GetResourceName() string
GetResourceName returns the value of ResourceName.
func (*IncidentRequest) GetResourceNamespace ¶
func (s *IncidentRequest) GetResourceNamespace() string
GetResourceNamespace returns the value of ResourceNamespace.
func (*IncidentRequest) GetRiskTolerance ¶
func (s *IncidentRequest) GetRiskTolerance() string
GetRiskTolerance returns the value of RiskTolerance.
func (*IncidentRequest) GetSeverity ¶
func (s *IncidentRequest) GetSeverity() Severity
GetSeverity returns the value of Severity.
func (*IncidentRequest) GetSignalLabels ¶
func (s *IncidentRequest) GetSignalLabels() OptNilIncidentRequestSignalLabels
GetSignalLabels returns the value of SignalLabels.
func (*IncidentRequest) GetSignalMode ¶
func (s *IncidentRequest) GetSignalMode() OptNilSignalMode
GetSignalMode returns the value of SignalMode.
func (*IncidentRequest) GetSignalName ¶
func (s *IncidentRequest) GetSignalName() string
GetSignalName returns the value of SignalName.
func (*IncidentRequest) GetSignalSource ¶
func (s *IncidentRequest) GetSignalSource() string
GetSignalSource returns the value of SignalSource.
func (*IncidentRequest) MarshalJSON ¶
func (s *IncidentRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IncidentRequest) SetBusinessCategory ¶
func (s *IncidentRequest) SetBusinessCategory(val string)
SetBusinessCategory sets the value of BusinessCategory.
func (*IncidentRequest) SetClusterName ¶
func (s *IncidentRequest) SetClusterName(val string)
SetClusterName sets the value of ClusterName.
func (*IncidentRequest) SetDeduplicationWindowMinutes ¶
func (s *IncidentRequest) SetDeduplicationWindowMinutes(val OptNilInt)
SetDeduplicationWindowMinutes sets the value of DeduplicationWindowMinutes.
func (*IncidentRequest) SetDescription ¶
func (s *IncidentRequest) SetDescription(val OptNilString)
SetDescription sets the value of Description.
func (*IncidentRequest) SetEnrichmentResults ¶
func (s *IncidentRequest) SetEnrichmentResults(val OptNilEnrichmentResults)
SetEnrichmentResults sets the value of EnrichmentResults.
func (*IncidentRequest) SetEnvironment ¶
func (s *IncidentRequest) SetEnvironment(val string)
SetEnvironment sets the value of Environment.
func (*IncidentRequest) SetErrorMessage ¶
func (s *IncidentRequest) SetErrorMessage(val string)
SetErrorMessage sets the value of ErrorMessage.
func (*IncidentRequest) SetFiringTime ¶
func (s *IncidentRequest) SetFiringTime(val OptNilString)
SetFiringTime sets the value of FiringTime.
func (*IncidentRequest) SetFirstSeen ¶
func (s *IncidentRequest) SetFirstSeen(val OptNilString)
SetFirstSeen sets the value of FirstSeen.
func (*IncidentRequest) SetIncidentID ¶
func (s *IncidentRequest) SetIncidentID(val string)
SetIncidentID sets the value of IncidentID.
func (*IncidentRequest) SetIsDuplicate ¶
func (s *IncidentRequest) SetIsDuplicate(val OptNilBool)
SetIsDuplicate sets the value of IsDuplicate.
func (*IncidentRequest) SetLastSeen ¶
func (s *IncidentRequest) SetLastSeen(val OptNilString)
SetLastSeen sets the value of LastSeen.
func (*IncidentRequest) SetOccurrenceCount ¶
func (s *IncidentRequest) SetOccurrenceCount(val OptNilInt)
SetOccurrenceCount sets the value of OccurrenceCount.
func (*IncidentRequest) SetPriority ¶
func (s *IncidentRequest) SetPriority(val string)
SetPriority sets the value of Priority.
func (*IncidentRequest) SetReceivedTime ¶
func (s *IncidentRequest) SetReceivedTime(val OptNilString)
SetReceivedTime sets the value of ReceivedTime.
func (*IncidentRequest) SetRemediationID ¶
func (s *IncidentRequest) SetRemediationID(val string)
SetRemediationID sets the value of RemediationID.
func (*IncidentRequest) SetResourceKind ¶
func (s *IncidentRequest) SetResourceKind(val string)
SetResourceKind sets the value of ResourceKind.
func (*IncidentRequest) SetResourceName ¶
func (s *IncidentRequest) SetResourceName(val string)
SetResourceName sets the value of ResourceName.
func (*IncidentRequest) SetResourceNamespace ¶
func (s *IncidentRequest) SetResourceNamespace(val string)
SetResourceNamespace sets the value of ResourceNamespace.
func (*IncidentRequest) SetRiskTolerance ¶
func (s *IncidentRequest) SetRiskTolerance(val string)
SetRiskTolerance sets the value of RiskTolerance.
func (*IncidentRequest) SetSeverity ¶
func (s *IncidentRequest) SetSeverity(val Severity)
SetSeverity sets the value of Severity.
func (*IncidentRequest) SetSignalLabels ¶
func (s *IncidentRequest) SetSignalLabels(val OptNilIncidentRequestSignalLabels)
SetSignalLabels sets the value of SignalLabels.
func (*IncidentRequest) SetSignalMode ¶
func (s *IncidentRequest) SetSignalMode(val OptNilSignalMode)
SetSignalMode sets the value of SignalMode.
func (*IncidentRequest) SetSignalName ¶
func (s *IncidentRequest) SetSignalName(val string)
SetSignalName sets the value of SignalName.
func (*IncidentRequest) SetSignalSource ¶
func (s *IncidentRequest) SetSignalSource(val string)
SetSignalSource sets the value of SignalSource.
func (*IncidentRequest) UnmarshalJSON ¶
func (s *IncidentRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*IncidentRequest) Validate ¶
func (s *IncidentRequest) Validate() error
type IncidentRequestSignalLabels ¶
func (*IncidentRequestSignalLabels) Decode ¶
func (s *IncidentRequestSignalLabels) Decode(d *jx.Decoder) error
Decode decodes IncidentRequestSignalLabels from json.
func (IncidentRequestSignalLabels) Encode ¶
func (s IncidentRequestSignalLabels) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (IncidentRequestSignalLabels) MarshalJSON ¶
func (s IncidentRequestSignalLabels) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IncidentRequestSignalLabels) UnmarshalJSON ¶
func (s *IncidentRequestSignalLabels) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type IncidentResponse ¶
type IncidentResponse struct {
// Incident identifier from request.
IncidentID string `json:"incident_id"`
// Natural language analysis from LLM.
Analysis string `json:"analysis"`
// Structured RCA with summary, severity, contributing_factors.
RootCauseAnalysis IncidentResponseRootCauseAnalysis `json:"root_cause_analysis"`
// Selected workflow with workflow_id, execution_bundle, confidence, parameters.
SelectedWorkflow OptNilIncidentResponseSelectedWorkflow `json:"selected_workflow"`
// Overall confidence in analysis.
Confidence float64 `json:"confidence"`
// ISO timestamp of analysis completion.
Timestamp string `json:"timestamp"`
// True when AI analysis could not produce a reliable result. Reasons include: workflow validation
// failures after retries, LLM parsing errors, no suitable workflow found, or other AI reliability
// issues. When true, AIAnalysis should NOT create WorkflowExecution - requires human intervention.
// Check 'human_review_reason' for structured reason or 'warnings' for details.
NeedsHumanReview OptBool `json:"needs_human_review"`
// Structured reason when needs_human_review=true. Use this for reliable subReason mapping instead of
// parsing warnings. Values: workflow_not_found, image_mismatch, parameter_validation_failed,
// no_matching_workflows, low_confidence, llm_parsing_error.
HumanReviewReason OptNilHumanReviewReason `json:"human_review_reason"`
// LLM's assessment of whether the alert warrants action. False when the alert is benign and no
// remediation is needed. None when the LLM did not explicitly assess actionability. Maps to
// AIAnalysis.Status.Actionability.
IsActionable OptNilBool `json:"is_actionable"`
// Non-fatal warnings (e.g., OwnerChain validation issues, low confidence).
Warnings []string `json:"warnings"`
// Other workflows considered but not selected. For operator context and audit trail only - NOT for
// automatic fallback execution. Helps operators understand AI reasoning.
AlternativeWorkflows []AlternativeWorkflow `json:"alternative_workflows"`
// History of all validation attempts during LLM self-correction. Each attempt records workflow_id,
// validation result, and any errors. Empty if validation passed on first attempt or no workflow was
// selected.
ValidationAttemptsHistory []ValidationAttempt `json:"validation_attempts_history"`
// Cluster characteristics detected at runtime by HAPI (ADR-056). Includes: gitOpsManaged,
// pdbProtected, hpaEnabled, stateful, helmManaged, networkIsolated, serviceMesh, failedDetections.
DetectedLabels OptNilIncidentResponseDetectedLabels `json:"detected_labels"`
}
Response model for incident analysis endpoint Business Requirement: BR-HAPI-002 (Incident analysis response schema) Design Decision: DD-HAPI-002 v1.2 (Workflow Response Validation) Design Decision: ADR-045 v1.2 (Alternative Workflows for Audit) Design Decision: ADR-055 (LLM-Driven Context Enrichment) Fields added per AIAnalysis team requests: - warnings: Non-fatal warnings for transparency (Dec 2, 2025) - alternative_workflows: Other workflows considered (Dec 5, 2025) - INFORMATIONAL ONLY - needs_human_review: AI could not produce reliable result (Dec 6, 2025) ADR-055: target_in_owner_chain removed -- replaced by affected_resource in Rego input. Ref: #/components/schemas/IncidentResponse
func (*IncidentResponse) Decode ¶
func (s *IncidentResponse) Decode(d *jx.Decoder) error
Decode decodes IncidentResponse from json.
func (*IncidentResponse) Encode ¶
func (s *IncidentResponse) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*IncidentResponse) GetAlternativeWorkflows ¶
func (s *IncidentResponse) GetAlternativeWorkflows() []AlternativeWorkflow
GetAlternativeWorkflows returns the value of AlternativeWorkflows.
func (*IncidentResponse) GetAnalysis ¶
func (s *IncidentResponse) GetAnalysis() string
GetAnalysis returns the value of Analysis.
func (*IncidentResponse) GetConfidence ¶
func (s *IncidentResponse) GetConfidence() float64
GetConfidence returns the value of Confidence.
func (*IncidentResponse) GetDetectedLabels ¶
func (s *IncidentResponse) GetDetectedLabels() OptNilIncidentResponseDetectedLabels
GetDetectedLabels returns the value of DetectedLabels.
func (*IncidentResponse) GetHumanReviewReason ¶
func (s *IncidentResponse) GetHumanReviewReason() OptNilHumanReviewReason
GetHumanReviewReason returns the value of HumanReviewReason.
func (*IncidentResponse) GetIncidentID ¶
func (s *IncidentResponse) GetIncidentID() string
GetIncidentID returns the value of IncidentID.
func (*IncidentResponse) GetIsActionable ¶
func (s *IncidentResponse) GetIsActionable() OptNilBool
GetIsActionable returns the value of IsActionable.
func (*IncidentResponse) GetNeedsHumanReview ¶
func (s *IncidentResponse) GetNeedsHumanReview() OptBool
GetNeedsHumanReview returns the value of NeedsHumanReview.
func (*IncidentResponse) GetRootCauseAnalysis ¶
func (s *IncidentResponse) GetRootCauseAnalysis() IncidentResponseRootCauseAnalysis
GetRootCauseAnalysis returns the value of RootCauseAnalysis.
func (*IncidentResponse) GetSelectedWorkflow ¶
func (s *IncidentResponse) GetSelectedWorkflow() OptNilIncidentResponseSelectedWorkflow
GetSelectedWorkflow returns the value of SelectedWorkflow.
func (*IncidentResponse) GetTimestamp ¶
func (s *IncidentResponse) GetTimestamp() string
GetTimestamp returns the value of Timestamp.
func (*IncidentResponse) GetValidationAttemptsHistory ¶
func (s *IncidentResponse) GetValidationAttemptsHistory() []ValidationAttempt
GetValidationAttemptsHistory returns the value of ValidationAttemptsHistory.
func (*IncidentResponse) GetWarnings ¶
func (s *IncidentResponse) GetWarnings() []string
GetWarnings returns the value of Warnings.
func (*IncidentResponse) MarshalJSON ¶
func (s *IncidentResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IncidentResponse) SetAlternativeWorkflows ¶
func (s *IncidentResponse) SetAlternativeWorkflows(val []AlternativeWorkflow)
SetAlternativeWorkflows sets the value of AlternativeWorkflows.
func (*IncidentResponse) SetAnalysis ¶
func (s *IncidentResponse) SetAnalysis(val string)
SetAnalysis sets the value of Analysis.
func (*IncidentResponse) SetConfidence ¶
func (s *IncidentResponse) SetConfidence(val float64)
SetConfidence sets the value of Confidence.
func (*IncidentResponse) SetDetectedLabels ¶
func (s *IncidentResponse) SetDetectedLabels(val OptNilIncidentResponseDetectedLabels)
SetDetectedLabels sets the value of DetectedLabels.
func (*IncidentResponse) SetHumanReviewReason ¶
func (s *IncidentResponse) SetHumanReviewReason(val OptNilHumanReviewReason)
SetHumanReviewReason sets the value of HumanReviewReason.
func (*IncidentResponse) SetIncidentID ¶
func (s *IncidentResponse) SetIncidentID(val string)
SetIncidentID sets the value of IncidentID.
func (*IncidentResponse) SetIsActionable ¶
func (s *IncidentResponse) SetIsActionable(val OptNilBool)
SetIsActionable sets the value of IsActionable.
func (*IncidentResponse) SetNeedsHumanReview ¶
func (s *IncidentResponse) SetNeedsHumanReview(val OptBool)
SetNeedsHumanReview sets the value of NeedsHumanReview.
func (*IncidentResponse) SetRootCauseAnalysis ¶
func (s *IncidentResponse) SetRootCauseAnalysis(val IncidentResponseRootCauseAnalysis)
SetRootCauseAnalysis sets the value of RootCauseAnalysis.
func (*IncidentResponse) SetSelectedWorkflow ¶
func (s *IncidentResponse) SetSelectedWorkflow(val OptNilIncidentResponseSelectedWorkflow)
SetSelectedWorkflow sets the value of SelectedWorkflow.
func (*IncidentResponse) SetTimestamp ¶
func (s *IncidentResponse) SetTimestamp(val string)
SetTimestamp sets the value of Timestamp.
func (*IncidentResponse) SetValidationAttemptsHistory ¶
func (s *IncidentResponse) SetValidationAttemptsHistory(val []ValidationAttempt)
SetValidationAttemptsHistory sets the value of ValidationAttemptsHistory.
func (*IncidentResponse) SetWarnings ¶
func (s *IncidentResponse) SetWarnings(val []string)
SetWarnings sets the value of Warnings.
func (*IncidentResponse) UnmarshalJSON ¶
func (s *IncidentResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*IncidentResponse) Validate ¶
func (s *IncidentResponse) Validate() error
type IncidentResponseDetectedLabels ¶
func (*IncidentResponseDetectedLabels) Decode ¶
func (s *IncidentResponseDetectedLabels) Decode(d *jx.Decoder) error
Decode decodes IncidentResponseDetectedLabels from json.
func (IncidentResponseDetectedLabels) Encode ¶
func (s IncidentResponseDetectedLabels) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (IncidentResponseDetectedLabels) MarshalJSON ¶
func (s IncidentResponseDetectedLabels) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IncidentResponseDetectedLabels) UnmarshalJSON ¶
func (s *IncidentResponseDetectedLabels) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type IncidentResponseRootCauseAnalysis ¶
Structured RCA with summary, severity, contributing_factors.
func (*IncidentResponseRootCauseAnalysis) Decode ¶
func (s *IncidentResponseRootCauseAnalysis) Decode(d *jx.Decoder) error
Decode decodes IncidentResponseRootCauseAnalysis from json.
func (IncidentResponseRootCauseAnalysis) Encode ¶
func (s IncidentResponseRootCauseAnalysis) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (IncidentResponseRootCauseAnalysis) MarshalJSON ¶
func (s IncidentResponseRootCauseAnalysis) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IncidentResponseRootCauseAnalysis) UnmarshalJSON ¶
func (s *IncidentResponseRootCauseAnalysis) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type IncidentResponseSelectedWorkflow ¶
func (*IncidentResponseSelectedWorkflow) Decode ¶
func (s *IncidentResponseSelectedWorkflow) Decode(d *jx.Decoder) error
Decode decodes IncidentResponseSelectedWorkflow from json.
func (IncidentResponseSelectedWorkflow) Encode ¶
func (s IncidentResponseSelectedWorkflow) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (IncidentResponseSelectedWorkflow) MarshalJSON ¶
func (s IncidentResponseSelectedWorkflow) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IncidentResponseSelectedWorkflow) UnmarshalJSON ¶
func (s *IncidentResponseSelectedWorkflow) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetConflict ¶
type IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetConflict HTTPError
func (*IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetConflict) Decode ¶
func (s *IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetConflict) Decode(d *jx.Decoder) error
Decode decodes IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetConflict from json.
func (*IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetConflict) Encode ¶
func (s *IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetConflict) Encode(e *jx.Encoder)
Encode encodes IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetConflict as json.
func (*IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetConflict) MarshalJSON ¶
func (s *IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetConflict) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetConflict) UnmarshalJSON ¶
func (s *IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetConflict) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound ¶
type IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound HTTPError
func (*IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound) Decode ¶
func (s *IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound) Decode(d *jx.Decoder) error
Decode decodes IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound from json.
func (*IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound) Encode ¶
func (s *IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound) Encode(e *jx.Encoder)
Encode encodes IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound as json.
func (*IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound) MarshalJSON ¶
func (s *IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound) UnmarshalJSON ¶
func (s *IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetParams ¶
type IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetParams struct {
SessionID string
}
IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetParams is parameters of incident_session_result_endpoint_api_v1_incident_session__session_id__result_get operation.
type IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetRes ¶
type IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetRes interface {
// contains filtered or unexported methods
}
type IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetOKApplicationJSON ¶
func (*IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetOKApplicationJSON) Decode ¶
func (s *IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetOKApplicationJSON from json.
func (IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetOKApplicationJSON) Encode ¶
func (s IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetOKApplicationJSON as json.
func (IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetOKApplicationJSON) MarshalJSON ¶
func (s IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetOKApplicationJSON) UnmarshalJSON ¶
func (s *IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetParams ¶
type IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetParams struct {
SessionID string
}
IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetParams is parameters of incident_session_status_endpoint_api_v1_incident_session__session_id__get operation.
type IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetRes ¶
type IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetRes interface {
// contains filtered or unexported methods
}
type Invoker ¶
type Invoker interface {
// GetConfigConfigGet invokes get_config_config_get operation.
//
// Get service configuration (sanitized)
// Business Requirement: BR-HAPI-128 (Configuration endpoint).
//
// GET /config
GetConfigConfigGet(ctx context.Context) (jx.Raw, error)
// HealthCheckHealthGet invokes health_check_health_get operation.
//
// Liveness probe endpoint
// Business Requirement: BR-HAPI-126 (Health check endpoint).
//
// GET /health
HealthCheckHealthGet(ctx context.Context) (jx.Raw, error)
// IncidentAnalyzeEndpointAPIV1IncidentAnalyzePost invokes incident_analyze_endpoint_api_v1_incident_analyze_post operation.
//
// Submit incident analysis request (async session-based pattern).
// Business Requirement: BR-HAPI-002 (Incident analysis endpoint)
// Business Requirement: BR-AA-HAPI-064.1 (Async submit returns session ID)
// Design Decision: DD-AUTH-006 (User attribution for LLM cost tracking)
// Called by: AIAnalysis Controller via SubmitInvestigation()
// Returns HTTP 202 Accepted with {"session_id": "<uuid>"}.
// The investigation runs as a background task. Poll via GET /incident/session/{id}.
//
// POST /api/v1/incident/analyze
IncidentAnalyzeEndpointAPIV1IncidentAnalyzePost(ctx context.Context, request *IncidentRequest) (IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostRes, error)
// IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGet invokes incident_session_result_endpoint_api_v1_incident_session__session_id__result_get operation.
//
// Retrieve completed investigation result. BR-AA-HAPI-064.3.
//
// GET /api/v1/incident/session/{session_id}/result
IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGet(ctx context.Context, params IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetParams) (IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetRes, error)
// IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGet invokes incident_session_status_endpoint_api_v1_incident_session__session_id__get operation.
//
// Poll session status. BR-AA-HAPI-064.2.
//
// GET /api/v1/incident/session/{session_id}
IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGet(ctx context.Context, params IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetParams) (IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetRes, error)
// ReadinessCheckReadyGet invokes readiness_check_ready_get operation.
//
// Readiness probe endpoint
// Business Requirements:
// - BR-HAPI-127 (Readiness check endpoint)
// - BR-HAPI-201 (Graceful shutdown with DD-007 pattern)
// TDD GREEN Phase: Check shutdown flag first
// REFACTOR phase: Real dependency health checks.
//
// GET /ready
ReadinessCheckReadyGet(ctx context.Context) (jx.Raw, error)
}
Invoker invokes operations described by OpenAPI v3 specification.
type KubernautAgentClient ¶
type KubernautAgentClient struct {
// contains filtered or unexported fields
}
KubernautAgentClient wraps the auto-generated OpenAPI client with a business-friendly API. DD-HAPI-003: All methods delegate to the generated client (oas_client_gen.go).
func NewKubernautAgentClient ¶
func NewKubernautAgentClient(cfg Config) (*KubernautAgentClient, error)
NewKubernautAgentClient creates a new KA client using the generated OpenAPI client.
DD-HAPI-003: Uses generated client for compile-time type safety and contract compliance. DD-AUTH-006: Uses ServiceAccount authentication by default (production/E2E).
For integration tests with custom authentication, use NewHolmesGPTClientWithTransport.
func NewKubernautAgentClientWithTransport ¶
func NewKubernautAgentClientWithTransport(cfg Config, transport http.RoundTripper) (*KubernautAgentClient, error)
NewKubernautAgentClientWithTransport creates a new agent client with a custom HTTP transport. DD-AUTH-006: Integration test pattern for mock authentication.
func (*KubernautAgentClient) GetSessionResult ¶
func (c *KubernautAgentClient) GetSessionResult(ctx context.Context, sessionID string) (*IncidentResponse, error)
GetSessionResult retrieves the result of a completed incident investigation session. BR-AA-HAPI-064.3: GET /api/v1/incident/session/{id}/result
func (*KubernautAgentClient) Investigate ¶
func (c *KubernautAgentClient) Investigate(ctx context.Context, req *IncidentRequest) (*IncidentResponse, error)
Investigate calls the incident analyze endpoint.
BR-AI-006: POST /api/v1/incident/analyze DD-HAPI-003: Uses generated OpenAPI client for type safety and contract compliance.
Example:
req := &client.IncidentRequest{
IncidentID: "incident-123",
// ... other fields
}
resp, err := kaClient.Investigate(ctx, req)
Returns:
- *IncidentResponse: Successful response with AI analysis
- *APIError: HTTP error (4xx, 5xx)
func (*KubernautAgentClient) PollSession ¶
func (c *KubernautAgentClient) PollSession(ctx context.Context, sessionID string) (*SessionStatus, error)
PollSession polls the status of an investigation session. BR-AA-HAPI-064.2: GET /api/v1/incident/session/{id} Returns *APIError{StatusCode: 404} when session not found (BR-AA-HAPI-064.5 regeneration trigger).
func (*KubernautAgentClient) SubmitInvestigation ¶
func (c *KubernautAgentClient) SubmitInvestigation(ctx context.Context, req *IncidentRequest) (string, error)
SubmitInvestigation submits an incident investigation request and returns a session ID. BR-AA-HAPI-064.1: POST /api/v1/incident/analyze returns 202 with session_id DD-HAPI-003: Delegates to generated client for OTel tracing and type-safe dispatch.
type Labeler ¶
type Labeler struct {
// contains filtered or unexported fields
}
Labeler is used to allow adding custom attributes to the server request metrics.
func LabelerFromContext ¶
LabelerFromContext retrieves the Labeler from the provided context, if present.
If no Labeler was found in the provided context a new, empty Labeler is returned and the second return value is false. In this case it is safe to use the Labeler but any attributes added to it will not be used.
func (*Labeler) AttributeSet ¶
AttributeSet returns the attributes added to the Labeler as an attribute.Set.
type OperationName ¶
type OperationName = string
OperationName is the ogen operation name
const ( GetConfigConfigGetOperation OperationName = "GetConfigConfigGet" HealthCheckHealthGetOperation OperationName = "HealthCheckHealthGet" IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostOperation OperationName = "IncidentAnalyzeEndpointAPIV1IncidentAnalyzePost" IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetOperation OperationName = "IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGet" IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetOperation OperationName = "IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGet" ReadinessCheckReadyGetOperation OperationName = "ReadinessCheckReadyGet" )
type OptBool ¶
OptBool is optional bool.
func NewOptBool ¶
NewOptBool returns new OptBool with value set to v.
func (OptBool) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptBool) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilBool ¶
OptNilBool is optional nullable bool.
func NewOptNilBool ¶
func NewOptNilBool(v bool) OptNilBool
NewOptNilBool returns new OptNilBool with value set to v.
func (*OptNilBool) Decode ¶
func (o *OptNilBool) Decode(d *jx.Decoder) error
Decode decodes bool from json.
func (OptNilBool) Get ¶
func (o OptNilBool) Get() (v bool, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilBool) IsSet ¶
func (o OptNilBool) IsSet() bool
IsSet returns true if OptNilBool was set.
func (OptNilBool) MarshalJSON ¶
func (s OptNilBool) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilBool) Or ¶
func (o OptNilBool) Or(d bool) bool
Or returns value if set, or given parameter if does not.
func (*OptNilBool) UnmarshalJSON ¶
func (s *OptNilBool) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilBusinessClassification ¶
type OptNilBusinessClassification struct {
Value BusinessClassification
Set bool
Null bool
}
OptNilBusinessClassification is optional nullable BusinessClassification.
func NewOptNilBusinessClassification ¶
func NewOptNilBusinessClassification(v BusinessClassification) OptNilBusinessClassification
NewOptNilBusinessClassification returns new OptNilBusinessClassification with value set to v.
func (*OptNilBusinessClassification) Decode ¶
func (o *OptNilBusinessClassification) Decode(d *jx.Decoder) error
Decode decodes BusinessClassification from json.
func (OptNilBusinessClassification) Encode ¶
func (o OptNilBusinessClassification) Encode(e *jx.Encoder)
Encode encodes BusinessClassification as json.
func (OptNilBusinessClassification) Get ¶
func (o OptNilBusinessClassification) Get() (v BusinessClassification, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilBusinessClassification) IsNull ¶
func (o OptNilBusinessClassification) IsNull() bool
IsNull returns true if value is Null.
func (OptNilBusinessClassification) IsSet ¶
func (o OptNilBusinessClassification) IsSet() bool
IsSet returns true if OptNilBusinessClassification was set.
func (OptNilBusinessClassification) MarshalJSON ¶
func (s OptNilBusinessClassification) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptNilBusinessClassification) Reset ¶
func (o *OptNilBusinessClassification) Reset()
Reset unsets value.
func (*OptNilBusinessClassification) SetTo ¶
func (o *OptNilBusinessClassification) SetTo(v BusinessClassification)
SetTo sets value to v.
func (*OptNilBusinessClassification) SetToNull ¶
func (o *OptNilBusinessClassification) SetToNull()
SetToNull sets value to null.
func (*OptNilBusinessClassification) UnmarshalJSON ¶
func (s *OptNilBusinessClassification) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilEnrichmentResults ¶
type OptNilEnrichmentResults struct {
Value EnrichmentResults
Set bool
Null bool
}
OptNilEnrichmentResults is optional nullable EnrichmentResults.
func NewOptNilEnrichmentResults ¶
func NewOptNilEnrichmentResults(v EnrichmentResults) OptNilEnrichmentResults
NewOptNilEnrichmentResults returns new OptNilEnrichmentResults with value set to v.
func (*OptNilEnrichmentResults) Decode ¶
func (o *OptNilEnrichmentResults) Decode(d *jx.Decoder) error
Decode decodes EnrichmentResults from json.
func (OptNilEnrichmentResults) Encode ¶
func (o OptNilEnrichmentResults) Encode(e *jx.Encoder)
Encode encodes EnrichmentResults as json.
func (OptNilEnrichmentResults) Get ¶
func (o OptNilEnrichmentResults) Get() (v EnrichmentResults, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilEnrichmentResults) IsNull ¶
func (o OptNilEnrichmentResults) IsNull() bool
IsNull returns true if value is Null.
func (OptNilEnrichmentResults) IsSet ¶
func (o OptNilEnrichmentResults) IsSet() bool
IsSet returns true if OptNilEnrichmentResults was set.
func (OptNilEnrichmentResults) MarshalJSON ¶
func (s OptNilEnrichmentResults) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilEnrichmentResults) Or ¶
func (o OptNilEnrichmentResults) Or(d EnrichmentResults) EnrichmentResults
Or returns value if set, or given parameter if does not.
func (*OptNilEnrichmentResults) Reset ¶
func (o *OptNilEnrichmentResults) Reset()
Reset unsets value.
func (*OptNilEnrichmentResults) SetTo ¶
func (o *OptNilEnrichmentResults) SetTo(v EnrichmentResults)
SetTo sets value to v.
func (*OptNilEnrichmentResults) SetToNull ¶
func (o *OptNilEnrichmentResults) SetToNull()
SetToNull sets value to null.
func (*OptNilEnrichmentResults) UnmarshalJSON ¶
func (s *OptNilEnrichmentResults) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilEnrichmentResultsCustomLabels ¶
type OptNilEnrichmentResultsCustomLabels struct {
Value EnrichmentResultsCustomLabels
Set bool
Null bool
}
OptNilEnrichmentResultsCustomLabels is optional nullable EnrichmentResultsCustomLabels.
func NewOptNilEnrichmentResultsCustomLabels ¶
func NewOptNilEnrichmentResultsCustomLabels(v EnrichmentResultsCustomLabels) OptNilEnrichmentResultsCustomLabels
NewOptNilEnrichmentResultsCustomLabels returns new OptNilEnrichmentResultsCustomLabels with value set to v.
func (*OptNilEnrichmentResultsCustomLabels) Decode ¶
func (o *OptNilEnrichmentResultsCustomLabels) Decode(d *jx.Decoder) error
Decode decodes EnrichmentResultsCustomLabels from json.
func (OptNilEnrichmentResultsCustomLabels) Encode ¶
func (o OptNilEnrichmentResultsCustomLabels) Encode(e *jx.Encoder)
Encode encodes EnrichmentResultsCustomLabels as json.
func (OptNilEnrichmentResultsCustomLabels) Get ¶
func (o OptNilEnrichmentResultsCustomLabels) Get() (v EnrichmentResultsCustomLabels, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilEnrichmentResultsCustomLabels) IsNull ¶
func (o OptNilEnrichmentResultsCustomLabels) IsNull() bool
IsNull returns true if value is Null.
func (OptNilEnrichmentResultsCustomLabels) IsSet ¶
func (o OptNilEnrichmentResultsCustomLabels) IsSet() bool
IsSet returns true if OptNilEnrichmentResultsCustomLabels was set.
func (OptNilEnrichmentResultsCustomLabels) MarshalJSON ¶
func (s OptNilEnrichmentResultsCustomLabels) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilEnrichmentResultsCustomLabels) Or ¶
func (o OptNilEnrichmentResultsCustomLabels) Or(d EnrichmentResultsCustomLabels) EnrichmentResultsCustomLabels
Or returns value if set, or given parameter if does not.
func (*OptNilEnrichmentResultsCustomLabels) Reset ¶
func (o *OptNilEnrichmentResultsCustomLabels) Reset()
Reset unsets value.
func (*OptNilEnrichmentResultsCustomLabels) SetTo ¶
func (o *OptNilEnrichmentResultsCustomLabels) SetTo(v EnrichmentResultsCustomLabels)
SetTo sets value to v.
func (*OptNilEnrichmentResultsCustomLabels) SetToNull ¶
func (o *OptNilEnrichmentResultsCustomLabels) SetToNull()
SetToNull sets value to null.
func (*OptNilEnrichmentResultsCustomLabels) UnmarshalJSON ¶
func (s *OptNilEnrichmentResultsCustomLabels) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilEnrichmentResultsKubernetesContext ¶
type OptNilEnrichmentResultsKubernetesContext struct {
Value EnrichmentResultsKubernetesContext
Set bool
Null bool
}
OptNilEnrichmentResultsKubernetesContext is optional nullable EnrichmentResultsKubernetesContext.
func NewOptNilEnrichmentResultsKubernetesContext ¶
func NewOptNilEnrichmentResultsKubernetesContext(v EnrichmentResultsKubernetesContext) OptNilEnrichmentResultsKubernetesContext
NewOptNilEnrichmentResultsKubernetesContext returns new OptNilEnrichmentResultsKubernetesContext with value set to v.
func (*OptNilEnrichmentResultsKubernetesContext) Decode ¶
func (o *OptNilEnrichmentResultsKubernetesContext) Decode(d *jx.Decoder) error
Decode decodes EnrichmentResultsKubernetesContext from json.
func (OptNilEnrichmentResultsKubernetesContext) Encode ¶
func (o OptNilEnrichmentResultsKubernetesContext) Encode(e *jx.Encoder)
Encode encodes EnrichmentResultsKubernetesContext as json.
func (OptNilEnrichmentResultsKubernetesContext) Get ¶
func (o OptNilEnrichmentResultsKubernetesContext) Get() (v EnrichmentResultsKubernetesContext, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilEnrichmentResultsKubernetesContext) IsNull ¶
func (o OptNilEnrichmentResultsKubernetesContext) IsNull() bool
IsNull returns true if value is Null.
func (OptNilEnrichmentResultsKubernetesContext) IsSet ¶
func (o OptNilEnrichmentResultsKubernetesContext) IsSet() bool
IsSet returns true if OptNilEnrichmentResultsKubernetesContext was set.
func (OptNilEnrichmentResultsKubernetesContext) MarshalJSON ¶
func (s OptNilEnrichmentResultsKubernetesContext) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilEnrichmentResultsKubernetesContext) Or ¶
func (o OptNilEnrichmentResultsKubernetesContext) Or(d EnrichmentResultsKubernetesContext) EnrichmentResultsKubernetesContext
Or returns value if set, or given parameter if does not.
func (*OptNilEnrichmentResultsKubernetesContext) Reset ¶
func (o *OptNilEnrichmentResultsKubernetesContext) Reset()
Reset unsets value.
func (*OptNilEnrichmentResultsKubernetesContext) SetTo ¶
func (o *OptNilEnrichmentResultsKubernetesContext) SetTo(v EnrichmentResultsKubernetesContext)
SetTo sets value to v.
func (*OptNilEnrichmentResultsKubernetesContext) SetToNull ¶
func (o *OptNilEnrichmentResultsKubernetesContext) SetToNull()
SetToNull sets value to null.
func (*OptNilEnrichmentResultsKubernetesContext) UnmarshalJSON ¶
func (s *OptNilEnrichmentResultsKubernetesContext) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilHumanReviewReason ¶
type OptNilHumanReviewReason struct {
Value HumanReviewReason
Set bool
Null bool
}
OptNilHumanReviewReason is optional nullable HumanReviewReason.
func NewOptNilHumanReviewReason ¶
func NewOptNilHumanReviewReason(v HumanReviewReason) OptNilHumanReviewReason
NewOptNilHumanReviewReason returns new OptNilHumanReviewReason with value set to v.
func (*OptNilHumanReviewReason) Decode ¶
func (o *OptNilHumanReviewReason) Decode(d *jx.Decoder) error
Decode decodes HumanReviewReason from json.
func (OptNilHumanReviewReason) Encode ¶
func (o OptNilHumanReviewReason) Encode(e *jx.Encoder)
Encode encodes HumanReviewReason as json.
func (OptNilHumanReviewReason) Get ¶
func (o OptNilHumanReviewReason) Get() (v HumanReviewReason, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilHumanReviewReason) IsNull ¶
func (o OptNilHumanReviewReason) IsNull() bool
IsNull returns true if value is Null.
func (OptNilHumanReviewReason) IsSet ¶
func (o OptNilHumanReviewReason) IsSet() bool
IsSet returns true if OptNilHumanReviewReason was set.
func (OptNilHumanReviewReason) MarshalJSON ¶
func (s OptNilHumanReviewReason) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilHumanReviewReason) Or ¶
func (o OptNilHumanReviewReason) Or(d HumanReviewReason) HumanReviewReason
Or returns value if set, or given parameter if does not.
func (*OptNilHumanReviewReason) Reset ¶
func (o *OptNilHumanReviewReason) Reset()
Reset unsets value.
func (*OptNilHumanReviewReason) SetTo ¶
func (o *OptNilHumanReviewReason) SetTo(v HumanReviewReason)
SetTo sets value to v.
func (*OptNilHumanReviewReason) SetToNull ¶
func (o *OptNilHumanReviewReason) SetToNull()
SetToNull sets value to null.
func (*OptNilHumanReviewReason) UnmarshalJSON ¶
func (s *OptNilHumanReviewReason) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilIncidentRequestSignalLabels ¶
type OptNilIncidentRequestSignalLabels struct {
Value IncidentRequestSignalLabels
Set bool
Null bool
}
OptNilIncidentRequestSignalLabels is optional nullable IncidentRequestSignalLabels.
func NewOptNilIncidentRequestSignalLabels ¶
func NewOptNilIncidentRequestSignalLabels(v IncidentRequestSignalLabels) OptNilIncidentRequestSignalLabels
NewOptNilIncidentRequestSignalLabels returns new OptNilIncidentRequestSignalLabels with value set to v.
func (*OptNilIncidentRequestSignalLabels) Decode ¶
func (o *OptNilIncidentRequestSignalLabels) Decode(d *jx.Decoder) error
Decode decodes IncidentRequestSignalLabels from json.
func (OptNilIncidentRequestSignalLabels) Encode ¶
func (o OptNilIncidentRequestSignalLabels) Encode(e *jx.Encoder)
Encode encodes IncidentRequestSignalLabels as json.
func (OptNilIncidentRequestSignalLabels) Get ¶
func (o OptNilIncidentRequestSignalLabels) Get() (v IncidentRequestSignalLabels, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilIncidentRequestSignalLabels) IsNull ¶
func (o OptNilIncidentRequestSignalLabels) IsNull() bool
IsNull returns true if value is Null.
func (OptNilIncidentRequestSignalLabels) IsSet ¶
func (o OptNilIncidentRequestSignalLabels) IsSet() bool
IsSet returns true if OptNilIncidentRequestSignalLabels was set.
func (OptNilIncidentRequestSignalLabels) MarshalJSON ¶
func (s OptNilIncidentRequestSignalLabels) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilIncidentRequestSignalLabels) Or ¶
func (o OptNilIncidentRequestSignalLabels) Or(d IncidentRequestSignalLabels) IncidentRequestSignalLabels
Or returns value if set, or given parameter if does not.
func (*OptNilIncidentRequestSignalLabels) Reset ¶
func (o *OptNilIncidentRequestSignalLabels) Reset()
Reset unsets value.
func (*OptNilIncidentRequestSignalLabels) SetTo ¶
func (o *OptNilIncidentRequestSignalLabels) SetTo(v IncidentRequestSignalLabels)
SetTo sets value to v.
func (*OptNilIncidentRequestSignalLabels) SetToNull ¶
func (o *OptNilIncidentRequestSignalLabels) SetToNull()
SetToNull sets value to null.
func (*OptNilIncidentRequestSignalLabels) UnmarshalJSON ¶
func (s *OptNilIncidentRequestSignalLabels) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilIncidentResponseDetectedLabels ¶
type OptNilIncidentResponseDetectedLabels struct {
Value IncidentResponseDetectedLabels
Set bool
Null bool
}
OptNilIncidentResponseDetectedLabels is optional nullable IncidentResponseDetectedLabels.
func NewOptNilIncidentResponseDetectedLabels ¶
func NewOptNilIncidentResponseDetectedLabels(v IncidentResponseDetectedLabels) OptNilIncidentResponseDetectedLabels
NewOptNilIncidentResponseDetectedLabels returns new OptNilIncidentResponseDetectedLabels with value set to v.
func (*OptNilIncidentResponseDetectedLabels) Decode ¶
func (o *OptNilIncidentResponseDetectedLabels) Decode(d *jx.Decoder) error
Decode decodes IncidentResponseDetectedLabels from json.
func (OptNilIncidentResponseDetectedLabels) Encode ¶
func (o OptNilIncidentResponseDetectedLabels) Encode(e *jx.Encoder)
Encode encodes IncidentResponseDetectedLabels as json.
func (OptNilIncidentResponseDetectedLabels) Get ¶
func (o OptNilIncidentResponseDetectedLabels) Get() (v IncidentResponseDetectedLabels, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilIncidentResponseDetectedLabels) IsNull ¶
func (o OptNilIncidentResponseDetectedLabels) IsNull() bool
IsNull returns true if value is Null.
func (OptNilIncidentResponseDetectedLabels) IsSet ¶
func (o OptNilIncidentResponseDetectedLabels) IsSet() bool
IsSet returns true if OptNilIncidentResponseDetectedLabels was set.
func (OptNilIncidentResponseDetectedLabels) MarshalJSON ¶
func (s OptNilIncidentResponseDetectedLabels) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilIncidentResponseDetectedLabels) Or ¶
func (o OptNilIncidentResponseDetectedLabels) Or(d IncidentResponseDetectedLabels) IncidentResponseDetectedLabels
Or returns value if set, or given parameter if does not.
func (*OptNilIncidentResponseDetectedLabels) Reset ¶
func (o *OptNilIncidentResponseDetectedLabels) Reset()
Reset unsets value.
func (*OptNilIncidentResponseDetectedLabels) SetTo ¶
func (o *OptNilIncidentResponseDetectedLabels) SetTo(v IncidentResponseDetectedLabels)
SetTo sets value to v.
func (*OptNilIncidentResponseDetectedLabels) SetToNull ¶
func (o *OptNilIncidentResponseDetectedLabels) SetToNull()
SetToNull sets value to null.
func (*OptNilIncidentResponseDetectedLabels) UnmarshalJSON ¶
func (s *OptNilIncidentResponseDetectedLabels) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilIncidentResponseSelectedWorkflow ¶
type OptNilIncidentResponseSelectedWorkflow struct {
Value IncidentResponseSelectedWorkflow
Set bool
Null bool
}
OptNilIncidentResponseSelectedWorkflow is optional nullable IncidentResponseSelectedWorkflow.
func NewOptNilIncidentResponseSelectedWorkflow ¶
func NewOptNilIncidentResponseSelectedWorkflow(v IncidentResponseSelectedWorkflow) OptNilIncidentResponseSelectedWorkflow
NewOptNilIncidentResponseSelectedWorkflow returns new OptNilIncidentResponseSelectedWorkflow with value set to v.
func (*OptNilIncidentResponseSelectedWorkflow) Decode ¶
func (o *OptNilIncidentResponseSelectedWorkflow) Decode(d *jx.Decoder) error
Decode decodes IncidentResponseSelectedWorkflow from json.
func (OptNilIncidentResponseSelectedWorkflow) Encode ¶
func (o OptNilIncidentResponseSelectedWorkflow) Encode(e *jx.Encoder)
Encode encodes IncidentResponseSelectedWorkflow as json.
func (OptNilIncidentResponseSelectedWorkflow) Get ¶
func (o OptNilIncidentResponseSelectedWorkflow) Get() (v IncidentResponseSelectedWorkflow, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilIncidentResponseSelectedWorkflow) IsNull ¶
func (o OptNilIncidentResponseSelectedWorkflow) IsNull() bool
IsNull returns true if value is Null.
func (OptNilIncidentResponseSelectedWorkflow) IsSet ¶
func (o OptNilIncidentResponseSelectedWorkflow) IsSet() bool
IsSet returns true if OptNilIncidentResponseSelectedWorkflow was set.
func (OptNilIncidentResponseSelectedWorkflow) MarshalJSON ¶
func (s OptNilIncidentResponseSelectedWorkflow) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilIncidentResponseSelectedWorkflow) Or ¶
func (o OptNilIncidentResponseSelectedWorkflow) Or(d IncidentResponseSelectedWorkflow) IncidentResponseSelectedWorkflow
Or returns value if set, or given parameter if does not.
func (*OptNilIncidentResponseSelectedWorkflow) Reset ¶
func (o *OptNilIncidentResponseSelectedWorkflow) Reset()
Reset unsets value.
func (*OptNilIncidentResponseSelectedWorkflow) SetTo ¶
func (o *OptNilIncidentResponseSelectedWorkflow) SetTo(v IncidentResponseSelectedWorkflow)
SetTo sets value to v.
func (*OptNilIncidentResponseSelectedWorkflow) SetToNull ¶
func (o *OptNilIncidentResponseSelectedWorkflow) SetToNull()
SetToNull sets value to null.
func (*OptNilIncidentResponseSelectedWorkflow) UnmarshalJSON ¶
func (s *OptNilIncidentResponseSelectedWorkflow) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilInt ¶
OptNilInt is optional nullable int.
func NewOptNilInt ¶
NewOptNilInt returns new OptNilInt with value set to v.
func (OptNilInt) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptNilInt) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilSignalMode ¶
type OptNilSignalMode struct {
Value SignalMode
Set bool
Null bool
}
OptNilSignalMode is optional nullable SignalMode.
func NewOptNilSignalMode ¶
func NewOptNilSignalMode(v SignalMode) OptNilSignalMode
NewOptNilSignalMode returns new OptNilSignalMode with value set to v.
func (*OptNilSignalMode) Decode ¶
func (o *OptNilSignalMode) Decode(d *jx.Decoder) error
Decode decodes SignalMode from json.
func (OptNilSignalMode) Encode ¶
func (o OptNilSignalMode) Encode(e *jx.Encoder)
Encode encodes SignalMode as json.
func (OptNilSignalMode) Get ¶
func (o OptNilSignalMode) Get() (v SignalMode, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilSignalMode) IsNull ¶
func (o OptNilSignalMode) IsNull() bool
IsNull returns true if value is Null.
func (OptNilSignalMode) IsSet ¶
func (o OptNilSignalMode) IsSet() bool
IsSet returns true if OptNilSignalMode was set.
func (OptNilSignalMode) MarshalJSON ¶
func (s OptNilSignalMode) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilSignalMode) Or ¶
func (o OptNilSignalMode) Or(d SignalMode) SignalMode
Or returns value if set, or given parameter if does not.
func (*OptNilSignalMode) SetTo ¶
func (o *OptNilSignalMode) SetTo(v SignalMode)
SetTo sets value to v.
func (*OptNilSignalMode) SetToNull ¶
func (o *OptNilSignalMode) SetToNull()
SetToNull sets value to null.
func (*OptNilSignalMode) UnmarshalJSON ¶
func (s *OptNilSignalMode) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilString ¶
OptNilString is optional nullable string.
func NewOptNilString ¶
func NewOptNilString(v string) OptNilString
NewOptNilString returns new OptNilString with value set to v.
func (*OptNilString) Decode ¶
func (o *OptNilString) Decode(d *jx.Decoder) error
Decode decodes string from json.
func (OptNilString) Encode ¶
func (o OptNilString) Encode(e *jx.Encoder)
Encode encodes string as json.
func (OptNilString) Get ¶
func (o OptNilString) Get() (v string, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilString) IsNull ¶
func (o OptNilString) IsNull() bool
IsNull returns true if value is Null.
func (OptNilString) IsSet ¶
func (o OptNilString) IsSet() bool
IsSet returns true if OptNilString was set.
func (OptNilString) MarshalJSON ¶
func (s OptNilString) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilString) Or ¶
func (o OptNilString) Or(d string) string
Or returns value if set, or given parameter if does not.
func (*OptNilString) UnmarshalJSON ¶
func (s *OptNilString) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Option ¶
type Option interface {
ServerOption
ClientOption
}
Option is config option.
func WithAttributes ¶
WithAttributes specifies default otel attributes.
func WithMeterProvider ¶
func WithMeterProvider(provider metric.MeterProvider) Option
WithMeterProvider specifies a meter provider to use for creating a meter.
If none is specified, the otel.GetMeterProvider() is used.
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) Option
WithTracerProvider specifies a tracer provider to use for creating a tracer.
If none is specified, the global provider is used.
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
Route is route object.
func (Route) OperationGroup ¶
OperationGroup returns the x-ogen-operation-group value.
func (Route) OperationID ¶
OperationID returns OpenAPI operationId.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.
func NewServer ¶
func NewServer(h Handler, opts ...ServerOption) (*Server, error)
NewServer creates new Server.
type ServerOption ¶
type ServerOption interface {
// contains filtered or unexported methods
}
ServerOption is server config option.
func WithErrorHandler ¶
func WithErrorHandler(h ErrorHandler) ServerOption
WithErrorHandler specifies error handler to use.
func WithMaxMultipartMemory ¶
func WithMaxMultipartMemory(max int64) ServerOption
WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.
func WithMethodNotAllowed ¶
func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
WithMethodNotAllowed specifies Method Not Allowed handler to use.
func WithMiddleware ¶
func WithMiddleware(m ...Middleware) ServerOption
WithMiddleware specifies middlewares to use.
func WithNotFound ¶
func WithNotFound(notFound http.HandlerFunc) ServerOption
WithNotFound specifies Not Found handler to use.
func WithPathPrefix ¶
func WithPathPrefix(prefix string) ServerOption
WithPathPrefix specifies server path prefix.
type SessionStatus ¶
type SessionStatus struct {
// Status of the session: "pending", "investigating", "completed", "failed"
Status string `json:"status"`
// Error message when status is "failed"
Error string `json:"error,omitempty"`
// Progress description for operator visibility
Progress string `json:"progress,omitempty"`
}
SessionStatus represents the status of an investigation session. Returned by PollSession when querying session progress.
type Severity ¶
type Severity string
Canonical severity levels for Kubernaut. Business Requirement: BR-SEVERITY-001 (Standardized Severity Levels) Design Decision: DD-SEVERITY-001 v1.1 (Severity Determination Refactoring) These are the ONLY valid severity values across all internal components (CRDs, LLM prompts, workflow catalog labels, metrics, audit events). Levels (most to least severe): - critical: Immediate remediation required (>50% users affected) - high: Urgent remediation needed (10-50% users affected) - medium: Remediation recommended (<10% users affected) - low: Remediation optional (no user impact) - unknown: Human triage required (investigation inconclusive). Ref: #/components/schemas/Severity
func (Severity) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (Severity) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*Severity) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
func (*Severity) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
type SignalMode ¶
type SignalMode string
Signal processing mode for investigation strategy selection. Architecture Decision: ADR-054 (Proactive Signal Mode Classification) Business Requirement: BR-AI-084 (Proactive signal mode prompt strategy) - reactive: Incident has occurred, perform RCA (root cause analysis) - proactive: Incident is anticipated, perform proactive prevention strategy. Ref: #/components/schemas/SignalMode
const ( SignalModeReactive SignalMode = "reactive" SignalModeProactive SignalMode = "proactive" )
func (SignalMode) AllValues ¶
func (SignalMode) AllValues() []SignalMode
AllValues returns all SignalMode values.
func (*SignalMode) Decode ¶
func (s *SignalMode) Decode(d *jx.Decoder) error
Decode decodes SignalMode from json.
func (SignalMode) Encode ¶
func (s SignalMode) Encode(e *jx.Encoder)
Encode encodes SignalMode as json.
func (SignalMode) MarshalJSON ¶
func (s SignalMode) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (SignalMode) MarshalText ¶
func (s SignalMode) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*SignalMode) UnmarshalJSON ¶
func (s *SignalMode) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SignalMode) UnmarshalText ¶
func (s *SignalMode) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (SignalMode) Validate ¶
func (s SignalMode) Validate() error
type UnimplementedHandler ¶
type UnimplementedHandler struct{}
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
func (UnimplementedHandler) GetConfigConfigGet ¶
GetConfigConfigGet implements get_config_config_get operation.
Get service configuration (sanitized) Business Requirement: BR-HAPI-128 (Configuration endpoint).
GET /config
func (UnimplementedHandler) HealthCheckHealthGet ¶
HealthCheckHealthGet implements health_check_health_get operation.
Liveness probe endpoint Business Requirement: BR-HAPI-126 (Health check endpoint).
GET /health
func (UnimplementedHandler) IncidentAnalyzeEndpointAPIV1IncidentAnalyzePost ¶
func (UnimplementedHandler) IncidentAnalyzeEndpointAPIV1IncidentAnalyzePost(ctx context.Context, req *IncidentRequest) (r IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostRes, _ error)
IncidentAnalyzeEndpointAPIV1IncidentAnalyzePost implements incident_analyze_endpoint_api_v1_incident_analyze_post operation.
Submit incident analysis request (async session-based pattern). Business Requirement: BR-HAPI-002 (Incident analysis endpoint) Business Requirement: BR-AA-HAPI-064.1 (Async submit returns session ID) Design Decision: DD-AUTH-006 (User attribution for LLM cost tracking) Called by: AIAnalysis Controller via SubmitInvestigation() Returns HTTP 202 Accepted with {"session_id": "<uuid>"}. The investigation runs as a background task. Poll via GET /incident/session/{id}.
POST /api/v1/incident/analyze
func (UnimplementedHandler) IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGet ¶
func (UnimplementedHandler) IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGet(ctx context.Context, params IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetParams) (r IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetRes, _ error)
IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGet implements incident_session_result_endpoint_api_v1_incident_session__session_id__result_get operation.
Retrieve completed investigation result. BR-AA-HAPI-064.3.
GET /api/v1/incident/session/{session_id}/result
func (UnimplementedHandler) IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGet ¶
func (UnimplementedHandler) IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGet(ctx context.Context, params IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetParams) (r IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetRes, _ error)
IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGet implements incident_session_status_endpoint_api_v1_incident_session__session_id__get operation.
Poll session status. BR-AA-HAPI-064.2.
GET /api/v1/incident/session/{session_id}
func (UnimplementedHandler) ReadinessCheckReadyGet ¶
ReadinessCheckReadyGet implements readiness_check_ready_get operation.
Readiness probe endpoint Business Requirements: - BR-HAPI-127 (Readiness check endpoint) - BR-HAPI-201 (Graceful shutdown with DD-007 pattern) TDD GREEN Phase: Check shutdown flag first REFACTOR phase: Real dependency health checks.
GET /ready
type ValidationAttempt ¶
type ValidationAttempt struct {
// Attempt number (1-indexed).
Attempt int `json:"attempt"`
// Workflow ID being validated (if any).
WorkflowID OptNilString `json:"workflow_id"`
// Whether validation passed.
IsValid bool `json:"is_valid"`
// Validation errors (empty if valid).
Errors []string `json:"errors"`
// ISO timestamp of validation attempt.
Timestamp string `json:"timestamp"`
}
Record of a single validation attempt during LLM self-correction. Business Requirement: BR-HAPI-197 (needs_human_review field) Design Decision: DD-HAPI-002 v1.2 (Workflow Response Validation) Used for: 1. Operator notification - natural language description of why validation failed 2. Audit trail - complete history of all validation attempts 3. Debugging - understand LLM behavior when workflows fail. Ref: #/components/schemas/ValidationAttempt
func (*ValidationAttempt) Decode ¶
func (s *ValidationAttempt) Decode(d *jx.Decoder) error
Decode decodes ValidationAttempt from json.
func (*ValidationAttempt) Encode ¶
func (s *ValidationAttempt) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ValidationAttempt) GetAttempt ¶
func (s *ValidationAttempt) GetAttempt() int
GetAttempt returns the value of Attempt.
func (*ValidationAttempt) GetErrors ¶
func (s *ValidationAttempt) GetErrors() []string
GetErrors returns the value of Errors.
func (*ValidationAttempt) GetIsValid ¶
func (s *ValidationAttempt) GetIsValid() bool
GetIsValid returns the value of IsValid.
func (*ValidationAttempt) GetTimestamp ¶
func (s *ValidationAttempt) GetTimestamp() string
GetTimestamp returns the value of Timestamp.
func (*ValidationAttempt) GetWorkflowID ¶
func (s *ValidationAttempt) GetWorkflowID() OptNilString
GetWorkflowID returns the value of WorkflowID.
func (*ValidationAttempt) MarshalJSON ¶
func (s *ValidationAttempt) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ValidationAttempt) SetAttempt ¶
func (s *ValidationAttempt) SetAttempt(val int)
SetAttempt sets the value of Attempt.
func (*ValidationAttempt) SetErrors ¶
func (s *ValidationAttempt) SetErrors(val []string)
SetErrors sets the value of Errors.
func (*ValidationAttempt) SetIsValid ¶
func (s *ValidationAttempt) SetIsValid(val bool)
SetIsValid sets the value of IsValid.
func (*ValidationAttempt) SetTimestamp ¶
func (s *ValidationAttempt) SetTimestamp(val string)
SetTimestamp sets the value of Timestamp.
func (*ValidationAttempt) SetWorkflowID ¶
func (s *ValidationAttempt) SetWorkflowID(val OptNilString)
SetWorkflowID sets the value of WorkflowID.
func (*ValidationAttempt) UnmarshalJSON ¶
func (s *ValidationAttempt) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ValidationAttempt) Validate ¶
func (s *ValidationAttempt) Validate() error
type ValidationError ¶
type ValidationError struct {
Loc []ValidationErrorLocItem `json:"loc"`
Msg string `json:"msg"`
Type string `json:"type"`
}
Ref: #/components/schemas/ValidationError
func (*ValidationError) Decode ¶
func (s *ValidationError) Decode(d *jx.Decoder) error
Decode decodes ValidationError from json.
func (*ValidationError) Encode ¶
func (s *ValidationError) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ValidationError) GetLoc ¶
func (s *ValidationError) GetLoc() []ValidationErrorLocItem
GetLoc returns the value of Loc.
func (*ValidationError) GetMsg ¶
func (s *ValidationError) GetMsg() string
GetMsg returns the value of Msg.
func (*ValidationError) GetType ¶
func (s *ValidationError) GetType() string
GetType returns the value of Type.
func (*ValidationError) MarshalJSON ¶
func (s *ValidationError) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ValidationError) SetLoc ¶
func (s *ValidationError) SetLoc(val []ValidationErrorLocItem)
SetLoc sets the value of Loc.
func (*ValidationError) SetMsg ¶
func (s *ValidationError) SetMsg(val string)
SetMsg sets the value of Msg.
func (*ValidationError) SetType ¶
func (s *ValidationError) SetType(val string)
SetType sets the value of Type.
func (*ValidationError) UnmarshalJSON ¶
func (s *ValidationError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ValidationError) Validate ¶
func (s *ValidationError) Validate() error
type ValidationErrorLocItem ¶
type ValidationErrorLocItem struct {
Type ValidationErrorLocItemType // switch on this field
String string
Int int
}
ValidationErrorLocItem represents sum type.
func NewIntValidationErrorLocItem ¶
func NewIntValidationErrorLocItem(v int) ValidationErrorLocItem
NewIntValidationErrorLocItem returns new ValidationErrorLocItem from int.
func NewStringValidationErrorLocItem ¶
func NewStringValidationErrorLocItem(v string) ValidationErrorLocItem
NewStringValidationErrorLocItem returns new ValidationErrorLocItem from string.
func (*ValidationErrorLocItem) Decode ¶
func (s *ValidationErrorLocItem) Decode(d *jx.Decoder) error
Decode decodes ValidationErrorLocItem from json.
func (ValidationErrorLocItem) Encode ¶
func (s ValidationErrorLocItem) Encode(e *jx.Encoder)
Encode encodes ValidationErrorLocItem as json.
func (ValidationErrorLocItem) GetInt ¶
func (s ValidationErrorLocItem) GetInt() (v int, ok bool)
GetInt returns int and true boolean if ValidationErrorLocItem is int.
func (ValidationErrorLocItem) GetString ¶
func (s ValidationErrorLocItem) GetString() (v string, ok bool)
GetString returns string and true boolean if ValidationErrorLocItem is string.
func (ValidationErrorLocItem) IsInt ¶
func (s ValidationErrorLocItem) IsInt() bool
IsInt reports whether ValidationErrorLocItem is int.
func (ValidationErrorLocItem) IsString ¶
func (s ValidationErrorLocItem) IsString() bool
IsString reports whether ValidationErrorLocItem is string.
func (ValidationErrorLocItem) MarshalJSON ¶
func (s ValidationErrorLocItem) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ValidationErrorLocItem) SetInt ¶
func (s *ValidationErrorLocItem) SetInt(v int)
SetInt sets ValidationErrorLocItem to int.
func (*ValidationErrorLocItem) SetString ¶
func (s *ValidationErrorLocItem) SetString(v string)
SetString sets ValidationErrorLocItem to string.
func (*ValidationErrorLocItem) UnmarshalJSON ¶
func (s *ValidationErrorLocItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ValidationErrorLocItemType ¶
type ValidationErrorLocItemType string
ValidationErrorLocItemType is oneOf type of ValidationErrorLocItem.
const ( StringValidationErrorLocItem ValidationErrorLocItemType = "string" IntValidationErrorLocItem ValidationErrorLocItemType = "int" )
Possible values for ValidationErrorLocItemType.
Source Files
¶
- client.go
- generate.go
- oas_cfg_gen.go
- oas_client_gen.go
- oas_defaults_gen.go
- oas_handlers_gen.go
- oas_interfaces_gen.go
- oas_json_gen.go
- oas_labeler_gen.go
- oas_middleware_gen.go
- oas_operations_gen.go
- oas_parameters_gen.go
- oas_request_decoders_gen.go
- oas_request_encoders_gen.go
- oas_response_decoders_gen.go
- oas_response_encoders_gen.go
- oas_router_gen.go
- oas_schemas_gen.go
- oas_server_gen.go
- oas_unimplemented_gen.go
- oas_validators_gen.go