LoginToString (UserStatistics function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 6: Line 6:
LoginToString is a member of the [[UserStatistics class]].
LoginToString is a member of the [[UserStatistics class]].
</p>
</p>
 
This function returns the values of the [[UserStatistics class#login|Login]] (also called Final) statistics in the method UserStatistics object.
This function returns the values of the [[UserStatistics class#login|Login]] (also called Final) statistics in the method UserStatistics object.
The method prints all Login statistics with non-zero values (by default),
The method prints all Login statistics with non-zero values (by default),
Line 25: Line 25:
Zeros is an optional argument that defaults to <tt>False</tt>, which
Zeros is an optional argument that defaults to <tt>False</tt>, which
results in the inclusion of only statistics with non-zero values.
results in the inclusion of only statistics with non-zero values.
 
</dl>
</dl>
===Usage Notes===
===Usage Notes===
Line 36: Line 36:
</ul>
</ul>
===Examples===
===Examples===
 
The following example of non-zero Login statistics is produced by a
The following example of non-zero Login statistics is produced by a
<br>
<br>
<tt>Print %ustat:loginToString</tt> statement.
<tt>Print %ustat:loginToString</tt> statement.
The output line wrapping is altered for display purposes.
The output line wrapping is altered for display purposes.
<pre>
<p class="code"><nowiki>time='20080902160613043' userNumber=20 loginTime='2008090-
    time='20080902160613043' userNumber=20 loginTime='2008090-
2094309010' cnct=1 sqrd=29 sqwr=4 sgmto=27 cpu=890 req=1 -
    2094309010' cnct=1 sqrd=29 sqwr=4 sgmto=27 cpu=890 req=1 -
move=97 slic=71 audit=32 dkar=253 dkpr=124751 pcpu=996 ob-
    move=97 slic=71 audit=32 dkar=253 dkpr=124751 pcpu=996 ob-
jswap=250247
    jswap=250247
</nowiki></p>
</pre>

Revision as of 16:56, 28 February 2011

Longstring containing UserStatistics object's Login stat

LoginToString is a member of the UserStatistics class.

This function returns the values of the Login (also called Final) statistics in the method UserStatistics object. The method prints all Login statistics with non-zero values (by default), or it prints all Login statistics (as an option).

Syntax

  %ls = %ustat:LoginToString([Zeros=bool])

Syntax terms

%ls
A longstring variable to contain the listing of the values of the Login statistics.
%ustat
A UserStatistics object variable.
Zeros= bool
This name required argument (Zeros) is a boolean value that indicates whether statistics with a zero value should be included in the returned data. Zeros is an optional argument that defaults to False, which results in the inclusion of only statistics with non-zero values.

Usage Notes

  • The RequestToString function returns the values of the Request statistics in the UserStatistics object. The ToString function returns the values of all the statistics in the object.

Examples

The following example of non-zero Login statistics is produced by a
Print %ustat:loginToString statement. The output line wrapping is altered for display purposes.

time='20080902160613043' userNumber=20 loginTime='2008090- 2094309010' cnct=1 sqrd=29 sqwr=4 sgmto=27 cpu=890 req=1 - move=97 slic=71 audit=32 dkar=253 dkpr=124751 pcpu=996 ob- jswap=250247