Documentation
¶
Index ¶
- func AppendCSVHeader(dst []byte, mapping SchemaMapping) []byte
- func AppendNormalizeAdxIdentifier(dst, s []byte) []byte
- func AppendNormalizeMetricName(dst, s []byte) []byte
- func NormalizeAdxIdentifier(s string) string
- func NormalizeMetricName(s []byte) []byte
- func SchemaHash(mapping SchemaMapping) uint64
- type CSVMapping
- type SchemaMapping
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendCSVHeader ¶
func AppendCSVHeader(dst []byte, mapping SchemaMapping) []byte
func AppendNormalizeAdxIdentifier ¶
NormalizeAdxIdentifier sanitizes a table or database name for use in ADX and appends it to dst. This does not do ProperCase transformations for metrics, only removes invalid characters See https://learn.microsoft.com/en-us/kusto/query/schema-entities/entity-names?view=microsoft-fabric#identifier-naming-rules
func AppendNormalizeMetricName ¶
AppendNormalizeMetricName converts a metrics name to a ProperCase table name and appends it to dst.
func NormalizeAdxIdentifier ¶
NormalizeAdxIdentifier sanitizes a table or database name for use in ADX This does not do ProperCase transformations for metrics, only removes invalid characters See https://learn.microsoft.com/en-us/kusto/query/schema-entities/entity-names?view=microsoft-fabric#identifier-naming-rules
func NormalizeMetricName ¶
NormalizeMetricName converts a metrics name to a ProperCase table name
func SchemaHash ¶
func SchemaHash(mapping SchemaMapping) uint64
Types ¶
type CSVMapping ¶
type SchemaMapping ¶
type SchemaMapping []CSVMapping
var ( DefaultMetricsMapping SchemaMapping = NewMetricsSchema() DefaultLogsMapping SchemaMapping = NewLogsSchema() )
func NewLogsSchema ¶
func NewLogsSchema() SchemaMapping
func NewMetricsSchema ¶
func NewMetricsSchema() SchemaMapping
func UnmarshalSchema ¶
func UnmarshalSchema(data string) (SchemaMapping, error)
func (SchemaMapping) AddConstMapping ¶
func (m SchemaMapping) AddConstMapping(col, value string) SchemaMapping
func (SchemaMapping) AddStringMapping ¶
func (m SchemaMapping) AddStringMapping(col string) SchemaMapping