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.AlertsAssembly: StreamBase.LiveView.API (in StreamBase.LiveView.API.dll) Version: 11.0.0.3 (11.0.0.3)
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
Exception | Condition |
---|---|
StreamBase.LiveView.API..::..LiveViewException | If the rule's AlertQueryConfig object had its QueryString explicitly set, which is currently unsupported. |