Replies: 2 comments 1 reply
-
Element/relationship properties are shown via the tooltips, which can be toggled on/off via the toolbar button -> https://structurizr.com/help/diagrams |
Beta Was this translation helpful? Give feedback.
-
Hi! I have a similar question and want to discuss a possible solution. I am looking for a way in the DSL to set the "Technology" label on a relation differently depending on the view. Depending on the target group, quite different "technologies" are of interest: application protocol, encryption, authentication, possibly even concrete DNS names. My idea was to use properties for the different technologies at each relation. Unfortunately, the properties cannot simply be displayed or selected. The tooltips are nice for interactive use, but are not helpful in static documentation. However, I suspect that it should be possible to do this with a few lines of Groovy script in the view. Can anyone give me a hint as to how something like this might look? Regards, Mathias |
Beta Was this translation helpful? Give feedback.
-
Question
I've been playing with Structurizr and did not see a way to surface metadata about the objects in the views. e.g. imagine wanting to generate a deployment model from a cloudformation stack or similar - you'd want to include information like subnets, VPC ids, IP addresses, etc. to differentiate between nodes and maybe even pull tag information. The properties bucket looks like the way to add arbitrary data to the model, but I don't see any way to render any of that data on the diagrams. That may be due to the properties being used as structurizr internal config directives in the examples I've seen.
Is this something on the roadmap?
draw.io supports adding metadata and displaying it on c4 diagrams: https://www.drawio.com/blog/c4-modelling
I'm also thinking it would be powerful to be able to use the metadata in c4 diagrams like you would with archimate Label Expressions https://declanbright.com/archimate-archi-tips-and-tricks.php#label-expressions. Currently, it looks like variables are limited to constants?
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions