# Functions
DiagnoseEvents returns an HTTP handler function that performs AI diagnosis on events using SSE
@Summary Diagnose events using AI @Description This endpoint analyzes events using AI to identify issues and provide solutions @Tags insight @Accept json @Produce text/event-stream @Param request body EventDiagnoseRequest true "The events to analyze" @Success 200 {object} ai.DiagnosisEvent @Failure 400 {string} string "Bad Request" @Failure 500 {string} string "Internal Server Error" @Router /insight/aggregator/event/diagnosis/stream [post].
DiagnosePodLogs returns an HTTP handler function that performs AI diagnosis on pod logs
@Summary Diagnose pod logs using AI @Description This endpoint analyzes pod logs using AI to identify issues and provide solutions @Tags insight @Accept json @Produce text/event-stream @Param request body DiagnoseRequest true "The logs to analyze" @Success 200 {object} ai.DiagnosisEvent @Failure 400 {string} string "Bad Request" @Failure 500 {string} string "Internal Server Error" @Router /insight/aggregator/log/diagnosis/stream [post].
GetEvents returns an HTTP handler function that streams events for a resource using SSE
@Summary Stream resource events using Server-Sent Events @Description This endpoint streams resource events in real-time using SSE.
GetPodLogs returns an HTTP handler function that streams Pod logs using Server-Sent Events
@Summary Stream pod logs using Server-Sent Events @Description This endpoint streams pod logs in real-time using SSE.
# Constants
No description provided by the author
# Structs
DiagnoseRequest represents the request body for log diagnosis.
DiagnoseResponse represents the response for log diagnosis.
EventDiagnoseRequest represents the request body for event diagnosis.
LogEntry represents a single log entry with timestamp and content.