Home Manual Reference Source Test
import {Schema} from 'influx/src/schema.js'
private class | source

Schema

The Schema provides information and utilities for an InfluxDB measurement.

Method Summary

Public Methods
public

checkTags(tags: *): *

Throws an error if the tags include values other than what was specified in the schema.

public

coerceFields(fields: *): *

CoerceFields converts a map of field values to a strings which can be injected into the line protocol without further escaping.

Private Methods
private

_ref(field: *): *

Returns the 'db'.'measurement'[.'field'] referencing the current schema.

Public Methods

public checkTags(tags: *): * source

Throws an error if the tags include values other than what was specified in the schema. It returns a list of tag names.

Params:

NameTypeAttributeDescription
tags *

Return:

*

public coerceFields(fields: *): * source

CoerceFields converts a map of field values to a strings which can be injected into the line protocol without further escaping. The output is given in [key, value] pairs.

Params:

NameTypeAttributeDescription
fields *

Return:

*

Private Methods

private _ref(field: *): * source

Returns the 'db'.'measurement'[.'field'] referencing the current schema.

Params:

NameTypeAttributeDescription
field *

Return:

*