Documentation
¶
Index ¶
- func CreateLogDestinationTransforms(name string, dest v1alpha2.ClusterLogDestination, sourceType string) ([]apis.LogTransform, loglabels.DestinationSinkLabelMaps, error)
- func CreateLogSourceTransforms(name string, cfg *LogSourceConfig) ([]apis.LogTransform, error)
- type CommonTransform
- type DynamicTransform
- type LogSourceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLogDestinationTransforms ¶ added in v1.36.0
func CreateLogDestinationTransforms(name string, dest v1alpha2.ClusterLogDestination, sourceType string) ([]apis.LogTransform, loglabels.DestinationSinkLabelMaps, error)
CreateLogDestinationTransforms creates a list of transforms for a log destination
func CreateLogSourceTransforms ¶ added in v1.36.0
func CreateLogSourceTransforms(name string, cfg *LogSourceConfig) ([]apis.LogTransform, error)
Types ¶
type CommonTransform ¶
type CommonTransform struct {
Name string `json:"-"`
Type string `json:"type"`
Inputs set.Set `json:"inputs"`
}
func (*CommonTransform) GetInputs ¶
func (cs *CommonTransform) GetInputs() []string
func (*CommonTransform) GetName ¶
func (cs *CommonTransform) GetName() string
func (*CommonTransform) SetInputs ¶
func (cs *CommonTransform) SetInputs(inp []string)
func (*CommonTransform) SetName ¶
func (cs *CommonTransform) SetName(name string)
type DynamicTransform ¶
type DynamicTransform struct {
CommonTransform
DynamicArgsMap map[string]interface{} `json:"-"`
}
func (*DynamicTransform) MarshalJSON ¶
func (t *DynamicTransform) MarshalJSON() ([]byte, error)
type LogSourceConfig ¶ added in v1.36.0
type LogSourceConfig struct {
SourceType string
MultilineType v1alpha1.MultiLineParserType
MultilineCustomConfig v1alpha1.MultilineParserCustom
LabelFilter []v1alpha1.Filter
LogFilter []v1alpha1.Filter
}
Click to show internal directories.
Click to hide internal directories.