New-RASNotificationResource
Last updated
Last updated
New-RASNotificationResource
Creates new resource notification.
New-RASNotificationResource [-] {CPUEvent | MemoryEvent | RDSHConnectedSessionEvent | ConnectedSessionEvent | RDSHDisconnectedSessionEvent | DisconnectSessionEvent | RDSHConnectedSessionEventPerc | RDSHConnectSessionEvent | RDSHDisconnectedSessionEventPerc | RDSHDisconnectSessionEvent | TunneledSess} [- <bool>] [- {RisesAbove | LowersBelow}] [- <bool>] [- <SwitchParameter>] [- <SwitchParameter>] [- <uint>] [- <uint>] [- <string[]>] [- <uint>] [- <>] [- <bool>] [- <uint>] [- <List`1>] [- {AllServers | RDSHostPools | RDSHGroups | VDIHostPools | VDIPools | AVDHostPools | RemotePCs | SecureGateways | Gateways | Brokers | PublishingAgents | EnrollmentServers | ForceAllAgents}] [- <uint>] [- <SwitchParameter>] [<>]
Creates a resource notification, such as high/low RAM/CPU usage etc.
-Type <> Resource notification type. Possible values: CPUEvent, MemoryEvent, RDSHConnectedSessionEvent, ConnectedSessionEvent, RDSHDisconnectedSessionEvent, DisconnectSessionEvent, RDSHConnectedSessionEventPerc, RDSHConnectSessionEvent, RDSHDisconnectedSessionEventPerc, RDSHDisconnectSessionEvent, TunneledSess
-Threshold <uint> Tolerance value which triggers notification.
-SiteId <uint> Site ID where notification event is setup. Current site ID is used if siteId is omitted.
-GracePeriod <uint> Grace period after the notification was done (minutes).
-EnableGracePeriod <bool> Enable/Disable grace period.
-Recipients <string[]> Recipients to notify of the event.
-SendEmail <bool> Enable/Disable email notification.
-ScriptId <uint> Script to execute which has this ID.
-ExecuteScript <SwitchParameter>
-Interval <uint> Invocation interval (minutes).
-EnableInterval <SwitchParameter> Enable/Disable notification intervals.
-WaitUntilRecovered <SwitchParameter> Wait until recovered.
-AllServers <bool> All servers in site.
-TargetIds <List`1> Target Ids.
<CommonParameters>
-none-
---------- EXAMPLE 1 ---------- New-RASNotificationResource -Type ConnectedSessionEvent -Threshold 22 Creates new resouce notification which notifies if the number of session exceeds 22.
-Direction <> Threshold direction. Possible values: RisesAbove, LowersBelow
-ScriptObject <> Script Object.
-TargetType <> Target type. Possible values: AllServers, RDSHostPools, RDSHGroups, VDIHostPools, VDIPools, AVDHostPools, RemotePCs, SecureGateways, Gateways, Brokers, PublishingAgents, EnrollmentServers, ForceAllAgents