agentclient

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 29 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

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.

func (*APIError) Error

func (e *APIError) Error() string

Error implements the error interface.

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

func (c *Client) GetConfigConfigGet(ctx context.Context) (jx.Raw, error)

GetConfigConfigGet invokes get_config_config_get operation.

Get service configuration (sanitized) Business Requirement: BR-HAPI-128 (Configuration endpoint).

GET /config

func (*Client) HealthCheckHealthGet

func (c *Client) HealthCheckHealthGet(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

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

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

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

func (c *Client) ReadinessCheckReadyGet(ctx context.Context) (jx.Raw, 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

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 Config

type Config struct {
	BaseURL string
	Timeout time.Duration
}

Config for Kubernaut Agent client

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

GetCustomLabels returns the value of CustomLabels.

func (*EnrichmentResults) GetKubernetesContext

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

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

type EnrichmentResultsCustomLabels map[string][]string

func (*EnrichmentResultsCustomLabels) Decode

Decode decodes EnrichmentResultsCustomLabels from json.

func (EnrichmentResultsCustomLabels) Encode

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

type EnrichmentResultsKubernetesContext map[string]jx.Raw

func (*EnrichmentResultsKubernetesContext) Decode

Decode decodes EnrichmentResultsKubernetesContext from json.

func (EnrichmentResultsKubernetesContext) Encode

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 ErrorHandler

type ErrorHandler = ogenerrors.ErrorHandler

ErrorHandler is error handler.

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) Decode

func (s *HTTPError) Decode(d *jx.Decoder) error

Decode decodes HTTPError from json.

func (*HTTPError) Encode

func (s *HTTPError) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*HTTPError) GetDetail

func (s *HTTPError) GetDetail() string

GetDetail returns the value of Detail.

func (*HTTPError) GetInstance

func (s *HTTPError) GetInstance() string

GetInstance returns the value of Instance.

func (*HTTPError) GetRequestID

func (s *HTTPError) GetRequestID() OptNilString

GetRequestID returns the value of RequestID.

func (*HTTPError) GetStatus

func (s *HTTPError) GetStatus() int

GetStatus returns the value of Status.

func (*HTTPError) GetTitle

func (s *HTTPError) GetTitle() string

GetTitle returns the value of Title.

func (*HTTPError) GetType

func (s *HTTPError) GetType() string

GetType returns the value of Type.

func (*HTTPError) MarshalJSON

func (s *HTTPError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*HTTPError) SetDetail

func (s *HTTPError) SetDetail(val string)

SetDetail sets the value of Detail.

func (*HTTPError) SetInstance

func (s *HTTPError) SetInstance(val string)

SetInstance sets the value of Instance.

func (*HTTPError) SetRequestID

func (s *HTTPError) SetRequestID(val OptNilString)

SetRequestID sets the value of RequestID.

func (*HTTPError) SetStatus

func (s *HTTPError) SetStatus(val int)

SetStatus sets the value of Status.

func (*HTTPError) SetTitle

func (s *HTTPError) SetTitle(val string)

SetTitle sets the value of Title.

func (*HTTPError) SetType

func (s *HTTPError) SetType(val string)

SetType sets the value of Type.

func (*HTTPError) UnmarshalJSON

func (s *HTTPError) UnmarshalJSON(data []byte) error

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

type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostAcceptedApplicationJSON jx.Raw

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostAcceptedApplicationJSON) Decode

Decode decodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostAcceptedApplicationJSON from json.

func (IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostAcceptedApplicationJSON) Encode

Encode encodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostAcceptedApplicationJSON as json.

func (IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostAcceptedApplicationJSON) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostAcceptedApplicationJSON) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest

type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest HTTPError

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest) Decode

Decode decodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest from json.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest) Encode

Encode encodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest as json.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONBadRequest) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden

type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden HTTPError

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden) Decode

Decode decodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden from json.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden) Encode

Encode encodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden as json.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONForbidden) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError

type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError HTTPError

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError) Decode

Decode decodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError from json.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError) Encode

Encode encodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError as json.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONInternalServerError) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized

type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized HTTPError

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized) Decode

Decode decodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized from json.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized) Encode

Encode encodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized as json.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnauthorized) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity

type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity HTTPError

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity) Decode

Decode decodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity from json.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity) Encode

