Dependency

Dependency

class Dependency(id_unique, name, description, inherits_parent, execution_failure_criteria, notification_failure_criteria)

This class represents a dependency

Parameters
  • id_unique (int) – ID of the dependency

  • name (str) – Name of the dependency

  • description (str) – Description of the dependency

  • inherits_parent (bool) – Inherits the dependency from its parent?

  • execution_failure_criteria (FailureCriteria) – Defines which parent states prevent dependent resources from being checked

  • notification_failure_criteria (FailureCriteria) – Defines which parent states prevent notifications on dependent resources

FailureCriteria

class FailureCriteria

This class represents the failure criteria

CRITICAL = 'c'
DOWN = 'd'
NONE = 'n'
OK = 'o'
PENDING = 'p'
UNKNOWN = 'u'
WARNING = 'w'

DependencyType

class DependencyType

This class represents the types available for dependencies

HOST = 'HOST'
HOST_GROUP = 'HG'
META_SERVICE = 'META'
SERVICE = 'SERVICE'
SERVICE_GROUP = 'SG'

DependencyParam

class DependencyParam

This class represents the parameter available for dependencies

COMMENT = 'comment'
DESCRIPTION = 'description'
EXECUTION_FAILURE_CRITERIA = 'execution_failure_criteria'
INHERITS_PARENT = 'inherits_parent'
NAME = 'name'
NOTIFICATION_FAILURE_CRITERIA = 'notification_failure_criteria'