Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { tail.Config // Pattern is the log level and message pattern in a log line. Pattern string // Levels if match log level then notify alert. Levels []string // Excludes if match word then don't notify alert. Excludes []string // WebhookURL is slack incoming webhook URL. WebhookURL string // WebhookChannel is slack incoming webhook channel. WebhookChannel string // WebhookAppID is webhook message field. WebhookAppID string // WebhookOwners is webhook message field. WebhookOwners []string // WebhookTextFormat is webhook message text format. WebhookTextFormat string }
Config is used to specify how a file must be tailed.
type Tester ¶ added in v0.2.0
type Tester struct {
// contains filtered or unexported fields
}
Tester is check, test message pattern
Click to show internal directories.
Click to hide internal directories.