Add or updates the alert rule (matched using the rule's 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 ID is set.

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

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