Encode encodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity as json.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostApplicationJSONUnprocessableEntity) UnmarshalJSON

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

Decode decodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON from json.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) Encode

Encode implements json.Marshaler.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) GetDetail

GetDetail returns the value of Detail.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) GetInstance

GetInstance returns the value of Instance.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) GetRequestID

GetRequestID returns the value of RequestID.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) GetStatus

GetStatus returns the value of Status.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) GetTitle

GetTitle returns the value of Title.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) GetType

GetType returns the value of Type.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) SetDetail

SetDetail sets the value of Detail.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) SetInstance

SetInstance sets the value of Instance.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) SetRequestID

SetRequestID sets the value of RequestID.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) SetStatus

SetStatus sets the value of Status.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) SetTitle

SetTitle sets the value of Title.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) SetType

SetType sets the value of Type.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostBadRequestApplicationProblemJSON) UnmarshalJSON

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

Decode decodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON from json.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) Encode

Encode implements json.Marshaler.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) GetDetail

GetDetail returns the value of Detail.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) GetInstance

GetInstance returns the value of Instance.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) GetRequestID

GetRequestID returns the value of RequestID.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) GetStatus

GetStatus returns the value of Status.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) GetTitle

GetTitle returns the value of Title.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) GetType

GetType returns the value of Type.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) SetDetail

SetDetail sets the value of Detail.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) SetInstance

SetInstance sets the value of Instance.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) SetRequestID

SetRequestID sets the value of RequestID.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) SetStatus

SetStatus sets the value of Status.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) SetTitle

SetTitle sets the value of Title.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) SetType

SetType sets the value of Type.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostForbiddenApplicationProblemJSON) UnmarshalJSON

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

Decode decodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON from json.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) Encode

Encode implements json.Marshaler.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) GetDetail

GetDetail returns the value of Detail.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) GetInstance

GetInstance returns the value of Instance.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) GetRequestID

GetRequestID returns the value of RequestID.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) GetStatus

GetStatus returns the value of Status.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) GetTitle

GetTitle returns the value of Title.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) GetType

GetType returns the value of Type.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) SetDetail

SetDetail sets the value of Detail.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) SetInstance

SetInstance sets the value of Instance.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) SetRequestID

SetRequestID sets the value of RequestID.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) SetStatus

SetStatus sets the value of Status.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) SetTitle

SetTitle sets the value of Title.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) SetType

SetType sets the value of Type.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostInternalServerErrorApplicationProblemJSON) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostRes

type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostRes interface {
	// contains filtered or unexported methods
}

type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON

type IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON 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 (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) Decode

Decode decodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON from json.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) Encode

Encode implements json.Marshaler.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) GetDetail

GetDetail returns the value of Detail.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) GetInstance

GetInstance returns the value of Instance.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) GetRequestID

GetRequestID returns the value of RequestID.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) GetStatus

GetStatus returns the value of Status.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) GetTitle

GetTitle returns the value of Title.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) GetType

GetType returns the value of Type.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) SetDetail

SetDetail sets the value of Detail.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) SetInstance

SetInstance sets the value of Instance.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) SetRequestID

SetRequestID sets the value of RequestID.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) SetStatus

SetStatus sets the value of Status.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) SetTitle

SetTitle sets the value of Title.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) SetType

SetType sets the value of Type.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnauthorizedApplicationProblemJSON) UnmarshalJSON

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

Decode decodes IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON from json.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) Encode

Encode implements json.Marshaler.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) GetDetail

GetDetail returns the value of Detail.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) GetInstance

GetInstance returns the value of Instance.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) GetRequestID

GetRequestID returns the value of RequestID.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) GetStatus

GetStatus returns the value of Status.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) GetTitle

GetTitle returns the value of Title.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) GetType

GetType returns the value of Type.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) SetDetail

SetDetail sets the value of Detail.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) SetInstance

SetInstance sets the value of Instance.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) SetRequestID

SetRequestID sets the value of RequestID.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) SetStatus

SetStatus sets the value of Status.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) SetTitle

SetTitle sets the value of Title.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) SetType

SetType sets the value of Type.

func (*IncidentAnalyzeEndpointAPIV1IncidentAnalyzePostUnprocessableEntityApplicationProblemJSON) UnmarshalJSON

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

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

type IncidentRequestSignalLabels map[string]string

func (*IncidentRequestSignalLabels) Decode

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

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

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

