Documentation ¶
Index ¶
- type LValue
- func (a LValue) Delete() Statements
- func (a LValue) DeleteIf(cond Value) Statements
- func (a LValue) IsPresent() Value
- func (a LValue) KeepKeys(keys ...string) Statements
- func (a LValue) MergeMaps(source Value, strategy string) Statements
- func (a LValue) MergeMapsIf(source Value, strategy string, condition Value) Statements
- func (a LValue) Set(b Value) Statements
- func (a LValue) SetIf(b, condition Value) Statements
- func (a LValue) SetIfNil(b Value) Statements
- func (a LValue) SetToBool(b Value) Statements
- func (path LValue) String() string
- type RValue
- type Statement
- type Statements
- type Value
- func And(conditions ...Value) Value
- func ConvertCase(a Value, toCase string) Value
- func Equals(a, b Value) Value
- func False() Value
- func IntLiteral(v int) Value
- func IsMatch(target Value, pattern string) Value
- func IsNotNil(a Value) Value
- func Nil() Value
- func Not(a Value) Value
- func Or(conditions ...Value) Value
- func ParseJSON(a Value) Value
- func StringLiteral(v string) Value
- func ToFloat(a Value) Value
- func ToInt(a Value) Value
- func ToString(a Value) Value
- func ToTime(a Value, strpformat string) Value
- func True() Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LValue ¶
type LValue []string
LValue represents a field (path) that can be written to.
func (LValue) Delete ¶
func (a LValue) Delete() Statements
Delete removes a (potentially nested) key from its parent maps, if that key exists.
func (LValue) DeleteIf ¶
func (a LValue) DeleteIf(cond Value) Statements
Delete removes a (potentially nested) key from its parent maps, if that key exists.
func (LValue) IsPresent ¶
IsPresent returns true if the field is recursively present (with any value)
func (LValue) KeepKeys ¶
func (a LValue) KeepKeys(keys ...string) Statements
func (LValue) MergeMapsIf ¶
func (a LValue) MergeMapsIf(source Value, strategy string, condition Value) Statements
func (LValue) Set ¶
func (a LValue) Set(b Value) Statements
func (LValue) SetIf ¶
func (a LValue) SetIf(b, condition Value) Statements
func (LValue) SetIfNil ¶
func (a LValue) SetIfNil(b Value) Statements
func (LValue) SetToBool ¶
func (a LValue) SetToBool(b Value) Statements
type RValue ¶
type RValue string
RValue represents an arbitrary expression that can be evaluated to a value.
type Statements ¶
type Statements []Statement
func ExtractCountMetric ¶
func ExtractCountMetric(monotonic bool, metricName string) Statements
ExtractCountMetric creates a new metric based on the count value of a Histogram metric
func NewStatements ¶
func NewStatements(a ...Statements) Statements
func (Statements) Append ¶
func (a Statements) Append(b ...Statements) Statements
type Value ¶
Value represents something that has a value in OTTL (either LValue or RValue)
func ConvertCase ¶
func IntLiteral ¶
func StringLiteral ¶
Click to show internal directories.
Click to hide internal directories.