Click or drag to resize
Grid Solutions Framework

DeviceAlarmStateAdapterExternalDatabaseCommandParameters Property

Gets or sets the external database command parameters with value substitutions used for synchronization of alarm states.

Namespace: GrafanaAdapters
Assembly: GrafanaAdapters (in GrafanaAdapters.dll) Version: 2.4.207-beta
Syntax
[ConnectionStringParameterAttribute]
[DefaultValueAttribute("{MappedAlarmState},1,'PDC_DEVICE_{Device.Acronym}','','openPDC Device Status = {AlarmState} for \[{Device.Acronym}\]','\<a href="http://localhost:8280/DeviceStatus.cshtml?DeviceID={Device.ID}"\>\[{Device.Acronym}\] Device Status\</a\>'")]
public string ExternalDatabaseCommandParameters { get; set; }
View Source

Property Value

String
Remarks
Examples for composite state reporting:
C#
'openPDC Overall Device Status = {AlarmState}[?{AlarmState}!=Good[ -- for \[{Device.Acronym}\]]]'
C#
'Good = {GoodStateCount} / Alarmed = {AlarmStateCount} / Unavailable = {NotAvailableStateCount} / Bad Data = {BadDataStateCount} / Bad Time = {BadTimeStateCount} / Out of Service = {OutOfServiceStateCount}[?{AlarmState}!=Good[ -- \<a href=\"http://localhost:8280/DeviceStatus.cshtml?DeviceID={Device.ID}\"\>\[{Device.Acronym}\] Device Status\</a\>]]'
See Also