Gets the alert definitions for a specific statistic key.

Namespace: ININ.IceLib.Statistics.Alerts
Assembly: ININ.IceLib.Statistics (in ININ.IceLib.Statistics.dll) Version: 0.0.0.0 (22.3.0.218)

Syntax

C#
public ReadOnlyCollection<AlertDefinition> GetAlertDefinitions(
	StatisticKey statisticKey,
	bool subscribedOnly
)
Visual Basic
Public Function GetAlertDefinitions ( _
	statisticKey As StatisticKey, _
	subscribedOnly As Boolean _
) As ReadOnlyCollection(Of AlertDefinition)

Parameters

statisticKey
Type: ININ.IceLib.Statistics..::..StatisticKey
The statistic key.
subscribedOnly
Type: System..::..Boolean
if set to trueTruetruetrue (True in Visual Basic) only subscribed alerts will be returned.

Return Value

A list of alert definitions.

Exceptions

ExceptionCondition
System..::..InvalidOperationExceptionThe AlertCatalog is not watched.

Version Information

Supported for IC Server version 2015 R1 and beyond.
For 4.0, supported for IC Server version 4.0 GA and beyond.

See Also