Methods
addPoint
- addPoint(measurement: string, fields: object, tags: object, time?: string): any
-
Parameters
-
measurement: string
-
fields: object
-
tags: object
-
Optional time: string
Returns any
createDemoMeasurement
- createDemoMeasurement(measurement: string, demoDataType: string, tag?: object): Promise<void>
-
Parameters
-
measurement: string
-
demoDataType: string
-
Optional tag: object
-
tagKey: string
-
tagValue: string
Returns Promise<void>
deleteAllMeasurements
- deleteAllMeasurements(): Promise<void>
deleteMeasurement
- deleteMeasurement(name: string): Promise<Measurement>
-
Parameters
Returns Promise<Measurement>
fetchSeries
- fetchSeries(q: string, raw?: boolean): Promise<any>
-
Parameters
-
q: string
-
Optional raw: boolean
Returns Promise<any>
getMeasurements
- getMeasurements(): Promise<Array<Measurement>>
-
Returns Promise<Array<Measurement>>