Documentation ¶
Index ¶
- func NewConditionSequence(conditions []*ottl.Condition[TransformContext], ...) ottl.ConditionSequence[TransformContext]
- func NewParser(functions map[string]ottl.Factory[TransformContext], ...) (ottl.Parser[TransformContext], error)
- func NewStatementSequence(statements []*ottl.Statement[TransformContext], ...) ottl.StatementSequence[TransformContext]
- type ConditionSequenceOption
- type Option
- type StatementSequenceOption
- type TransformContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConditionSequence ¶ added in v0.91.0
func NewConditionSequence(conditions []*ottl.Condition[TransformContext], telemetrySettings component.TelemetrySettings, options ...ConditionSequenceOption) ottl.ConditionSequence[TransformContext]
func NewParser ¶
func NewParser(functions map[string]ottl.Factory[TransformContext], telemetrySettings component.TelemetrySettings, options ...Option) (ottl.Parser[TransformContext], error)
func NewStatementSequence ¶ added in v0.91.0
func NewStatementSequence(statements []*ottl.Statement[TransformContext], telemetrySettings component.TelemetrySettings, options ...StatementSequenceOption) ottl.StatementSequence[TransformContext]
Types ¶
type ConditionSequenceOption ¶ added in v0.91.0
type ConditionSequenceOption func(*ottl.ConditionSequence[TransformContext])
func WithConditionSequenceErrorMode ¶ added in v0.91.0
func WithConditionSequenceErrorMode(errorMode ottl.ErrorMode) ConditionSequenceOption
type Option ¶ added in v0.70.0
type Option func(*ottl.Parser[TransformContext])
type StatementSequenceOption ¶ added in v0.91.0
type StatementSequenceOption func(*ottl.StatementSequence[TransformContext])
func WithStatementSequenceErrorMode ¶ added in v0.91.0
func WithStatementSequenceErrorMode(errorMode ottl.ErrorMode) StatementSequenceOption
type TransformContext ¶
type TransformContext struct {
// contains filtered or unexported fields
}
func NewTransformContext ¶
func NewTransformContext(resource pcommon.Resource, schemaURLItem internal.SchemaURLItem) TransformContext
func (TransformContext) GetResource ¶
func (tCtx TransformContext) GetResource() pcommon.Resource
func (TransformContext) GetResourceSchemaURLItem ¶ added in v0.104.0
func (tCtx TransformContext) GetResourceSchemaURLItem() internal.SchemaURLItem
func (TransformContext) MarshalLogObject ¶ added in v0.103.0
func (tCtx TransformContext) MarshalLogObject(encoder zapcore.ObjectEncoder) error
Click to show internal directories.
Click to hide internal directories.