The aodh.api.controllers.v2.base Module

class aodh.api.controllers.v2.base.AdvEnum(name, *args, **kwargs)[source]

Bases: wsme.types.wsproperty

Handle default and mandatory for wtypes.Enum.

exception aodh.api.controllers.v2.base.AlarmNotFound(alarm, auth_project)[source]

Bases: aodh.api.controllers.v2.base.ClientSideError

class aodh.api.controllers.v2.base.AlarmRule(**kw)[source]

Bases: aodh.api.controllers.v2.base.Base

Base class Alarm Rule extension and wsme.types.

static create_hook(alarm)[source]
static update_hook(alarm)[source]
static validate_alarm(alarm)[source]
class aodh.api.controllers.v2.base.Base(**kw)[source]

Bases: wsme.types.DynamicBase

as_dict(db_model)[source]
as_dict_from_keys(keys)[source]
classmethod from_db_model(m)[source]
exception aodh.api.controllers.v2.base.ClientSideError(error, status_code=400)[source]

Bases: wsme.exc.ClientSideError

exception aodh.api.controllers.v2.base.ProjectNotAuthorized(id, aspect='project')[source]

Bases: aodh.api.controllers.v2.base.ClientSideError

class aodh.api.controllers.v2.base.Query(**kw)[source]

Bases: aodh.api.controllers.v2.base.Base

Query filter.

as_dict()[source]
get_op()[source]
classmethod sample()[source]
set_op(value)[source]