Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ServerShutdownTimeout time.Duration `mapstructure:"server-shutdown-timeout"`
HttpServerTimeout time.Duration `mapstructure:"http-server-timeout"`
Host string `mapstructure:"host"`
Port int `mapstructure:"port"`
PortMetrics int `mapstructure:"port-metrics"`
Unhealthy bool `mapstructure:"unhealthy"`
Unready bool `mapstructure:"unready"`
}
type CreateNewChat ¶
type CreateNewChat struct {
Message string `json:"message" example:"Pod web-server-5b866987d8-sxmtj in namespace default Crashlooping."`
Language string `json:"language,omitempty" example:"en"`
}
CreateNewChat Create program.
type CreateNewKnowledge ¶
type CreateNewKnowledge struct {
Source string `json:"source" example:"local"`
Path string `json:"path" example:"./docs/runbooks"`
GitRepositoryURL string `json:"gitRepositoryURL,omitempty" example:""`
GitAuthToken string `json:"gitAuthToken,omitempty" example:""`
GitBranch string `json:"gitBranch,omitempty" example:""`
}
CreateNewKnowledge Create knowledge.
type ErrorResponse ¶
type FetchMessagesResponse ¶
type MapResponse ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewMockServer ¶
func NewMockServer() *Server
func NewServer ¶
func NewServer(config *Config, logger logger.ILogger, avaCfg *configuration.Configuration) (*Server, error)
func (*Server) ErrorResponseWithCode ¶
ErrorResponseWithCode
func (*Server) JSONResponseWithCode ¶
JSONResponseWithCode
type SuccessResponse ¶
type SuccessResponse struct {
Message string `json:"message"`
}
type WebhookPayload ¶
type WebhookPayload struct {
Version string `json:"version"`
GroupKey string `json:"groupKey"`
TruncatedAlerts int `json:"truncatedAlerts"`
Status string `json:"status"`
Receiver string `json:"receiver"`
GroupLabels map[string]string `json:"groupLabels"`
CommonLabels map[string]string `json:"commonLabels"`
CommonAnnotations map[string]string `json:"commonAnnotations"`
ExternalURL string `json:"externalURL"`
Alerts []Alert `json:"alerts"`
}
Click to show internal directories.
Click to hide internal directories.