Documentation
¶
Index ¶
- type DateString
- func (d *DateString) Apply(es ...*formatters.EventMsg) []*formatters.EventMsg
- func (d *DateString) Init(cfg interface{}, opts ...formatters.Option) error
- func (d *DateString) WithActions(act map[string]map[string]interface{})
- func (d *DateString) WithLogger(l *log.Logger)
- func (d *DateString) WithTargets(tcs map[string]*types.TargetConfig)
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(es ...*formatters.EventMsg) []*formatters.EventMsg
func (*DateString) Init ¶
func (d *DateString) Init(cfg interface{}, opts ...formatters.Option) error
func (*DateString) WithActions ¶
func (d *DateString) WithActions(act map[string]map[string]interface{})
func (*DateString) WithLogger ¶
func (d *DateString) WithLogger(l *log.Logger)
func (*DateString) WithTargets ¶
func (d *DateString) WithTargets(tcs map[string]*types.TargetConfig)
Click to show internal directories.
Click to hide internal directories.