Documentation
¶
Overview ¶
Package messageparser provides mechanics to parse a slack channel history for messages containing the information we are looking for, which is alert/incident context.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParseResult ¶
type ParseResult struct { IsAlert bool `json:"-"` IsDone bool `json:"-"` AlertName string `json:"alert_name,omitempty"` Priority string `json:"priority,omitempty"` InstallationName string `json:"installation_name,omitempty"` InstallationPipeline string `json:"installation_pipeline,omitempty"` Provider string `json:"provider,omitempty"` AffectsManagementCluster bool `json:"affects_management_cluster"` AffectsWorkloadCluster bool `json:"affects_workload_cluster"` WorkloadClusterID string `json:"workload_cluster_id,omitempty"` SlackChannelID string `json:"slack_channel_id"` SlackChannelName string `json:"slack_channel_name"` }
func ParseConversationHistory ¶
func ParseConversationHistory(history *slack.GetConversationHistoryResponse, doneString string) (ParseResult, error)
func ParseMessage ¶
func ParseMessage(message slack.Message, doneString string) (ParseResult, error)
Click to show internal directories.
Click to hide internal directories.