The apmec.mem.monitor_drivers.abstract_driver Module

The apmec.mem.monitor_drivers.abstract_driver Module

class apmec.mem.monitor_drivers.abstract_driver.MEAMonitorAbstractDriver

Bases: apmec.api.extensions.PluginInterface

get_description()

Return description of MEA Monitor plugin.

get_name()

Return a symbolic name for the MEA Monitor plugin.

get_type()

Return one of predefined type of the hosting mea drivers.

monitor_call(mea, kwargs)

Monitor.

Return boolean value True if MEA is healthy or return an event string like ‘failure’ or ‘calls-capacity-reached’ for specific MEA health condition.

Parameters:
  • mea
  • kwargs
Returns:

boolean

Returns:

True if MEA is healthy

monitor_get_config(plugin, context, mea)

Return dict of monitor configuration data.

Parameters:
  • plugin
  • context
  • mea
Returns:

dict

Returns:

dict of monitor configuration data

monitor_service_driver(plugin, context, mea, service_instance)
monitor_url(plugin, context, mea)

Return the url of mea to monitor.

Parameters:
  • plugin
  • context
  • mea
Returns:

string

Returns:

url of mea to monitor

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.