MCPcopy
hub / github.com/SigNoz/signoz / FieldMapper

Interface FieldMapper

pkg/types/querybuildertypes/querybuildertypesv5/qb.go:23–30  ·  view source on GitHub ↗

FieldMapper maps the telemetry field key to the table field name.

Source from the content-addressed store, hash-verified

21
22// FieldMapper maps the telemetry field key to the table field name.
23type FieldMapper interface {
24 // FieldFor returns the field name for the given key.
25 FieldFor(ctx context.Context, tsStart, tsEnd uint64, key *telemetrytypes.TelemetryFieldKey) (string, error)
26 // ColumnFor returns the column for the given key.
27 ColumnFor(ctx context.Context, tsStart, tsEnd uint64, key *telemetrytypes.TelemetryFieldKey) ([]*schema.Column, error)
28 // ColumnExpressionFor returns the column expression for the given key.
29 ColumnExpressionFor(ctx context.Context, tsStart, tsEnd uint64, key *telemetrytypes.TelemetryFieldKey, keys map[string][]*telemetrytypes.TelemetryFieldKey) (string, error)
30}
31
32// ConditionBuilder builds the condition for the filter.
33type ConditionBuilder interface {

Callers 24

TestGetFieldKeyNameFunction · 0.95
TestGetFieldKeyNameFunction · 0.95
TestGetFieldKeyNameFunction · 0.95
TestGetFieldKeyNameFunction · 0.95
ConditionForMethod · 0.65
TestGetColumnFunction · 0.95
TestGetColumnFunction · 0.95
TestGetColumnFunction · 0.95
conditionForMethod · 0.65

Implementers 7

fieldMapperpkg/modules/rulestatehistory/implrules
fieldMapperpkg/telemetryaudit/field_mapper.go
fieldMapperpkg/telemetrylogs/field_mapper.go
defaultFieldMapperpkg/telemetrytraces/field_mapper.go
fieldMapperpkg/telemetrymetadata/field_mapper.go
defaultFieldMapperpkg/telemetryresourcefilter/field_mapp
fieldMapperpkg/telemetrymetrics/field_mapper.go

Calls

no outgoing calls

Tested by

no test coverage detected