type IncidentResponseDetectedLabels map[string]jx.Raw

func (*IncidentResponseDetectedLabels) Decode

Decode decodes IncidentResponseDetectedLabels from json.

func (IncidentResponseDetectedLabels) Encode

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

type IncidentResponseRootCauseAnalysis map[string]jx.Raw

Structured RCA with summary, severity, contributing_factors.

func (*IncidentResponseRootCauseAnalysis) Decode

Decode decodes IncidentResponseRootCauseAnalysis from json.

func (IncidentResponseRootCauseAnalysis) Encode

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

type IncidentResponseSelectedWorkflow map[string]jx.Raw

func (*IncidentResponseSelectedWorkflow) Decode

Decode decodes IncidentResponseSelectedWorkflow from json.

func (IncidentResponseSelectedWorkflow) Encode

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

Decode decodes IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetConflict from json.

func (*IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetConflict) Encode

Encode encodes IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetConflict as json.

func (*IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetConflict) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetConflict) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound

type IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound HTTPError

func (*IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound) Decode

Decode decodes IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound from json.

func (*IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound) Encode

Encode encodes IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound as json.

func (*IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*IncidentSessionResultEndpointAPIV1IncidentSessionSessionIDResultGetNotFound) UnmarshalJSON

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

type IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetOKApplicationJSON jx.Raw

func (*IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetOKApplicationJSON) Decode

Decode decodes IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetOKApplicationJSON from json.

func (IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetOKApplicationJSON) Encode

Encode encodes IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetOKApplicationJSON as json.

func (IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetOKApplicationJSON) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*IncidentSessionStatusEndpointAPIV1IncidentSessionSessionIDGetOKApplicationJSON) UnmarshalJSON

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

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

func LabelerFromContext(ctx context.Context) (*Labeler, bool)

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) Add

func (l *Labeler) Add(attrs ...attribute.KeyValue)

Add attributes to the Labeler.

func (*Labeler) AttributeSet

func (l *Labeler) AttributeSet() attribute.Set

AttributeSet returns the attributes added to the Labeler as an attribute.Set.

type Middleware

type Middleware = middleware.Middleware

Middleware is middleware type.

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

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func (*OptBool) Decode

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) MarshalJSON

func (s OptBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBool) Or

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetTo

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

func (*OptBool) UnmarshalJSON

func (s *OptBool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilBool

type OptNilBool struct {
	Value bool
	Set   bool
	Null  bool
}

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) Encode

func (o OptNilBool) Encode(e *jx.Encoder)

Encode encodes bool as 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) IsNull

func (o OptNilBool) IsNull() bool

IsNull returns true if value is Null.

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) Reset

func (o *OptNilBool) Reset()

Reset unsets value.

func (*OptNilBool) SetTo

func (o *OptNilBool) SetTo(v bool)

SetTo sets value to v.

func (*OptNilBool) SetToNull

func (o *OptNilBool) SetToNull()

SetToNull sets value to null.

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

Decode decodes BusinessClassification from json.

func (OptNilBusinessClassification) Encode

Encode encodes BusinessClassification as json.

func (OptNilBusinessClassification) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilBusinessClassification) IsNull

IsNull returns true if value is Null.

func (OptNilBusinessClassification) IsSet

IsSet returns true if OptNilBusinessClassification was set.

func (OptNilBusinessClassification) MarshalJSON

func (s OptNilBusinessClassification) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilBusinessClassification) Or

Or returns value if set, or given parameter if does not.

func (*OptNilBusinessClassification) Reset

func (o *OptNilBusinessClassification) Reset()

Reset unsets value.

func (*OptNilBusinessClassification) SetTo

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

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

Or returns value if set, or given parameter if does not.

func (*OptNilEnrichmentResults) Reset

func (o *OptNilEnrichmentResults) Reset()

Reset unsets value.

func (*OptNilEnrichmentResults) SetTo

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

Decode decodes EnrichmentResultsCustomLabels from json.

func (OptNilEnrichmentResultsCustomLabels) Encode

Encode encodes EnrichmentResultsCustomLabels as json.

func (OptNilEnrichmentResultsCustomLabels) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilEnrichmentResultsCustomLabels) IsNull

IsNull returns true if value is Null.

func (OptNilEnrichmentResultsCustomLabels) IsSet

IsSet returns true if OptNilEnrichmentResultsCustomLabels was set.

