Cmdlet
New-ConsoleDiagramLink
Connects two diagram components.
Syntax
New-ConsoleDiagramLink
[-Both]
[-From] <String>
[-Label <String>]
[-Status <StatusKind>]
[-Style <Solid| Dashed| Dotted>]
[-To] <String>
[<CommonParameters>]#Parameter set:
All Parameter SetsDescription
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 DashedA failing backup connection.
Parameters
- -Both SwitchParameter
- Draws arrows at both ends.
- -From String
- The source node id.
- -Label String
- The connection text.
- -Status StatusKind
- The connection health. Omit it to show no status marker.
- Possible values:
Pending,Running,Pass,Fail,Warn,Skip,Info,Unknown - -Style DiagramLinkStyle
- Solid, dashed or dotted stroke.
- Possible values:
Solid,Dashed,Dotted - -To String
- 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.