Properties
Private client
client: InfluxDB
Private db
db: string = ""
Methods
express
- express(req: Request, res: Response, next: NextFunction): void
-
Parameters
-
req: Request
-
res: Response
-
next: NextFunction
Returns void
Private initDb
- initDb(onConnected?: undefined | function): void
-
Parameters
-
Optional onConnected: undefined | function
Returns void
log
- log(message: string, severity: Severity): void
record
- record(measurement: string, point: IPoint): Promise<void>
-
Parameters
-
measurement: string
-
point: IPoint
Returns Promise<void>
recordInterval
- recordInterval(measurement: string, func: function, interval: number): void
-
Parameters
-
measurement: string
-
func: function
-
interval: number
Returns void
stopRecording
- stopRecording(measurement: string): void
Metrics holds all the accessible parts of influx-metrics API