New-RASNotificationResource

NAME

New-RASNotificationResource

SYNOPSIS

Creates new resource notification.

SYNTAX

New-RASNotificationResource [-Typearrow-up-right] {CPUEvent | MemoryEvent | RDSHConnectedSessionEvent | ConnectedSessionEvent | RDSHDisconnectedSessionEvent | DisconnectSessionEvent | RDSHConnectedSessionEventPerc | RDSHConnectSessionEvent | RDSHDisconnectedSessionEventPerc | RDSHDisconnectSessionEvent | TunneledSess} [-AllServersarrow-up-right <bool>] [-Directionarrow-up-right {RisesAbove | LowersBelow}] [-EnableGracePeriodarrow-up-right <bool>] [-EnableIntervalarrow-up-right <SwitchParameter>] [-ExecuteScriptarrow-up-right <SwitchParameter>] [-GracePeriodarrow-up-right <uint>] [-Intervalarrow-up-right <uint>] [-Recipientsarrow-up-right <string[]>] [-ScriptIdarrow-up-right <uint>] [-ScriptObjectarrow-up-right <NotificationScriptarrow-up-right>] [-SendEmailarrow-up-right <bool>] [-SiteIdarrow-up-right <uint>] [-TargetIdsarrow-up-right <List`1>] [-TargetTypearrow-up-right {AllServers | RDSHostPools | RDSHGroups | VDIHostPools | VDIPools | AVDHostPools | RemotePCs | SecureGateways | Gateways | Brokers | PublishingAgents | EnrollmentServers | ForceAllAgents}] [-Thresholdarrow-up-right <uint>] [-WaitUntilRecoveredarrow-up-right <SwitchParameter>] [<CommonParametersarrow-up-right>]

DESCRIPTION

Creates a resource notification, such as high/low RAM/CPU usage etc.

PARAMETERS

-Type <RASNotificationResourceTypearrow-up-right> Resource notification type. Possible values: CPUEvent, MemoryEvent, RDSHConnectedSessionEvent, ConnectedSessionEvent, RDSHDisconnectedSessionEvent, DisconnectSessionEvent, RDSHConnectedSessionEventPerc, RDSHConnectSessionEvent, RDSHDisconnectedSessionEventPerc, RDSHDisconnectSessionEvent, TunneledSess

        Required?                    true
        Position?                    1
        Default value                0
        Accept pipeline input?       false
        Accept wildcard characters?  false

-Threshold <uint> Tolerance value which triggers notification.

-Direction <ThresholdDirectionarrow-up-right> 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 <NotificationScriptarrow-up-right> 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 <TargetTypearrow-up-right> 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

NotificationResourcearrow-up-right

EXAMPLES

---------- EXAMPLE 1 ---------- New-RASNotificationResource -Type ConnectedSessionEvent -Threshold 22 Creates new resouce notification which notifies if the number of session exceeds 22.

Last updated