Documentation ¶
Index ¶
- Variables
- func FormatTimestamp(event *events.Event, timestamp string)
- func IsMaxRetries(err error) bool
- func ParseCustomInput(customInput string) map[string][]string
- func Retry(fn Func) error
- func StringBuilder(event *events.Event, verboseLogMessages bool, includeOnlyMatchingFilter string, ...) string
- func WantedEvent(event string, includeOnlyMatchingFilter string, ...) bool
- type Func
- type SumoBuffer
- type SumoLogicAppender
Constants ¶
This section is empty.
Variables ¶
View Source
var MaxRetries = 10
MaxRetries is the maximum number of retries before bailing.
Functions ¶
func FormatTimestamp ¶
func IsMaxRetries ¶
IsMaxRetries checks whether the error is due to hitting the maximum number of retries or not.
func ParseCustomInput ¶
func Retry ¶
Do keeps trying the function until the second argument returns false, or no error is returned.
func StringBuilder ¶
Types ¶
type SumoBuffer ¶
type SumoBuffer struct {
// contains filtered or unexported fields
}
type SumoLogicAppender ¶
type SumoLogicAppender struct {
// contains filtered or unexported fields
}
func NewSumoLogicAppender ¶
func NewSumoLogicAppender(urlValue string, connectionTimeoutValue int, nozzleQueue *eventQueue.Queue, eventsBatchSize int, sumoPostMinimumDelay time.Duration, sumoCategory string, sumoName string, sumoHost string, verboseLogMessages bool, customMetadata string, includeOnlyMatchingFilter string, excludeAlwaysMatchingFilter string, nozzleVersion string) *SumoLogicAppender
func (*SumoLogicAppender) AppendLogs ¶
func (s *SumoLogicAppender) AppendLogs(buffer *SumoBuffer)
func (*SumoLogicAppender) SendToSumo ¶
func (s *SumoLogicAppender) SendToSumo(logStringToSend string, url string, isMetric bool)
func (*SumoLogicAppender) Start ¶
func (s *SumoLogicAppender) Start()
Click to show internal directories.
Click to hide internal directories.