KpiAlertSilenceDuration Property

General info

Label

KPI Alert Silence Duration

Description

The numerical override for the alert silence duration (overrides alert template setting). Only valid if the alert silence is True.

Data type

UInt32

Type

Regular

Code

947

Symbolic name

MODEL_PROP_KPIALERTSILENCEDURATION

Lua access code

syslib.model.properties.KpiAlertSilenceDuration

Available since

1.0

Parent properties

KpiNotificationSettings

Attributes

Name Tooltip
PROP_CONFIGURABLE The property is configurable and can be changed with DataStudio and the various inmation APIs.
PROP_VISIBLE The property is visible in DataStudio and can be read by the inmation APIs.
PROP_UNIT The property has an engineering unit.
PROP_NULLABLE This Property can have no value.

Examples

Read from or write to the KpiAlertSilenceDuration property.

  • Lua

  • C#

-- Read from the KpiAlertSilenceDuration
syslib.getvalue("<OBJECT FULL PATH>.KpiNotificationSettings.KpiAlertSilenceDuration")

-- Write to the KpiAlertSilenceDuration
syslib.setvalue("<OBJECT FULL PATH>.KpiNotificationSettings.KpiAlertSilenceDuration", VALUE)
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);

// Read from the KpiAlertSilenceDuration
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.KpiNotificationSettings.KpiAlertSilenceDuration"));
// Write to the KpiAlertSilenceDuration
Result result = sli.WriteValue(sc, new WriteItem(VALUE, "<OBJECT FULL PATH>.KpiNotificationSettings.KpiAlertSilenceDuration"));