Documentation ¶
Index ¶
- Constants
- Variables
- func ValidateDatasetDatasetType(raw string) error
- func ValidateNumericFilterComparisonType(raw string) error
- func ValidateSpanFilterMatchType(raw string) error
- func ValidateStringFilterMatchType(raw string) error
- type DatasetType
- type NumericFilterComparisonType
- type SpanFilterMatchType
- type StringFilterMatchType
Constants ¶
const ( DatasetDatasetTypeTracesModel = DatasetType(models.DatasetDatasetTypeTRACES) DatasetDatasetTypeLogsModel = DatasetType(models.DatasetDatasetTypeLOGS) )
Supported dataset types.
const ( NumericFilterComparisonTypeEqualModel = NumericFilterComparisonType(models.NumericFilterComparisonTypeEQUAL) NumericFilterComparisonTypeNotEqualModel = NumericFilterComparisonType(models.NumericFilterComparisonTypeNOTEQUAL) NumericFilterComparisonTypeGreaterThanModel = NumericFilterComparisonType(models.NumericFilterComparisonTypeGREATERTHAN) NumericFilterComparisonTypeGreaterThanOrEqualModel = NumericFilterComparisonType(models.NumericFilterComparisonTypeGREATERTHANOREQUAL) NumericFilterComparisonTypeLessThanModel = NumericFilterComparisonType(models.NumericFilterComparisonTypeLESSTHAN) NumericFilterComparisonTypeLessThanOrEqualModel = NumericFilterComparisonType(models.NumericFilterComparisonTypeLESSTHANOREQUAL) )
Supported comparison types.
const ( SpanFilterMatchTypeIncludeModel = SpanFilterMatchType(models.SpanFilterSpanFilterMatchTypeINCLUDE) SpanFilterMatchTypeExcludeModel = SpanFilterMatchType(models.SpanFilterSpanFilterMatchTypeEXCLUDE) )
Supported matcher types.
const ( StringFilterMatchTypeExactModel = StringFilterMatchType(models.StringFilterStringFilterMatchTypeEXACT) StringFilterMatchTypeRegexModel = StringFilterMatchType(models.StringFilterStringFilterMatchTypeREGEX) StringFilterMatchTypeExactNegationModel = StringFilterMatchType(models.StringFilterStringFilterMatchTypeEXACTNEGATION) StringFilterMatchTypeRegexNegationModel = StringFilterMatchType(models.StringFilterStringFilterMatchTypeREGEXNEGATION) StringFilterMatchTypeInModel = StringFilterMatchType(models.StringFilterStringFilterMatchTypeIN) StringFilterMatchTypeNotInModel = StringFilterMatchType(models.StringFilterStringFilterMatchTypeNOTIN) )
Supported matcher types.
Variables ¶
var ( DatasetDatasetTypeTracesLower = DatasetType(strings.ToLower(string(DatasetDatasetTypeTracesModel))) DatasetDatasetTypeLogsLower = DatasetType(strings.ToLower(string(DatasetDatasetTypeLogsModel))) )
var ( NumericFilterComparisonTypeEqualLower = NumericFilterComparisonType(strings.ToLower(string(NumericFilterComparisonTypeEqualModel))) NumericFilterComparisonTypeNotEqualLower = NumericFilterComparisonType(strings.ToLower(string(NumericFilterComparisonTypeNotEqualModel))) NumericFilterComparisonTypeGreaterThanLower = NumericFilterComparisonType(strings.ToLower(string(NumericFilterComparisonTypeGreaterThanModel))) NumericFilterComparisonTypeGreaterThanOrEqualLower = NumericFilterComparisonType(strings.ToLower(string(NumericFilterComparisonTypeGreaterThanOrEqualModel))) NumericFilterComparisonTypeLessThanLower = NumericFilterComparisonType(strings.ToLower(string(NumericFilterComparisonTypeLessThanModel))) NumericFilterComparisonTypeLessThanOrEqualLower = NumericFilterComparisonType(strings.ToLower(string(NumericFilterComparisonTypeLessThanOrEqualModel))) )
var ( SpanFilterMatchTypeInclude = SpanFilterMatchType(strings.ToLower(string(SpanFilterMatchTypeIncludeModel))) SpanFilterMatchTypeExclude = SpanFilterMatchType(strings.ToLower(string(SpanFilterMatchTypeExcludeModel))) )
var ( StringFilterMatchTypeExact = StringFilterMatchType(strings.ToLower(string(StringFilterMatchTypeExactModel))) StringFilterMatchTypeRegex = StringFilterMatchType(strings.ToLower(string(StringFilterMatchTypeRegexModel))) StringFilterMatchTypeExactNegation = StringFilterMatchType(strings.ToLower(string(StringFilterMatchTypeExactNegationModel))) StringFilterMatchTypeRegexNegation = StringFilterMatchType(strings.ToLower(string(StringFilterMatchTypeRegexNegationModel))) StringFilterMatchTypeIn = StringFilterMatchType(strings.ToLower(string(StringFilterMatchTypeInModel))) StringFilterMatchTypeNotIn = StringFilterMatchType(strings.ToLower(string(StringFilterMatchTypeNotInModel))) )
Functions ¶
func ValidateDatasetDatasetType ¶
ValidateDatasetDatasetType validates the raw dataset type value.
func ValidateNumericFilterComparisonType ¶
ValidateNumericFilterComparisonType validates the raw comparison type value.
func ValidateSpanFilterMatchType ¶
ValidateSpanFilterMatchType validates the raw matcher type value.
func ValidateStringFilterMatchType ¶
ValidateStringFilterMatchType validates the raw matcher type value.
Types ¶
type DatasetType ¶
type DatasetType string
DatasetType is a wrapper of models.DatasetDatasetType with support for user friendly values.
func DatasetTypeFromModel ¶
func DatasetTypeFromModel(m models.DatasetDatasetType) DatasetType
DatasetTypeFromModel returns the human-readable string for a matcher type enum.
func NewDatasetDatasetType ¶
func NewDatasetDatasetType(raw string) (DatasetType, error)
NewDatasetDatasetType creates a new dataset type.
func (DatasetType) Model ¶
func (ct DatasetType) Model() models.DatasetDatasetType
Model returns the model value of the dataset type.
type NumericFilterComparisonType ¶
type NumericFilterComparisonType string
NumericFilterComparisonType is a wrapper of models.TraceSearchFilterNumericFilterComparisonType with support of user friendly values.
func NewNumericFilterComparisonType ¶
func NewNumericFilterComparisonType(raw string) (NumericFilterComparisonType, error)
NewNumericFilterComparisonType creates a new comparison type.
func (NumericFilterComparisonType) Model ¶
func (ct NumericFilterComparisonType) Model() models.NumericFilterComparisonType
Model returns the model value of the comparison type.
type SpanFilterMatchType ¶
type SpanFilterMatchType string
SpanFilterMatchType is a wrapper of models.TraceSearchFilterSpanFilterMatchType with support of user friendly values.
func NewSpanFilterMatchType ¶
func NewSpanFilterMatchType(raw string) (SpanFilterMatchType, error)
NewSpanFilterMatchType creates a new matcher type,
func SpanFilterMatchTypeFromModel ¶
func SpanFilterMatchTypeFromModel(m models.SpanFilterSpanFilterMatchType) SpanFilterMatchType
SpanFilterMatchTypeFromModel returns the human readable string for a matcher type enum
func (SpanFilterMatchType) Model ¶
func (mt SpanFilterMatchType) Model() models.SpanFilterSpanFilterMatchType
Model returns the model value of the matcher type.
type StringFilterMatchType ¶
type StringFilterMatchType string
StringFilterMatchType is a wrapper of models.TraceSearchFilterStringFilterMatchType with support of user friendly values.
func NewStringFilterMatchType ¶
func NewStringFilterMatchType(raw string) (StringFilterMatchType, error)
NewStringFilterMatchType creates a new matcher type,
func StringFilterMatchTypeFromModel ¶
func StringFilterMatchTypeFromModel(m models.StringFilterStringFilterMatchType) StringFilterMatchType
StringFilterMatchTypeFromModel returns the human readable string for a matcher type enum
func (StringFilterMatchType) Model ¶
func (mt StringFilterMatchType) Model() models.StringFilterStringFilterMatchType
Model returns the model value of the matcher type.