func (OptNilEnrichmentResultsCustomLabels) MarshalJSON

func (s OptNilEnrichmentResultsCustomLabels) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilEnrichmentResultsCustomLabels) Or

Or returns value if set, or given parameter if does not.

func (*OptNilEnrichmentResultsCustomLabels) Reset

Reset unsets value.

func (*OptNilEnrichmentResultsCustomLabels) SetTo

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

Decode decodes EnrichmentResultsKubernetesContext from json.

func (OptNilEnrichmentResultsKubernetesContext) Encode

Encode encodes EnrichmentResultsKubernetesContext as json.

func (OptNilEnrichmentResultsKubernetesContext) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilEnrichmentResultsKubernetesContext) IsNull

IsNull returns true if value is Null.

func (OptNilEnrichmentResultsKubernetesContext) IsSet

IsSet returns true if OptNilEnrichmentResultsKubernetesContext was set.

func (OptNilEnrichmentResultsKubernetesContext) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (OptNilEnrichmentResultsKubernetesContext) Or

Or returns value if set, or given parameter if does not.

func (*OptNilEnrichmentResultsKubernetesContext) Reset

Reset unsets value.

func (*OptNilEnrichmentResultsKubernetesContext) SetTo

SetTo sets value to v.

func (*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

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

Or returns value if set, or given parameter if does not.

func (*OptNilHumanReviewReason) Reset

func (o *OptNilHumanReviewReason) Reset()

Reset unsets value.

func (*OptNilHumanReviewReason) SetTo

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

Decode decodes IncidentRequestSignalLabels from json.

func (OptNilIncidentRequestSignalLabels) Encode

Encode encodes IncidentRequestSignalLabels as json.

func (OptNilIncidentRequestSignalLabels) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilIncidentRequestSignalLabels) IsNull

IsNull returns true if value is Null.

func (OptNilIncidentRequestSignalLabels) IsSet

IsSet returns true if OptNilIncidentRequestSignalLabels was set.

func (OptNilIncidentRequestSignalLabels) MarshalJSON

func (s OptNilIncidentRequestSignalLabels) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilIncidentRequestSignalLabels) Or

Or returns value if set, or given parameter if does not.

func (*OptNilIncidentRequestSignalLabels) Reset

Reset unsets value.

func (*OptNilIncidentRequestSignalLabels) SetTo

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

Decode decodes IncidentResponseDetectedLabels from json.

func (OptNilIncidentResponseDetectedLabels) Encode

Encode encodes IncidentResponseDetectedLabels as json.

func (OptNilIncidentResponseDetectedLabels) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilIncidentResponseDetectedLabels) IsNull

IsNull returns true if value is Null.

func (OptNilIncidentResponseDetectedLabels) IsSet

IsSet returns true if OptNilIncidentResponseDetectedLabels was set.

func (OptNilIncidentResponseDetectedLabels) MarshalJSON

func (s OptNilIncidentResponseDetectedLabels) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilIncidentResponseDetectedLabels) Or

Or returns value if set, or given parameter if does not.

func (*OptNilIncidentResponseDetectedLabels) Reset

Reset unsets value.

func (*OptNilIncidentResponseDetectedLabels) SetTo

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

Decode decodes IncidentResponseSelectedWorkflow from json.

func (OptNilIncidentResponseSelectedWorkflow) Encode

Encode encodes IncidentResponseSelectedWorkflow as json.

func (OptNilIncidentResponseSelectedWorkflow) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilIncidentResponseSelectedWorkflow) IsNull

IsNull returns true if value is Null.

func (OptNilIncidentResponseSelectedWorkflow) IsSet

IsSet returns true if OptNilIncidentResponseSelectedWorkflow was set.

func (OptNilIncidentResponseSelectedWorkflow) MarshalJSON

func (s OptNilIncidentResponseSelectedWorkflow) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilIncidentResponseSelectedWorkflow) Or

Or returns value if set, or given parameter if does not.

func (*OptNilIncidentResponseSelectedWorkflow) Reset

Reset unsets value.

func (*OptNilIncidentResponseSelectedWorkflow) SetTo

SetTo sets value to v.

func (*OptNilIncidentResponseSelectedWorkflow) SetToNull

SetToNull sets value to null.

func (*OptNilIncidentResponseSelectedWorkflow) UnmarshalJSON

func (s *OptNilIncidentResponseSelectedWorkflow) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilInt

