MCPcopy
hub / github.com/influxdata/telegraf / Parser

Struct Parser

plugins/parsers/xpath/parser.go:37–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37type Parser struct {
38 Format string `toml:"-"`
39 ProtobufMessageFiles []string `toml:"xpath_protobuf_files"`
40 ProtobufMessageDef string `toml:"xpath_protobuf_file" deprecated:"1.32.0;1.40.0;use 'xpath_protobuf_files' instead"`
41 ProtobufMessageType string `toml:"xpath_protobuf_type"`
42 ProtobufImportPaths []string `toml:"xpath_protobuf_import_paths"`
43 ProtobufSkipBytes int64 `toml:"xpath_protobuf_skip_bytes"`
44 PrintDocument bool `toml:"xpath_print_document"`
45 AllowEmptySelection bool `toml:"xpath_allow_empty_selection"`
46 NativeTypes bool `toml:"xpath_native_types"`
47 Trace bool `toml:"xpath_trace" deprecated:"1.35.0;1.40.0;use 'log_level' 'trace' instead"`
48 Configs []Config `toml:"xpath"`
49 DefaultMetricName string `toml:"-"`
50 DefaultTags map[string]string `toml:"-"`
51 Log telegraf.Logger `toml:"-"`
52
53 document dataDocument
54 timeFunc func() time.Time
55}
56
57type Config struct {
58 MetricQuery string `toml:"metric_name"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected