Documentation ¶
Index ¶
- Constants
- Variables
- func EventToContext(events []types.Event) (models.Meta, []error)
- func LoadConsoleContext(c *csconfig.Config, hub *cwhub.Hub) error
- func NewAlertContext(contextToSend map[string][]string, valueLength int) error
- func TruncateContext(values []string, contextValueLen int) (string, error)
- func ValidateContextExpr(key string, expressions []string) error
- type Context
- type HubItemWrapper
Constants ¶
View Source
const (
MaxContextValueLen = 4000
)
Variables ¶
View Source
var ErrNoContextData = errors.New("no context to send")
Functions ¶
func LoadConsoleContext ¶ added in v1.6.0
LoadConsoleContext loads the context from the hub (if provided) and the file console_context_path.
func NewAlertContext ¶
func TruncateContext ¶ added in v1.6.2
func ValidateContextExpr ¶
Types ¶
type HubItemWrapper ¶ added in v1.6.0
HubItemWrapper is a wrapper around a hub item to unmarshal only the context part because there are other fields like name etc.
Click to show internal directories.
Click to hide internal directories.