tardis.plugins.elasticsearchmonitoring module

class tardis.plugins.elasticsearchmonitoring.ElasticsearchMonitoring[source]

Bases: tardis.interfaces.plugin.Plugin

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

async async_execute(document: tardis.utilities.attributedict.AttributeDict) None[source]
execute(document: tardis.utilities.attributedict.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: tardis.interfaces.state.State, resource_attributes: tardis.utilities.attributedict.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