yardstick.dispatcher package

Submodules

yardstick.dispatcher.base module

class yardstick.dispatcher.base.Base(conf)[source]

Bases: object

flush_result_data()[source]

Flush result data into permanent storage media interface.

static get(config)[source]

Returns instance of a dispatcher for dispatcher type.

static get_cls(dispatcher_type)[source]

Return class of specified type.

record_result_data(data)[source]

Recording result data interface.

yardstick.dispatcher.file module

class yardstick.dispatcher.file.FileDispatcher(conf)[source]

Bases: yardstick.dispatcher.base.Base

Dispatcher class for recording data to a file.

flush_result_data()[source]
record_result_data(data)[source]

yardstick.dispatcher.http module

class yardstick.dispatcher.http.HttpDispatcher(conf)[source]

Bases: yardstick.dispatcher.base.Base

Dispatcher class for posting data into a http target.

flush_result_data()[source]
record_result_data(data)[source]

yardstick.dispatcher.influxdb module

class yardstick.dispatcher.influxdb.InfluxdbDispatcher(conf)[source]

Bases: yardstick.dispatcher.base.Base

Dispatcher class for posting data into an influxdb target.

flush_result_data()[source]
record_result_data(data)[source]

yardstick.dispatcher.influxdb_line_protocol module

yardstick.dispatcher.influxdb_line_protocol.make_lines(data)[source]

Extracts the points from the given dict and returns a Unicode string matching the line protocol introduced in InfluxDB 0.9.0.

line protocol format:
<measurement>[,<tag-key>=<tag-value>...] <field-key>=<field-value> [,<field2-key>=<field2-value>...] [unix-nano-timestamp]
Ref:
https://influxdb.com/docs/v0.9/write_protocols/write_syntax.html https://influxdb.com/docs/v0.9/write_protocols/line.html

Module contents