Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config []*Rule
Config is a collection of rules for updating the labels on a message.
type JSONRegexp ¶
JSONRegexp provides a means of directly unmarshaling a regexp
func (*JSONRegexp) MarshalJSON ¶
func (r *JSONRegexp) MarshalJSON() ([]byte, error)
MarshalJSON implements the yaml Marshaler interface for JSON Regex
func (*JSONRegexp) MarshalYAML ¶
func (r *JSONRegexp) MarshalYAML() (interface{}, error)
MarshalYAML implements the yaml Marshaler interface for JSON Regex
func (*JSONRegexp) UnmarshalJSON ¶
func (r *JSONRegexp) UnmarshalJSON(bs []byte) error
UnmarshalJSON implements the yaml Unmarshaler interface for JSON Regex
func (*JSONRegexp) UnmarshalYAML ¶
func (r *JSONRegexp) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements the yaml Unmarshaler interface for JSON Regex
type Rule ¶
type Rule struct { Action ruleFunc `json:"action" yaml:"action"` SrcLabels []string `json:"source_labels" yaml:"source_labels"` TargetLabel string `json:"target_label" yaml:"target_label"` Regex *JSONRegexp `json:"regex" yaml:"regex"` Replacement string `json:"replacement" yaml:"replacement"` Separator string `json:"separator" yaml:"separator"` XXX `json:",omitempty" yaml:",omitempty,inline"` }
Rule describes configuraiton for a rule to relabel a message.
func (*Rule) UnmarshalJSON ¶
UnmarshalJSON unmarshals yaml to a Relabel rule with appropriate defaults
func (*Rule) UnmarshalYAML ¶
UnmarshalYAML unmarshals yaml to a Relabel rule with appropriate defaults
Click to show internal directories.
Click to hide internal directories.