Add or updates the alert rule (matched using the rule's [!:IAlertRule.ID]) on the server.

Only alert rules created via CreateAlertRule()()()() or retrieved by this manager may be added to the server via this method.

If a new alert rule is being added, the given IAlertRule is mutated on return such that its [!:IAlertRule.ID] is set.

Namespace: StreamBase.LiveView.API.Alerts
Assembly: StreamBase.LiveView.API (in StreamBase.LiveView.API.dll) Version: 11.1.0.0 (11.1.0.8)

Syntax

         
 C#  Visual Basic  Visual C++ 
IAlertRule SetAlertRule(
	IAlertRule rule
)
Function SetAlertRule ( _
	rule As IAlertRule _
) As IAlertRule
IAlertRule^ SetAlertRule(
	IAlertRule^ rule
)

Parameters

rule
IAlertRule

Return Value

Exceptions

ExceptionCondition
StreamBase.LiveView.API..::..LiveViewExceptionIf the rule's AlertQueryConfig object had its QueryString explicitly set, which is currently unsupported.

See Also