Method StartAlarmLevelMonitor
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Common
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Common.dll
StartAlarmLevelMonitor(string, Action<ServiceAlarmLevelChange>, TimeSpan)
Starts monitoring alarm changes. Every change will perform the onChange action. Important: do not use SLProtocol in the provided action.
void StartAlarmLevelMonitor(string sourceId, Action<ServiceAlarmLevelChange> onChange, TimeSpan subscribeTimeout)
Parameters
sourceIdstringUnique identifier representing the source of the subscription (e.g., a GUID).
onChangeAction<ServiceAlarmLevelChange>Callback invoked when an alarm level change is detected.
subscribeTimeoutTimeSpanMaximum duration allowed for the subscription setup to complete.
Remarks
Intended for use outside of Protocols (e.g., in automation scripts or external components).
If you're working within a Protocol, use the overloads from the
Skyline.DataMiner.Core.DataMinerSystem.Protocol.Subscription.Monitors namespace with SLProtocol
to ensure proper subscription cleanup.
Exceptions
- ArgumentNullException
sourceIdoronChangeis null.- InvalidOperationException
The subscription could not be established within the timeout.
StartAlarmLevelMonitor(string, Action<ServiceAlarmLevelChange>)
Starts monitoring alarm level changes for a specific service. Every change triggers the specified onChange action.
void StartAlarmLevelMonitor(string sourceId, Action<ServiceAlarmLevelChange> onChange)
Parameters
sourceIdstringUnique identifier representing the source of the subscription (e.g., a GUID).
onChangeAction<ServiceAlarmLevelChange>Callback invoked when an alarm level change is detected.
Remarks
Intended for use outside of Protocols (e.g., in automation scripts or external components).
If you're working within a Protocol, use the overloads from the
Skyline.DataMiner.Core.DataMinerSystem.Protocol.Subscription.Monitors namespace with SLProtocol
to ensure proper subscription cleanup.
Exceptions
- ArgumentNullException
sourceIdoronChangeis null.- InvalidOperationException
The subscription could not be established within the timeout.