Skip to content

editorGlobalsInfluxDbSubmitter

Class: InfluxDbSubmitter

Submits performance metrics to InfluxDB

Hierarchy

  • InfluxDbSubmitter

Index

Constructors

Properties

Methods

Constructors

constructor

+ new InfluxDbSubmitter(): InfluxDbSubmitter

Defined in src/renderContext/performance/InfluxDbSubmitter.ts:15

Returns: InfluxDbSubmitter

Properties

Private database

database: any = Config.get("performanceTesting.influxDbName")

Defined in src/renderContext/performance/InfluxDbSubmitter.ts:12


Private password

password: any = Config.get("performanceTesting.influxDbPassword")

Defined in src/renderContext/performance/InfluxDbSubmitter.ts:11


Private tags

tags: any = Config.get("performanceTesting.influxTags")

Defined in src/renderContext/performance/InfluxDbSubmitter.ts:14


Private Readonly timestamp

timestamp: Date

Defined in src/renderContext/performance/InfluxDbSubmitter.ts:15


Private url

url: string

Defined in src/renderContext/performance/InfluxDbSubmitter.ts:13


Private user

user: any = Config.get("performanceTesting.influxDbUser")

Defined in src/renderContext/performance/InfluxDbSubmitter.ts:10

Methods

Private _convertMetricsToLineFormat

_convertMetricsToLineFormat(metrics: any): string

Defined in src/renderContext/performance/InfluxDbSubmitter.ts:76

Convert s the metrics object into the InfluxDB line format (see here: https://docs.influxdata.com/influxdb/v0.13/write_protocols/line/)

Parameters:

Name Type
metrics any

Returns: string


Private _convertObjectToString

_convertObjectToString(object: any, replaceSpaceWith: any): string

Defined in src/renderContext/performance/InfluxDbSubmitter.ts:104

Converts an object to key=value,key2=value,… string

Parameters:

Name Type Default
object any -
replaceSpaceWith any null

Returns: string


submitMetrics

submitMetrics(metrics: any, customTags: object): Promise‹any›

Defined in src/renderContext/performance/InfluxDbSubmitter.ts:46

Parameters:

metrics: any

Default value customTags: object= {}

Name Type
renderHeight? number
renderWidth? number

Returns: Promise‹any›