Saved Views
views holds a Project’s Saved Views: structural ones, picked by selectors and drawn at a level (deployment for a Deployment View), and dynamic ones, a scenario as Steps. Each View’s id is unique among the Project’s Views, and others name it as project:id.
Example
Section titled “Example”The Kitchen sink’s: a structural View that opens a System, one that selects everything upstream of a datastore, leaves out a Person and opens with the Impact Lens, and a Dynamic View with a call, a derived edge, an event and a reply:
views: structural: everything: title: Everything description: Every Element, with Shop and API open. level: c3 include: - element: shop with: descendants - customer - search - payment-gateway - payments-provider orders-db-outage: title: What an Orders DB outage affects description: The Services that depend on Orders DB, with the Impact Lens on. level: c2 include: - element: orders-db upstream: all exclude: - customer lens: impact: orders-db direction: upstream dynamic: place-order: title: Customer places an order description: A call, a derived edge, an event through the broker and the replies. steps: - from: customer to: web description: Checks out - from: web to: api description: POST /orders - from: api to: orders-db description: Stores the order - from: api to: mailer description: orders.placed - from: api to: web return: true description: Order placedSee Save a View and Dynamic Views.
Fields
Section titled “Fields”The views key of a Project file declares its Saved Views.
Generated from schemas/model.schema.json, which editors can use for completion and validation. <id> stands for a key you choose; [] for each item of a list.
| Field | Type | Required | Notes |
|---|---|---|---|
views |
object | ||
views.structural |
map of id → object | ||
views.structural.<id>.title |
string | yes | |
views.structural.<id>.description |
string | ||
views.structural.<id>.tags |
list of string | ||
views.structural.<id>.level |
"c1" or "c2" or "c3" or "deployment" |
yes | |
views.structural.<id>.expand |
list of string | Elements opened one level deeper than level. |
|
views.structural.<id>.collapse |
list of string | Elements closed, hiding everything inside them. | |
views.structural.<id>.direction |
"TB" or "BT" or "LR" or "RL" |
||
views.structural.<id>.environment |
string | For level: deployment: the Environment shown. |
|
views.structural.<id>.targets |
list of string | For level: deployment: only these Deployment Target subtrees. |
|
views.structural.<id>.include |
list of string or object | Selectors to show; every Element when absent. | |
views.structural.<id>.include[].element |
string | yes | An id in this Project, or project:id for one in another Project. |
views.structural.<id>.include[].with |
"children" or "descendants" |
||
views.structural.<id>.include[].upstream |
integer or "all" |
A number of hops, or all. |
|
views.structural.<id>.include[].downstream |
integer or "all" |
A number of hops, or all. |
|
views.structural.<id>.include[].team |
string | yes | |
views.structural.<id>.include[].tag |
string | yes | |
views.structural.<id>.include[].from |
string | yes | An id in this Project, or project:id for one in another Project. |
views.structural.<id>.include[].to |
string | yes | An id in this Project, or project:id for one in another Project. |
views.structural.<id>.include[].paths |
"shortest" or integer |
shortest (the default), or n for every path of at most n hops. |
|
views.structural.<id>.exclude |
list of string or object | ||
views.structural.<id>.exclude[].element |
string | yes | An id in this Project, or project:id for one in another Project. |
views.structural.<id>.exclude[].with |
"children" or "descendants" |
||
views.structural.<id>.exclude[].upstream |
integer or "all" |
A number of hops, or all. |
|
views.structural.<id>.exclude[].downstream |
integer or "all" |
A number of hops, or all. |
|
views.structural.<id>.exclude[].team |
string | yes | |
views.structural.<id>.exclude[].tag |
string | yes | |
views.structural.<id>.exclude[].from |
string | yes | An id in this Project, or project:id for one in another Project. |
views.structural.<id>.exclude[].to |
string | yes | An id in this Project, or project:id for one in another Project. |
views.structural.<id>.exclude[].paths |
"shortest" or integer |
shortest (the default), or n for every path of at most n hops. |
|
views.structural.<id>.lens |
object | ||
views.structural.<id>.lens.impact |
string | yes | An id in this Project, or project:id for one in another Project. |
views.structural.<id>.lens.direction |
"upstream" or "downstream" or "both" |
||
views.structural.<id>.lens.team |
string | yes | |
views.structural.<id>.lens.path |
object | yes | |
views.structural.<id>.lens.path.from |
string | yes | An id in this Project, or project:id for one in another Project. |
views.structural.<id>.lens.path.to |
string | yes | An id in this Project, or project:id for one in another Project. |
views.structural.<id>.lens.path.paths |
"shortest" or integer |
shortest (the default), or n for every path of at most n hops. |
|
views.dynamic |
map of id → object | ||
views.dynamic.<id>.title |
string | yes | |
views.dynamic.<id>.description |
string | ||
views.dynamic.<id>.tags |
list of string | ||
views.dynamic.<id>.participants |
list of string | Fixes the participants’ order; otherwise they are ordered by first appearance. | |
views.dynamic.<id>.steps |
list of object | yes | |
views.dynamic.<id>.steps[].from |
string | yes | An id in this Project, or project:id for one in another Project. |
views.dynamic.<id>.steps[].to |
string | yes | An id in this Project, or project:id for one in another Project. |
views.dynamic.<id>.steps[].relationship |
string | The id of the Relationship the Step takes, when several connect the pair. | |
views.dynamic.<id>.steps[].description |
string | ||
views.dynamic.<id>.steps[].note |
string | ||
views.dynamic.<id>.steps[].return |
boolean | The reply to a sync Relationship from to to from. |