Value (UserStatistics function): Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (→Examples) |
||
Line 40: | Line 40: | ||
The following statements validly assign and print statistic values: | The following statements validly assign and print statistic values: | ||
< | <p class="code">%cpu = %stat:value('cpu') | ||
printText Object swaps: {%stat:value('OBJSWAP')} | |||
</ | </p> |
Revision as of 17:22, 28 February 2011
Value of specified Login statistic
Value is a member of the UserStatistics class.
This method returns the value of a Model 204 user Login (also called “Final”) statistic.
The method cancels the request if it is applied to a statistic that is exclusively a Request statistic.
Syntax
%val = %ustat:Value(statistic)
Syntax terms
- %val
- A numeric variable to contain the value of the specified statistic contained in the method object.
- %ustat
- A UserStatistics object variable.
- statistic
- This case-independent string contains the name of a Model 204 user statistic. The names of final or partial statistics available to the Model 204 $STAT function are valid. The OBJSWAP statistic for Janus SOAP objects is also valid. All other names return an UnknownStatistic exception.
Usage Notes
- The statistics UpdtTime(MS) and LongupdTime(MS) can also be specified without the parentheses: for example, UpdtTimeMs and LongUpdtimeMs, respectively.
- The RequestValue function returns the value of a Model 204 request statistic.
Examples
The following statements validly assign and print statistic values:
%cpu = %stat:value('cpu') printText Object swaps: {%stat:value('OBJSWAP')}