Documentation ¶
Index ¶
- func NewParser(functions map[string]interface{}, ...) (ottl.Parser[TransformContext], error)
- func NewStatements(statements []*ottl.Statement[TransformContext], ...) ottl.Statements[TransformContext]
- type Option
- type StatementsOption
- type TransformContext
- func (tCtx TransformContext) GetDataPoint() interface{}
- func (tCtx TransformContext) GetInstrumentationScope() pcommon.InstrumentationScope
- func (tCtx TransformContext) GetMetric() pmetric.Metric
- func (tCtx TransformContext) GetMetrics() pmetric.MetricSlice
- func (tCtx TransformContext) GetResource() pcommon.Resource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewParser ¶
func NewParser(functions map[string]interface{}, telemetrySettings component.TelemetrySettings, options ...Option) (ottl.Parser[TransformContext], error)
func NewStatements ¶ added in v0.72.0
func NewStatements(statements []*ottl.Statement[TransformContext], telemetrySettings component.TelemetrySettings, options ...StatementsOption) ottl.Statements[TransformContext]
Types ¶
type Option ¶ added in v0.70.0
type Option func(*ottl.Parser[TransformContext])
type StatementsOption ¶ added in v0.72.0
type StatementsOption func(*ottl.Statements[TransformContext])
func WithErrorMode ¶ added in v0.72.0
func WithErrorMode(errorMode ottl.ErrorMode) StatementsOption
type TransformContext ¶
type TransformContext struct {
// contains filtered or unexported fields
}
func NewTransformContext ¶
func NewTransformContext(dataPoint interface{}, metric pmetric.Metric, metrics pmetric.MetricSlice, instrumentationScope pcommon.InstrumentationScope, resource pcommon.Resource) TransformContext
func (TransformContext) GetDataPoint ¶
func (tCtx TransformContext) GetDataPoint() interface{}
func (TransformContext) GetInstrumentationScope ¶
func (tCtx TransformContext) GetInstrumentationScope() pcommon.InstrumentationScope
func (TransformContext) GetMetric ¶
func (tCtx TransformContext) GetMetric() pmetric.Metric
func (TransformContext) GetMetrics ¶
func (tCtx TransformContext) GetMetrics() pmetric.MetricSlice
func (TransformContext) GetResource ¶
func (tCtx TransformContext) GetResource() pcommon.Resource
Click to show internal directories.
Click to hide internal directories.