Obtaining performance information
This section will show different ways of querying the performance indicators and obtaining data in raw or aggregated format. Performance information can be obtained in two ways:
-
Raw (the current value): get( [Object].Performance.[Indicator] )
return syslib.getvalue('/System/INMWS008/localhost.Performance.Lag') -
get( [Object].Performance.[Indicator].[Period].[Aggregation type] )
There are three time periods:
-
minute
-
hour
-
day
Example
syslib.getvalue('/System/INMWS008/localhost.Performance.Lag.minute.min') syslib.getvalue('/System/INMWS008/localhost.Performance.IoItemWrites.hour.avg') syslib.getvalue('/System/INMWS008/localhost.Performance.DataObjectUpdates.day.num') -
All information about the performance counters for each class can be found on their respective dev page. As a starting point, see Objects with Performance Counters