RecentErrorTime Property

General info

Label

Recent Error Time

Description

Timestamp of the most recent error raised by this object.

Data type

DateTime

Type

Regular

Code

5171

Symbolic name

MODEL_PROP_RECENTERRORTIME

Lua access code

syslib.model.properties.RecentErrorTime

Available since

1.42

Attributes

Name Tooltip
PROP_VISIBLE The property is visible in DataStudio and can be read by the inmation APIs.
PROP_VOLATILE The property exists during runtime of the service only and is not saved to the image.

Examples

Read from or write to the RecentErrorTime property.

  • Lua

  • C#

-- Read from the RecentErrorTime
syslib.getvalue("<OBJECT FULL PATH>.TPMOEEDiagnostics.RecentErrorTime")

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

// Read from the RecentErrorTime
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.TPMOEEDiagnostics.RecentErrorTime"));
// Write to the RecentErrorTime
Result result = sli.WriteValue(sc, new WriteItem(DateTime.Now, "<OBJECT FULL PATH>.TPMOEEDiagnostics.RecentErrorTime"));