LastErrorTime Property
General info
Label |
Last Error Time |
Description |
The time of the last error, which occurred in this object. |
Data type |
String |
Type |
Regular |
Code |
6450 |
Symbolic name |
MODEL_PROP_LASTERRORTIME |
Lua access code |
syslib.model.properties.LastErrorTime |
Available since |
1.52 |
- Parent properties
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 LastErrorTime property.
-- Read from the LastErrorTime
syslib.getvalue("<OBJECT FULL PATH>.HMDiagnostics.LastErrorTime")
-- Write to the LastErrorTime
syslib.setvalue("<OBJECT FULL PATH>.HMDiagnostics.LastErrorTime", "new 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 LastErrorTime
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.HMDiagnostics.LastErrorTime"));
// Write to the LastErrorTime
Result result = sli.WriteValue(sc, new WriteItem("new value", "<OBJECT FULL PATH>.HMDiagnostics.LastErrorTime"));