Monitor.Sample
hidden abstract persistent class Monitor.Sample extends %Library.Persistent, %CSP.Page
SQL Table Name: Monitor.Sample
Defines persistent monitor sample classProperty Inventory
Method Inventory
Parameters
parameter INDEX;
Table keys definition
Properties
property Application as %String [ Required ];
Application name for the sample
Property methods: ApplicationDisplayToLogical(), ApplicationGet(), ApplicationGetStored(), ApplicationIsValid(), ApplicationLogicalToDisplay(), ApplicationLogicalToOdbc(), ApplicationNormalize(), ApplicationSet()
property DateTime as %String;
Date and time of sample
Property methods: DateTimeDisplayToLogical(), DateTimeGet(), DateTimeGetStored(), DateTimeIsValid(), DateTimeLogicalToDisplay(), DateTimeLogicalToOdbc(), DateTimeNormalize(), DateTimeSet()
property GroupName as %String [ Required ];
Group name for the sample
Property methods: GroupNameDisplayToLogical(), GroupNameGet(), GroupNameGetStored(), GroupNameIsValid(), GroupNameLogicalToDisplay(), GroupNameLogicalToOdbc(), GroupNameNormalize(), GroupNameSet()
property InstanceKey as %String (MAXLEN = 500) [ Required ];
List of key values that identify a unique sample instance
Property methods: InstanceKeyDisplayToLogical(), InstanceKeyGet(), InstanceKeyGetStored(), InstanceKeyIsValid(), InstanceKeyLogicalToDisplay(), InstanceKeyLogicalToOdbc(), InstanceKeyNormalize(), InstanceKeySet()
property MetricsClass as %String (MAXLEN = 250);
Metrics Class for the sample
Property methods: MetricsClassDisplayToLogical(), MetricsClassGet(), MetricsClassGetStored(), MetricsClassIsValid(), MetricsClassLogicalToDisplay(), MetricsClassLogicalToOdbc(), MetricsClassNormalize(), MetricsClassSet()
Methods
method %OnNew(sample As Monitor.Sample, timestamp As %String) as %Status
Initialization method for sample data
method DisplayCSP() as %Status
method DisplayDetails() as %Status
Display details of sample data for this item
Next key value.
classmethod OnPage() as %Status
CSP page display
classmethod SampleDataItem(app As %String, group As %String, key As %List, ByRef id As %String) as %Status
Returns %ID for a sample data item
NOTE: for a definition with no indexes (in Sample.InstanceKey) the 'key' value
must be passed as $lb(" "). The %OnNew method above sets the space (" ") value in
the InstanceKey, and the SQL query here won't find it if 'key' is passed as NULL.
^SNMP in particular uses this convention to get sample data with no secondary index.
Queries
SQL Query:
SELECT InstanceKey FROM Sample WHERE (Application = :app AND GroupName = :group) HAVING DateTime = MAX(DateTime)
SELECT InstanceKey FROM Sample WHERE (Application = :app AND GroupName = :group) HAVING DateTime = MAX(DateTime)
Return the instance keys in their encoded format
query LatestSample(class As %String)
SQL Query:
SELECT %ID FROM Sample WHERE MetricsClass = :class HAVING DateTime = MAX(DateTime)
SELECT %ID FROM Sample WHERE MetricsClass = :class HAVING DateTime = MAX(DateTime)
Query to return all sample data id's for a particular application, group
Indexes
index (IdKey on Application,GroupName,InstanceKey) [IdKey, Type = key];
Idkey index for samples
Index methods: IdKeyCheck(), IdKeyDelete(), IdKeyExists(), IdKeyOpen(), IdKeySQLCheckUnique(), IdKeySQLExists(), IdKeySQLFindPKeyByConstraint(), IdKeySQLFindRowIDByConstraint()
Inherited Members
Inherited Methods
- %%CLASSNAMELogicalToStorage()
- %%CLASSNAMEStorageToLogical()
- %AddToSaveSet()
- %AddToSyncSet()
- %BMEBuilt()
- %BuildIndicesAsync()
- %BuildIndicesAsyncResponse()
- %CheckConstraints()
- %CheckConstraintsForExtent()
- %ClassIsLatestVersion()
- %ClassName()
- %ComposeOid()
- %ConstructClone()
- %Delete()
- %DeleteExtent()
- %DeleteId()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Exists()
- %ExistsId()
- %Extends()
- %GUID()
- %GUIDSet()
- %GetLock()
- %GetParameter()
- %GetSwizzleObject()
- %Id()
- %InitExtentData()
- %InsertBatch()
- %IsA()
- %IsModified()
- %IsNull()
- %KillExtent()
- %KillExtentData()
- %LoadFromMemory()
- %LockExtent()
- %LockId()
- %New()
- %NormalizeObject()
- %ObjectIsNull()
- %ObjectModified()
- %Oid()
- %OnBeforeAddToSync()
- %OnDeleteFinally()
- %OnDetermineClass()
- %OnOpenFinally()
- %OnSaveFinally()
- %Open()
- %OpenId()
- %OriginalNamespace()
- %PackageName()
- %PhysicalAddress()
- %PurgeIndices()
- %Reload()
- %RemoveFromSaveSet()
- %ResolveConcurrencyConflict()
- %RollBack()
- %Save()
- %SaveDirect()
- %SaveIndices()
- %SerializeObject()
- %SetModified()
- %SortBegin()
- %SortEnd()
- %SyncObjectIn()
- %SyncTransport()
- %UnlockExtent()
- %UnlockId()
- %ValidateIndices()
- %ValidateObject()
- %ValidateTable()
- ConvertParameter()
- Decrypt()
- Encrypt()
- EscapeHTML()
- EscapeURL()
- HyperEventCall()
- HyperEventHead()
- Include()
- InsertHiddenField()
- InsertHiddenFields()
- IsPrivate()
- Link()
- OnHTTPHeader()
- OnPageError()
- OnPostHTTP()
- OnPostHyperEvent()
- OnPreHTTP()
- OnPreHyperEvent()
- Page()
- QuoteJS()
- RewriteURL()
- ShowError()
- StartTimer()
- StopTimer()
- ThrowError()
- UnescapeHTML()
- UnescapeURL()
Storage
Storage Model: Storage (Monitor.Sample)
^IRIS.Temp.Monitor.SampleD(ID) |
= | %%CLASSNAME
DateTime
MetricsClass
|
Subclasses
- %Monitor.System.Sample.AuditCount
- %Monitor.System.Sample.AuditEvents
- %Monitor.System.Sample.CSPGateway
- %Monitor.System.Sample.Clients
- %Monitor.System.Sample.Diskspace
- %Monitor.System.Sample.Freespace
- %Monitor.System.Sample.Globals
- %Monitor.System.Sample.HistoryMemory
- %Monitor.System.Sample.HistoryPerf
- %Monitor.System.Sample.HistorySys
- %Monitor.System.Sample.HistoryUser
- %Monitor.System.Sample.Journals
- %Monitor.System.Sample.License
- %Monitor.System.Sample.LockTable
- %Monitor.System.Sample.Processes
- %Monitor.System.Sample.Routines
- %Monitor.System.Sample.Servers