twindb_backup.exporter package

Submodules

twindb_backup.exporter.base_exporter module

Module defines base exporter class.

class twindb_backup.exporter.base_exporter.BaseExporter[source]

Bases: object

Base exporter class

export(category, measure_type, data)[source]

Send data to server

class twindb_backup.exporter.base_exporter.ExportCategory[source]

Bases: object

Category of export data: files or mysql

files = 0
mysql = 1
class twindb_backup.exporter.base_exporter.ExportMeasureType[source]

Bases: object

Type of measure time: backup or restore

backup = 0
restore = 1

twindb_backup.exporter.datadog_exporter module

Module defines DataDog exporter class.

class twindb_backup.exporter.datadog_exporter.DataDogExporter(app_key, api_key)[source]

Bases: twindb_backup.exporter.base_exporter.BaseExporter

DataDog exporter class

export(category, measure_type, data)[source]

Export data to DataDog :param category: Data meant :param measure_type: Type of measure :param data: Data to posting :raise: DataDogExporterError if data is invalid

twindb_backup.exporter.exceptions module

Module for exporters exceptions

exception twindb_backup.exporter.exceptions.BaseExporterError[source]

Bases: exceptions.Exception

General exporters error

exception twindb_backup.exporter.exceptions.DataDogExporterError[source]

Bases: twindb_backup.exporter.exceptions.BaseExporterError

DataDog exporters error

Module contents