The watcher.db.sqlalchemy.models Module

SQLAlchemy models for watcher service

class watcher.db.sqlalchemy.models.Action(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Represents an action.

class watcher.db.sqlalchemy.models.ActionPlan(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Represents an action plan.

class watcher.db.sqlalchemy.models.Audit(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Represents an audit.

class watcher.db.sqlalchemy.models.AuditTemplate(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Represents an audit template.

class watcher.db.sqlalchemy.models.EfficacyIndicator(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Represents an efficacy indicator.

class watcher.db.sqlalchemy.models.Goal(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Represents a goal.

class watcher.db.sqlalchemy.models.JSONEncodedDict(*args, **kwargs)[source]

Bases: watcher.db.sqlalchemy.models.JsonEncodedType

Represents dict serialized as json-encoded string in db.

type

alias of dict

class watcher.db.sqlalchemy.models.JSONEncodedList(*args, **kwargs)[source]

Bases: watcher.db.sqlalchemy.models.JsonEncodedType

Represents list serialized as json-encoded string in db.

type

alias of list

class watcher.db.sqlalchemy.models.JsonEncodedType(*args, **kwargs)[source]

Bases: sqlalchemy.sql.type_api.TypeDecorator

Abstract base type serialized as json-encoded string in db.

impl

alias of TEXT

process_bind_param(value, dialect)[source]
process_result_value(value, dialect)[source]
class watcher.db.sqlalchemy.models.ScoringEngine(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Represents a scoring engine.

class watcher.db.sqlalchemy.models.Service(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Represents a service entity

class watcher.db.sqlalchemy.models.Strategy(**kwargs)[source]

Bases: sqlalchemy.ext.declarative.api.Base

Represents a strategy.

class watcher.db.sqlalchemy.models.WatcherBase[source]

Bases: oslo_db.sqlalchemy.models.SoftDeleteMixin, oslo_db.sqlalchemy.models.TimestampMixin, oslo_db.sqlalchemy.models.ModelBase

as_dict()[source]
save(session=None)[source]