Skip to content
ConsoleMonster
Cmdlet

New-ConsoleDiagramNode

Module
ConsoleMonster
Inputs
None
Outputs
ConsoleMonster.Widgets.DiagramNode

Creates a diagram component.

Syntax

New-ConsoleDiagramNode
[-Id <String>]
[-Kind <DiagramNodeKind>]
[-Label] <String>
[-Status <StatusKind>]
[-Subtitle <String>]
[-To <String[]>]
[-Value <String>]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Label is the connection identity unless Id is set. Subtitle is the second line and Value is the third. To adds unlabelled outgoing connections; missing destination nodes are created by the diagram.

Examples

Example 1

New-ConsoleDiagramNode Router -Kind Gateway -Subtitle '192.168.1.1' -Value '1 ms' -Status Pass -To Internet

A monitored gateway.

Parameters

-Id String optional
An explicit connection and live-update key.
-Kind DiagramNodeKind optional
The component kind and icon.
Possible values: Service, Server, Workstation, Gateway, Cloud, Storage, Database, Queue, User, Person, App, Process, Device, External
-Label String requiredposition: 0
The component's displayed name and default id.
-Status StatusKind optional
The component health. Omit it to show no status marker.
Possible values: Pending, Running, Pass, Fail, Warn, Skip, Info, Unknown
-Subtitle String optional
The second line.
-To String[] optional
Destination node ids for outgoing connections.
-Value String optional
The independent third line.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.