tardis.plugins.elasticsearchmonitoring module

class tardis.plugins.elasticsearchmonitoring.ElasticsearchMonitoring[source]

Bases: Plugin

The ElasticsearchMonitoring implements an interface to monitor the state of the Drones using Elasticsearch.

async async_execute(document: AttributeDict) None[source]
execute(document: AttributeDict) None[source]

Pushes drone info to an ElasticSearch instance.

Parameters

document (AttributeDict) – Contains all meta-data of the Drone (created and updated timestamps, dns name, unique id, site_name, machine_type, etc.)

Returns

None

async notify(state: State, resource_attributes: AttributeDict) None[source]

Pushes drone info at every state change to an ElasticSearch instance.

Parameters
  • state (State) – New state of the Drone

  • resource_attributes (AttributeDict) – Contains all meta-data of the Drone (created and updated timestamps, dns name, unique id, site_name, machine_type, etc.)

Returns

None