Documentation ¶
Index ¶
- Variables
- func FromMetric(id ident.ID, tags ident.Tags) (doc.Document, error)
- func FromMetricIter(id ident.ID, tags ident.TagIterator) (doc.Document, error)
- func FromMetricIterNoClone(id ident.ID, tags ident.TagIterator) (doc.Document, error)
- func FromMetricNoClone(id ident.ID, tags ident.Tags) (doc.Document, error)
- func ToMetric(d doc.Document, opts Opts) (ident.ID, ident.TagIterator, error)
- func ValidateMetric(id ident.ID, tags ident.Tags) error
- type Opts
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ReservedFieldNameID is the field name used to index the ID in the // m3ninx subsytem. ReservedFieldNameID = doc.IDReservedFieldName // ErrUsingReservedFieldName is the error returned when a metric // cannot be parsed due to using a resereved field name ErrUsingReservedFieldName = errors.New( "unable to parse metric using reserved field name: " + string(ReservedFieldNameID)) )
Functions ¶
func FromMetric ¶
FromMetric converts the provided metric id+tags into a document. FOLLOWUP(r): Rename FromMetric to FromSeries (metric terminiology is not common in the codebase)
func FromMetricIter ¶
FromMetricIter converts the provided metric id+tags into a document. FOLLOWUP(r): Rename FromMetric to FromSeries (metric terminiology is not common in the codebase)
func FromMetricIterNoClone ¶
FromMetricIterNoClone converts the provided metric id+tags iterator into a document without cloning.
func FromMetricNoClone ¶
FromMetricNoClone converts the provided metric id+tags into a document without cloning.
Types ¶
Click to show internal directories.
Click to hide internal directories.