|
DeviceAlarmStateAdapterExternalDatabaseCommandParameters Property
|
Gets or sets the external database command parameters with value substitutions used for synchronization of alarm states.
Namespace: GrafanaAdaptersAssembly: 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; }
<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 Property ExternalDatabaseCommandParameters As String
Get
Set
public:
[ConnectionStringParameterAttribute]
[DefaultValueAttribute(L"{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\>'")]
property String^ ExternalDatabaseCommandParameters {
String^ get ();
void set (String^ value);
}
[<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\>'")>]
member ExternalDatabaseCommandParameters : string with get, set
function get_ExternalDatabaseCommandParameters();
function set_ExternalDatabaseCommandParameters(value);
View SourceProperty Value
StringRemarks
Examples for composite state reporting:
'openPDC Overall Device Status = {AlarmState}[?{AlarmState}!=Good[ -- for \[{Device.Acronym}\]]]'
'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