Created: 2023-08-11 | Updated: 2024-08-11
MQ Broker
New (v0.3.3)
Table of contents
Node Type: mq_broker
Rendering:
Code Snippet:
# given
mcd = MultiCloudDiagrams()
# when
arn = 'mq.eventbroker.somedomain.com'
metadata = {
"Nodes": 4,
"Active Master": 1,
"Errors": 3,
"Storage": "4G",
"Client": 15
}
mcd.add_vertex(node_id=arn, node_name='broker', node_type='mq_broker', metadata=metadata)
drawio mq_broker vertex:
<mxCell id="vertex:mq_broker:mq.eventbroker.somedomain.com" parent="1" vertex="1">
<mxGeometry width="78" height="78" as="geometry"/>
</mxCell>
Advanced for Geeks:
Style:
style="sketch=0;outlineConnect=0;gradientColor=none;fillColor=#B0084D;strokeColor=none;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=left;html=1;fontSize=12;fontStyle=0;aspect=fixed;pointerEvents=1;shape=mxgraph.aws4.mq_broker;"
attribute | value |
---|---|
align | left |
aspect | fixed |
dashed | 0 |
fillColor | #B0084D |
fontSize | 12 |
fontStyle | 0 |
gradientColor | none |
html | 1 |
outlineConnect | 0 |
pointerEvents | 1 |
shape | mxgraph.aws4.mq_broker |
sketch | 0 |
strokeColor | none |
verticalAlign | top |
verticalLabelPosition | bottom |
Vertex size:
attribute | value |
---|---|
width | 78 |
height | 78 |
Full XML dump:
<mxfile host="multicloud-diagrams" agent="PIP package multicloud-diagrams. Generate resources in draw.io compatible format for Cloud infrastructure. Copyrights @ Roman Tsypuk 2023. MIT license." type="MultiCloud">
<diagram id="diagram_1" name="AWS components">
<mxGraphModel dx="1015" dy="661" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="1">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="vertex:mq_broker:mq.eventbroker.somedomain.com" value="<b>Name</b>: broker<BR><b>ID</b>: mq.eventbroker.somedomain.com<BR>-----------<BR><b>Nodes</b>: 4<BR><b>Active Master</b>: 1<BR><b>Errors</b>: 3<BR><b>Storage</b>: 4G<BR><b>Client</b>: 15" style="sketch=0;outlineConnect=0;gradientColor=none;fillColor=#B0084D;strokeColor=none;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=left;html=1;fontSize=12;fontStyle=0;aspect=fixed;pointerEvents=1;shape=mxgraph.aws4.mq_broker;" parent="1" vertex="1">
<mxGeometry width="78" height="78" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
drawio file:
Download generated mq_broker.drawio
: