forked from suzuki-shunsuke/go-graylog
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinput_cef_kafka.go
More file actions
30 lines (26 loc) · 1.08 KB
/
input_cef_kafka.go
File metadata and controls
30 lines (26 loc) · 1.08 KB
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
package graylog
const (
// InputTypeCEFKafka is one of input types.
InputTypeCEFKafka string = "org.graylog.plugins.cef.input.CEFKafkaInput"
)
// NewInputCEFKafkaAttrs is the constructor of InputCEFKafkaAttrs.
func NewInputCEFKafkaAttrs() InputAttrs {
return &InputCEFKafkaAttrs{}
}
// InputType is the implementation of the InputAttrs interface.
func (attrs InputCEFKafkaAttrs) InputType() string {
return InputTypeCEFKafka
}
// InputCEFKafkaAttrs represents CEF Kafka Input's attributes.
type InputCEFKafkaAttrs struct {
ThrottlingAllowed bool `json:"throttling_allowed,omitempty"`
UseFullNames bool `json:"use_full_names,omitempty"`
Locale string `json:"locale,omitempty"`
Zookeeper string `json:"zookeeper,omitempty"`
Timezone string `json:"timezone,omitempty"`
TopicFilter string `json:"topic_filter,omitempty"`
OffsetReset string `json:"offset_reset,omitempty"`
Threads int `json:"threads,omitempty"`
FetchWaitMax int `json:"fetch_wait_max,omitempty"`
FetchMinBytes int `json:"fetch_min_bytes,omitempty"`
}