Created: 2023-08-11 | Updated: 2024-09-21

MQ Broker

New (v0.3.3)

Table of contents

  1. Node Type: mq_broker
  2. Rendering:
  3. Code Snippet:
  4. drawio mq_broker vertex:
  5. Advanced for Geeks:
    1. Style:
    2. Vertex size:
    3. Full XML dump:
    4. drawio file:

Node Type: mq_broker

Rendering:

lambda

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;"
attributevalue
alignleft
aspectfixed
dashed0
fillColor#B0084D
fontSize12
fontStyle0
gradientColornone
html1
outlineConnect0
pointerEvents1
shapemxgraph.aws4.mq_broker
sketch0
strokeColornone
verticalAligntop
verticalLabelPositionbottom

Vertex size:

attributevalue
width78
height78

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="&lt;b&gt;Name&lt;/b&gt;: broker&lt;BR&gt;&lt;b&gt;ID&lt;/b&gt;: mq.eventbroker.somedomain.com&lt;BR&gt;-----------&lt;BR&gt;&lt;b&gt;Nodes&lt;/b&gt;: 4&lt;BR&gt;&lt;b&gt;Active Master&lt;/b&gt;: 1&lt;BR&gt;&lt;b&gt;Errors&lt;/b&gt;: 3&lt;BR&gt;&lt;b&gt;Storage&lt;/b&gt;: 4G&lt;BR&gt;&lt;b&gt;Client&lt;/b&gt;: 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:

Download