MCPcopy
hub / github.com/netdata/netdata / Limit

Method Limit

src/go/logger/ratelimit.go:73–87  ·  view source on GitHub ↗
(key string, n int, d time.Duration)

Source from the content-addressed store, hash-verified

71}
72
73func (l *Logger) Limit(key string, n int, d time.Duration) LimitedLogger {
74 if n <= 0 {
75 n = 1
76 }
77 if d < 0 {
78 d = 0
79 }
80 return LimitedLogger{
81 l: l,
82 mode: modeLimit,
83 key: key,
84 limit: n,
85 window: d,
86 }
87}
88
89func (l *Logger) ResetAllOnce() {
90 if l == nil || l.rl == nil {

Implementers 7

ProtocolClientsrc/go/plugin/ibm.d/framework/protocol
CollectorStatesrc/go/plugin/ibm.d/framework/types.go
nopLoggersrc/go/plugin/ibm.d/protocols/webspher
testLoggersrc/go/plugin/ibm.d/protocols/jmxbridg
Loggersrc/go/logger/logger.go
ConditionalLoggersrc/go/logger/conditional.go
LimitedLoggersrc/go/logger/ratelimit.go

Calls

no outgoing calls