Documentation
¶
Index ¶
Constants ¶
View Source
const (
// DefaultMaxRetries is the number of retries after the first attempt.
DefaultMaxRetries = 3
)
Variables ¶
This section is empty.
Functions ¶
func IsErrThrottle ¶ added in v1.300074.0
IsErrThrottle is a wrapper for the default throttle error code check for the AWS SDK retry logic.
Types ¶
type LogThrottleRetryer ¶
type LogThrottleRetryer struct {
Log telegraf.Logger
// Embed the standard retryer for default behavior
*retry.Standard
// contains filtered or unexported fields
}
func NewLogThrottleRetryer ¶
func NewLogThrottleRetryer(logger telegraf.Logger) *LogThrottleRetryer
func (*LogThrottleRetryer) IsErrorRetryable ¶ added in v1.300074.0
func (r *LogThrottleRetryer) IsErrorRetryable(err error) bool
func (*LogThrottleRetryer) Stop ¶
func (r *LogThrottleRetryer) Stop()
Click to show internal directories.
Click to hide internal directories.