Landscape Class
Collect annotation data about landscape integration for easy consumption.
For now this inspects the current database and computes data.
TODO: take set of [a/c] | [d] models and do incremental updates.
Methods
getLandscapeBadge
-
model -
intent -
hint
Given a model and an intent return an object with the properties of a badge. If the object shouldn't have a badge undefined is returned.
Parameters:
-
modelModelto render badge for.
-
intentString'security' || 'reboot'.
-
hintStringimage postfix to use ex _round.
Returns:
getLandscapeURL
-
model -
intent
Get the landscape url for a given service with respect to the models in the db we've been passed. This depends on the 'db' attribute of this object being set.
Parameters:
-
modelModelto get URL for.
-
intentString(optional) can be 'security' or 'reboot'.
Returns:
slash
()
String
Ensure a trailing slash on a string.
Returns:
update
()
chainable
Collect annotation information from units to services and from services to environemnt.
Properties
_allowAdHocAttrs
Boolean
protected
This tells Y.Base that it should create ad-hoc attributes for config
properties passed to Model's constructor. This makes it possible to
instantiate a model and set a bunch of attributes without having to
subclass Y.Model and declare all those attributes first.
Default: true