type OptNilInt struct {
	Value int
	Set   bool
	Null  bool
}

OptNilInt is optional nullable int.

func NewOptNilInt

func NewOptNilInt(v int) OptNilInt

NewOptNilInt returns new OptNilInt with value set to v.

func (*OptNilInt) Decode

func (o *OptNilInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptNilInt) Encode

func (o OptNilInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptNilInt) Get

func (o OptNilInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilInt) IsNull

func (o OptNilInt) IsNull() bool

IsNull returns true if value is Null.

func (OptNilInt) IsSet

func (o OptNilInt) IsSet() bool

IsSet returns true if OptNilInt was set.

func (OptNilInt) MarshalJSON

func (s OptNilInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilInt) Or

func (o OptNilInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptNilInt) Reset

func (o *OptNilInt) Reset()

Reset unsets value.

func (*OptNilInt) SetTo

func (o *OptNilInt) SetTo(v int)

SetTo sets value to v.

func (*OptNilInt) SetToNull

func (o *OptNilInt) SetToNull()

SetToNull sets value to null.

func (*OptNilInt) UnmarshalJSON

func (s *OptNilInt) UnmarshalJSON(data []byte) error

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

Or returns value if set, or given parameter if does not.

func (*OptNilSignalMode) Reset

func (o *OptNilSignalMode) Reset()

Reset unsets value.

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

type OptNilString struct {
	Value string
	Set   bool
	Null  bool
}

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) Reset

func (o *OptNilString) Reset()

Reset unsets value.

func (*OptNilString) SetTo

func (o *OptNilString) SetTo(v string)

SetTo sets value to v.

func (*OptNilString) SetToNull

func (o *OptNilString) SetToNull()

SetToNull sets value to null.

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

func WithAttributes(attributes ...attribute.KeyValue) Option

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) Args

func (r Route) Args() []string

Args returns parsed arguments.

func (Route) Name

func (r Route) Name() string

Name returns ogen operation name.

It is guaranteed to be unique and not empty.

func (Route) OperationGroup

func (r Route) OperationGroup() string

OperationGroup returns the x-ogen-operation-group value.

func (Route) OperationID

func (r Route) OperationID() string

OperationID returns OpenAPI operationId.

func (Route) PathPattern

func (r Route) PathPattern() string

PathPattern returns OpenAPI path.

func (Route) Summary

func (r Route) Summary() string

Summary returns OpenAPI summary.

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.

func (*Server) FindPath

func (s *Server) FindPath(method string, u *url.URL) (r Route, _ bool)

FindPath finds Route for given method and URL.

func (*Server) FindRoute

func (s *Server) FindRoute(method, path string) (Route, bool)

FindRoute finds Route for given method and path.

Note: this method does not unescape path or handle reserved characters in path properly. Use FindPath instead.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serves http request as defined by OpenAPI v3 specification, calling handler that matches the path or returning not found error.

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

const (
	SeverityCritical Severity = "critical"
	SeverityHigh     Severity = "high"
	SeverityMedium   Severity = "medium"
	SeverityLow      Severity = "low"
	SeverityUnknown  Severity = "unknown"
)

func (Severity) AllValues

func (Severity) AllValues() []Severity

AllValues returns all Severity values.

func (*Severity) Decode

func (s *Severity) Decode(d *jx.Decoder) error

Decode decodes Severity from json.

func (Severity) Encode

func (s Severity) Encode(e *jx.Encoder)

Encode encodes Severity as json.

func (Severity) MarshalJSON

func (s Severity) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (Severity) MarshalText

func (s Severity) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*Severity) UnmarshalJSON

func (s *Severity) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Severity) UnmarshalText

func (s *Severity) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (Severity) Validate

func (s Severity) Validate() error

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

func (UnimplementedHandler) GetConfigConfigGet(ctx context.Context) (r jx.Raw, _ error)

GetConfigConfigGet implements get_config_config_get operation.

Get service configuration (sanitized) Business Requirement: BR-HAPI-128 (Configuration endpoint).

GET /config

func (UnimplementedHandler) HealthCheckHealthGet

func (UnimplementedHandler) HealthCheckHealthGet(ctx context.Context) (r jx.Raw, _ error)

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

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

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

func (UnimplementedHandler) ReadinessCheckReadyGet(ctx context.Context) (r jx.Raw, _ 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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL