event_date_string

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DateString

type DateString struct {
	Tags      []string `mapstructure:"tag-names,omitempty" json:"tag-names,omitempty"`
	Values    []string `mapstructure:"value-names,omitempty" json:"value-names,omitempty"`
	Precision string   `mapstructure:"precision,omitempty" json:"precision,omitempty"`
	Format    string   `mapstructure:"format,omitempty" json:"format,omitempty"`
	Location  string   `mapstructure:"location,omitempty" json:"location,omitempty"`
	Debug     bool     `mapstructure:"debug,omitempty" json:"debug,omitempty"`
	// contains filtered or unexported fields
}

DateString converts Tags and/or Values of unix timestamp to a human readable format. Precision specifies the unit of the received timestamp, s, ms, us or ns. DateTimeFormat is the desired datetime format, it defaults to RFC3339

func (*DateString) Apply

func (d *DateString) Apply(e *formatters.EventMsg)

func (*DateString) Init

func (d *DateString) Init(cfg interface{}, logger *log.Logger) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL