messageparser

package
v0.0.0-...-56f121e Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

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)

Jump to

Keyboard shortcuts

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