NAME
Get-JobSchedulerEvent
SYNOPSIS
Retrieves events from a JobScheduler instance.
SYNTAX
Get-JobSchedulerEvent [-EventClass <String>] [-EventId <String>] [-ExitCode <Int32>] [-MasterUrl <Uri>] [-SupervisorUrl <Uri>] [-SupervisorJobChain <String>] [-XPath
<String>] <CommonParameters>
DESCRIPTION
Events can be retrieved from a JobScheduler instance by specifying the event class
and optionally the event id.
PARAMETERS
EventClass
-EventClass <String>
Specifies a common name for a set of events that enabling event handlers to process multiple events of the
same class. For example, "daily_closing" could be an event class for jobs that should start once day-time
business processes have drawn to a close.
Species a unique identifier when used together with the -EventId parameter. Can, for example, be used to remove
events (remove all events of a particular class).
Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?
EventId
-EventId <String>
An identifier for an event. Allows event handlers to react to events having a particular ID.
Specifies a unique identifier when used together with the -EventClass parameter. An event id is required to be unique
for the same event class.
Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?
ExitCode
-ExitCode <Int32>
Required? false
Position? 3
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?
MasterUrl
-MasterUrl <Uri>
Specifies the Job Scheduler Master instance URL.
The URL consists of the protocol, host name and port, e.g. http://localhost:4454.
Default: If used with a job then the CLI will assign by default the JobScheduler Master that the job is running for
Required? false
Position? 4
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?
SupervisorUrl
-SupervisorUrl <Uri>
Specifies a Job Scheduler Supervisor instance URL.
Job Scheduler Master instances register with a JobScheduler Supervisor (if configured to do so)
in order to synchronize job configurations. The Supervisor instance receives events, executes the
event handler and starts jobs and job chains for registered JobScheduler Master instances.
The URL consists of the protocol, host name and port, e.g. http://localhost:4454.
Default: If used with a job then the CLI will assign by default the JobScheduler Supervisor that the
current JobScheduler Master is registered for.
Required? false
Position? 5
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?
SupervisorJobChain
-SupervisorJobChain <String>
Specifies the path of the job chain in the JobScheduler Supervisor instance that implements the event
processor.
Default: /sos/events/scheduler_event_service
Required? false
Position? 6
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?
XPath
-XPath <String>
All events corresponding to the XPath expression specified when this parameter is set. Complex expressions
are possible and all the attributes of an event can be considered. This parameter allows complex queries to
be made, that would not be possible with the -EventClass -EventId and -ExitCode parameters.
Required? false
Position? 7
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?
RELATED LINKS
about_jobscheduler
EXAMPLES
-------------------------- EXAMPLE 1 --------------------------
C:\PS>$event = Get-Event -EventClass daily_closing -EventId 12345678
Returns an event object from the event class and event id.
-------------------------- EXAMPLE 2 --------------------------
C:\PS>$events = Get-Event -EventClass daily_closing
Returns a array of event objects.