watcher.objects.goal
Module¶watcher.objects.goal.
Goal
(context=None, **kwargs)[source]¶Bases: watcher.objects.base.WatcherPersistentObject
, watcher.objects.base.WatcherObject
, watcher.objects.base.WatcherObjectDictCompat
get
(context, *args, **kwargs)[source]¶Find a goal based on its id or uuid
Parameters: |
|
---|---|
Returns: | a |
get_by_id
(context, *args, **kwargs)[source]¶Find a goal based on its integer id
Parameters: |
|
---|---|
Returns: | a |
get_by_name
(context, *args, **kwargs)[source]¶Find a goal based on name
Parameters: |
|
---|---|
Returns: | a |
get_by_uuid
(context, *args, **kwargs)[source]¶Find a goal based on uuid
Parameters: |
|
---|---|
Returns: | a |
list
(context, *args, **kwargs)[source]¶Return a list of Goal
objects.
Parameters: |
|
---|---|
Returns: | a list of |
refresh
(*args, **kwargs)[source]¶Loads updates for this Goal
.
Loads a goal with the same uuid from the database and checks for updated attributes. Updates are applied from the loaded goal column by column, if there are any updates.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.