Table of Contents

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

sourceId string

Unique identifier representing the source of the subscription (e.g., a GUID).

onChange Action<ServiceAlarmLevelChange>

Callback invoked when an alarm level change is detected.

subscribeTimeout TimeSpan

Maximum 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

sourceId or onChange is 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

sourceId string

Unique identifier representing the source of the subscription (e.g., a GUID).

onChange Action<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

sourceId or onChange is null.

InvalidOperationException

The subscription could not be established within the timeout.