PercentLoad Property

General info

Label

Load

Description

Load percentage in respect to the processing time hint, which was received by the object recently.

Data type

Int32

Type

Regular

Code

4155

Symbolic name

MODEL_PROP_PERCENTLOAD

Lua access code

syslib.model.properties.PercentLoad

Available since

1.40

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.
PROP_UNIT The property has an engineering unit.

Examples

Read from or write to the PercentLoad property.

  • Lua

  • C#

-- Read from the PercentLoad
syslib.getvalue("<OBJECT FULL PATH>.CloudSinkDiagnostics.PercentLoad")

-- Write to the PercentLoad
syslib.setvalue("<OBJECT FULL PATH>.CloudSinkDiagnostics.PercentLoad", 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 PercentLoad
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.CloudSinkDiagnostics.PercentLoad"));
// Write to the PercentLoad
Result result = sli.WriteValue(sc, new WriteItem(VALUE, "<OBJECT FULL PATH>.CloudSinkDiagnostics.PercentLoad"));