New-RASNotificationResource
NAME
New-RASNotificationResource
SYNOPSIS
Creates new resource notification.
SYNTAX
New-RASNotificationResource [-Type] {CPUEvent | MemoryEvent | RDSHConnectedSessionEvent | ConnectedSessionEvent | RDSHDisconnectedSessionEvent | DisconnectSessionEvent | RDSHConnectedSessionEventPerc | RDSHConnectSessionEvent | RDSHDisconnectedSessionEventPerc | RDSHDisconnectSessionEvent | TunneledSess} [AllServers (bool)] [-Direction {RisesAbove | LowersBelow}] [EnableGracePeriod (bool)] [EnableInterval (SwitchParameter)] [ExecuteScript (SwitchParameter)] [GracePeriod (uint)] [Interval (uint)] [-Recipients (string[])] [ScriptId (uint)] [-ScriptObject (NotificationScript)] [SendEmail (bool)] [SiteId (uint)] [-TargetIds (List`1)] [-TargetType {AllServers | RDSHostPools | RDSHGroups | VDIHostPools | VDIPools | AVDHostPools | RemotePCs | SecureGateways | Gateways | Brokers | PublishingAgents | EnrollmentServers | ForceAllAgents}] [Threshold (uint)] [WaitUntilRecovered (SwitchParameter)] [(CommonParameters)]
DESCRIPTION
Creates a resource notification, such as high/low RAM/CPU usage etc.
PARAMETERS
Type
(RASNotificationResourceType) Resource notification type.
Possible values: CPUEvent, MemoryEvent, RDSHConnectedSessionEvent, ConnectedSessionEvent, RDSHDisconnectedSessionEvent, DisconnectSessionEvent, RDSHConnectedSessionEventPerc, RDSHConnectSessionEvent, RDSHDisconnectedSessionEventPerc, RDSHDisconnectSessionEvent, TunneledSess
Threshold (uint)
Tolerance value which triggers notification.
Direction
(ThresholdDirection) Threshold direction.
Possible values: RisesAbove, LowersBelow
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.
ScriptObject
(NotificationScript) Script Object.
ExecuteScript (SwitchParameter)
Interval (uint)
Invocation interval (minutes).
EnableInterval (SwitchParameter)
Enable/Disable notification intervals.
WaitUntilRecovered (SwitchParameter)
Wait until recovered.
AllServers (bool)
All servers in site.
TargetType (TargetType)
Target type.
Possible values: AllServers, RDSHostPools, RDSHGroups, VDIHostPools, VDIPools, AVDHostPools, RemotePCs, SecureGateways, Gateways, Brokers, PublishingAgents, EnrollmentServers, ForceAllAgents
TargetIds (List`1)
Target Ids.
(CommonParameters)
INPUTS
-none-
OUTPUTS
EXAMPLES
---------- EXAMPLE 1 ----------
New-RASNotificationResource -Type ConnectedSessionEvent -Threshold 22
Creates new resouce notification which notifies if the number of session exceeds 22.
RELATED LINKS
Last updated