Class Reference
InterSystems: The power behind what matters   
Documentation  Search
 

class SYS.Stats.Resource extends SYS.WSMon.wsResource

This class represents detailed system metrics captured for 'seizes' of system resources. Each instance of the class represents a different resource which controls access to a different part of the system code. Examples are 'Pid' for the internal process table, 'Lock' for locking structures, 'Stat' for statistics, etc.

The current values for each class instance may be fetched using the Query 'Sample', and then the current value of each property can be accessed.

For example:

	s sz="Name,Seize,Nseize,Aseize,Bseize,BusySet" ; list of properties
	s rset=##class(%ResultSet).%New("SYS.Stats.Resource:Sample")
	d rset.Execute()
	s len=$l(sz,",")
	; list all resources and related seize counts
	while rset.Next() {
		f i=1:1:len w rset.Data($p(sz,",",i)) w:i

Metrics for Cache system resource contention

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
6 10 3


Summary

Properties
Aseize Bseize BusySets Name Nseize
Seize

Methods
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OriginalNamespace %PackageName
%RemoveFromSaveSet %SerializeObject %SetModified %ValidateObject
DisplayClose DisplayExecute DisplayFetch DisplaySortClose
DisplaySortExecute DisplaySortFetch Sample SampleClose
SampleExecute SampleFetch XMLDTD XMLExport
XMLExportToStream XMLExportToString XMLNew XMLSchema
XMLSchemaNamespace XMLSchemaType


Properties

• property Aseize as %Integer;
Number of Aseizes
• property Bseize as %Integer;
Number of Bseizes
• property BusySets as %Integer;
Number of BusySet
• property Name as %String;
The name of the resource.
• property Nseize as %Integer;
Number of Nseizes
• property Seize as %Integer;
Number of Seizes

Methods

• classmethod DisplayClose(ByRef qHandle As %Binary) as %Status
• classmethod DisplayExecute(ByRef qHandle As %Binary) as %Status
• classmethod DisplayFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) as %Status
• classmethod DisplaySortClose(ByRef qHandle As %Binary) as %Status
• classmethod DisplaySortExecute(ByRef qHandle As %Binary) as %Status
• classmethod DisplaySortFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) as %Status
• classmethod Sample(Index As %Integer) as SYS.Stats.Resource
Instantiate the class for a specific resource and fill in current values for all properties. 'Index' is an integer from 1 to 'n' used to reference a specific resource. An index greater than 'n' returns a blank resource Name. To find a specific resource Name, you would loop through the Resource list starting at 1 until you find the Name (or reach a blank Name).

Allows for XML output of a single Resource instance.
• classmethod SampleClose(ByRef qHandle As %Binary) as %Status
• classmethod SampleExecute(ByRef qHandle As %Binary) as %Status
• classmethod SampleFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) as %Status

Queries

• query Display()
Selects Name As %String, Seize As %String, Nseize As %String, Aseize As %String, Bseize As %String, BusySet As %String
Sample counters for all Resource / SeizeTypes. Same as "Sample" query except numbers are formatted with separator characters.
• query DisplaySort()
Selects Name As %String, Seize As %String, SeizeSort As %Integer, Nseize As %String, NseizeSort As %Integer, Aseize As %String, AseizeSort As %Integer, Bseize As %String, BseizeSort As %Integer, BusySet As %String, BusySetSort As %Integer
Sample counters for all Resource / SeizeTypes. Same as "Display" query except we've added "sort" columns, whih are the same number without formatting. The UI uses these extra columns to sort the display, as integers with "," separators get sorted as strings.
• query Sample()
Selects Name As %String, Seize As %Integer, Nseize As %Integer, Aseize As %Integer, Bseize As %Integer, BusySet As %Integer
Sample counters for all Resource / SeizeTypes


Copyright © 1997-2018, InterSystems Corporation