Skip to content
ConsoleMonster
Cmdlet

New-ConsoleDiagramLink

Module
ConsoleMonster
Inputs
None
Outputs
ConsoleMonster.Widgets.DiagramLink

Connects two diagram components.

Syntax

Description

From and To identify nodes by their label or explicit Id. The containing diagram creates undeclared endpoints. Labels are literal, Status uses the shared ConsoleMonster health states, and Both adds an arrow at each end.

Examples

Example 1

New-ConsoleDiagramLink 'File server' Backup -Label nightly -Status Fail -Style Dashed

A failing backup connection.

Parameters

-Both SwitchParameter optional
Draws arrows at both ends.
-From String requiredposition: 0
The source node id.
-Label String optional
The connection text.
-Status StatusKind optional
The connection health. Omit it to show no status marker.
Possible values: Pending, Running, Pass, Fail, Warn, Skip, Info, Unknown
-Style DiagramLinkStyle optional
Solid, dashed or dotted stroke.
Possible values: Solid, Dashed, Dotted
-To String requiredposition: 1
The destination node id.

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.