-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Copy paththrottle.cue
36 lines (33 loc) · 934 Bytes
/
throttle.cue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package metadata
base: components: transforms: throttle: configuration: {
exclude: {
description: "A logical condition used to exclude events from sampling."
required: false
type: condition: {}
}
key_field: {
description: """
The value to group events into a separate buckets to be rate limited independently.
If left unspecified, or if the event doesn't have `key_field`, then the event is not rate
limited separately.
"""
required: false
type: string: {
examples: ["{{ message }}", "{{ hostname }}"]
syntax: "template"
}
}
threshold: {
description: """
The number of events allowed for a given bucket per configured `window_secs`.
Each unique key has its own `threshold`.
"""
required: true
type: uint: {}
}
window_secs: {
description: "The time window in which the configured `threshold` is applied, in seconds."
required: true
type: float: unit: "seconds"
}
}