Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RuleMappingTypeField = RuleMappingType("field") RuleMappingTypeTag = RuleMappingType("tag") RuleMappingTypeHiddenValue = RuleMappingType("hidden") )
View Source
var ( RuleMappingFieldDataTypeFloat = RuleMappingFieldDataType("float") RuleMappingFieldDataTypeInteger = RuleMappingFieldDataType("integer") RuleMappingFieldDataTypeString = RuleMappingFieldDataType("string") RuleMappingFieldDataTypeBoolean = RuleMappingFieldDataType("boolean") )
View Source
var (
RuleTypeRegexp = RuleType("regexp")
)
View Source
var (
TargetTypeBody = TargetType("body")
)
Functions ¶
This section is empty.
Types ¶
type Aggregation ¶
type Aggregation struct { Query string Rules []AggregationRule Tags map[string]string }
type AggregationRule ¶
type AggregationRule struct { Type RuleType Target TargetType Pattern string MatchMaxCount int Mappings map[string]RuleMapping Replacers Replacers }
type Measurement ¶
type Measurement struct { Name string Query string Aggregations []Aggregation }
type RuleMapping ¶
type RuleMapping struct { Type RuleMappingType `json:"type"` DataType RuleMappingFieldDataType `json:"dataType"` Replacers Replacers `json:"replacers"` Expression string `json:"expression"` }
func (*RuleMapping) ExpressionFields ¶
func (m *RuleMapping) ExpressionFields() []string
func (*RuleMapping) FieldValue ¶
func (*RuleMapping) Replace ¶
func (m *RuleMapping) Replace(s string) string
type RuleMappingFieldDataType ¶
type RuleMappingFieldDataType string
type RuleMappingType ¶
type RuleMappingType string
type TargetType ¶
type TargetType string
Click to show internal directories.
Click to hide internal directories.