Cmdlet
Send-ConsoleEvent
Sends a raw live event to any widget of a running dashboard.
Syntax
Send-ConsoleEvent [-Key <String>] [-Operation] <String> [-Session <LiveSession>] [-State <String>] [-Target] <String> [-Text <String>] [-Total <Double>] [-Value <Double>] [<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Sends a raw live event to any widget of a running dashboard.
The general form behind the Update-* cmdlets, for custom widgets and less common operations (for example the dashboard's title or status). Operations are defined by each widget.
Examples
EXAMPLE 1
Send-ConsoleEvent -Target 'Value' -Operation 'Value'Parameters
- -Key String
- The item key.
- -Operation String
- The operation (advance, state, set, add, write, title, status...).
- -Session LiveSession
- The live session to update. Defaults to $ConsoleSession or the running dashboard.
- -State String
- A state word.
- -Target String
- The widget name.
- -Text String
- Text.
- -Total Double
- A second numeric value (total, maximum).
- -Value Double
- A numeric value.
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.