ServiceStatusChange
Trigger | ServiceStatusChange |
---|---|
Action | Triggers when the state of e specified Windows service changes - when it is stopped, started, paused, resumed, installed or uninstalled. |
Parameters | ServiceName (string): The (short) name of the Windows Service whose status should be monitored. Example ServiceName "winmgmt" for "Windows Management Instrumentation" service (visible in the Windows Services control panel applet). |
Example | <?xml version="1.0" encoding="UTF-8"?> <TriggerTemplate Name="ServiceStatusChange" Category="Event" Description="When the state of the named Windows service changes" Type="ServiceStatusChange" ReadablePayload="On change of running state of the "%serviceName%" service"> <AgentParameters> <Parameter Name="ServiceName" Value="%serviceName%" /> </AgentParameters> <UserParameterJson><![CDATA[[{"Name":"ServiceName","Pattern":"%serviceName%","DataType":"string","ControlType":"freeText","ControlMetadata":null, "Placeholder":"short name of service (e.g. NomadBranch)","DefaultValue":null, "Validation":{"Regex":null,"MaxLength":"1024","AllowedValues":null,"NumValueRestrictions":null},"Value":null,"HintText":null,"Source":null}]]]> </UserParameterJson> </TriggerTemplate> |
Platforms |
|
Notes |