Table MF_KeyedComputerInUse

Card of table MF_KeyedComputerInUse

Name

MF_KeyedComputerInUse

Dimensional Type

<None>

Comment

The data here is actually just a repackaged version of what's in MF_KeyedComputerEvent.

Unlike MF_KeyedComputerEvent, which records all logon, logoff, server up, and server down events (and maybe more, depending on what filter(s) are defined), this table records only 'session' events, in particular, logons/logoffs (other events are used only to infer when a session has ended, due to a crash, power outage, etc.).

The logon events, though, are regrained to ten-minute increments. If a computer is in use during one of those increments, a row is added to this table. Omits an entire session if it lasts more than a day, because the data is no good. Probably the computer is sleeping most of htat time. Obviously throwing out long sessions doesn't make sense if we're measuring usage on staff or faculty desktops, but in fact we're looking specifically at lab/shared machines here (or ones marked as such in WHD), so throwing out long sessions is completely warranted.

Just to make the point really clear: THIS VIEW DOES NOT PROVIDE GOOD MODELING OF NON-LAB/SHARED MACHINE USAGE. Among other things, it throws out long-running sessions, because if we kept those, we'd end up with very skewed stats for machines where people log in, then stay logged in, often for months at a time. This produces very long-running sessions and gives the impression of a heavily used machine (because someone is always logged in). This view is not intended for such machines, but rather for lab and other shared machines intended for short-term use (less than a day at a time).

To be used analytically, the data here must be joined to a coverage table that has all times available to it. The view VMF_KeyedComputersInUse does this, and for that reason is extremely slow. VMF_KeyedComputersInUse serves as fodder for multidimensional cubes, and is documented elsewhere (ViewsLabUsage package).

This table is joined to buildings, rooms, users, and general asset data, but not reliably. The process of linking a row here to an asset involves 1) tying the row to a computer inKSComputers, then 2) tying the MAC address (or, alternatively, part of the key) to an MD_IssueTrackingAsset, and from there to a MD_CarletonDepartment, MD_TicketTrackingUser, MD_Employee, MD_Building, and MD_Room.

Please note that as of June 2012, the left outer joins do not work right when we query K2 using 7.x ODBC drivers, and it is not possible (it appears) to limit rows by date, at least for our 6.x database.

For more information on the K2 schema, see:

http://www.sassafras.com/hrl/7.0/tables.html


Check constraint name of the table MF_KeyedComputerInUse

CKT_MF_KEYEDCOMPUTERINUSE


List of outgoing references of the table MF_KeyedComputerInUse

Name

Parent Table

Foreign Key Columns

Relationship_238

MD_Time (Shortcut)

MD_Time_TimeInteger

Relationship_243

MD_Date (Shortcut)

MD_Date_DateInteger

Relationship_244

MD_IssueTrackingAsset (Shortcut)

MD_ITAsset_SurrogateKey

Relationship_245

MD_KeyedComputer

MD_KeyedComp_SurrogateKey

Relationship_251

MD_IssueTrackingUser (Shortcut)

MD_ITUser_SurrogateKey

Relationship_253

MD_CarletonDepartment (Shortcut)

MD_CarlDept_SurrogateKey

Relationship_256

MD_Building (Shortcut)

MD_Building_SurrogateKey

Relationship_257

MD_Room (Shortcut)

MD_Room_SurrogateKey

Relationship_260

MD_Employee (Shortcut)

MD_CollPers_SurrogateKey


List of diagrams containing the table MF_KeyedComputerInUse

Name

LabUsageDiagram


List of columns of the table MF_KeyedComputerInUse

Name

Comment

Domain

Data Type

Length

MD_KeyedComp_SurrogateKey

 

<None>

numeric

 

MD_Date_DateInteger

Integer representation of the date (e.g., 20070101 for 1 Jan 2007). Defaults to 99991231, for situations where a date is required but none is available.

DW_DateInteger

int

 

MD_Time_TimeInteger

Integer representing the time of day in the format HHMMSS (e.g., 23:01:01 at one minute one second after eleven o'clock in the evening). Not typically used for reporting.

Unlike MD_Date_Dateinteger (in MD_Date), this integer is not really human-readable, because it's not set up for base-10. Rather, it's calculated using the formula: (hour << 16) Or (min << 8) Or (sec), where the Or's are logical, and the << operator is a binary left shift. In T-SQL, this is (hour * POWER(2, 16)) + (minute * POWER(2, 8)) + second.

<None>

int

 

MD_ITAsset_SurrogateKey

 

<None>

numeric

 

MD_ITUser_SurrogateKey

 

<None>

numeric

 

MD_CarlDept_SurrogateKey

 

<None>

numeric

 

MD_Building_SurrogateKey

 

<None>

numeric

 

MD_Room_SurrogateKey

 

<None>

numeric

 

MD_CollPers_SurrogateKey

 

<None>

numeric

 

MF_KCInUse_InUseCount

1 if a machine was in use during a particular ten-minute interval (the grain of this table is 10 minutes). 0 (zero) otherwise.

Note that the definition of "in use" is geared particularly for assessing lab and general shared computer usage, not research computer usage, or personal machines. See the explanation attached to the general documentation on the parent table, MF_KeyedComputerInUse.

<None>

bigint

 

MF_KCInUse_AuditKey

 

DW_AuditKey

bigint

 

MF_KCInUse_Timestamp

 

<None>

timestamp

 


List of indexes of the table MF_KeyedComputerInUse

Name

Unique

Cluster

Primary

Foreign Key

Alternate Key

Table

MF_MACHINEINUSE_PK

TRUE

FALSE

TRUE

FALSE

FALSE

MF_KeyedComputerInUse

RELATIONSHIP_250_FK

FALSE

FALSE

FALSE

TRUE

FALSE

MF_KeyedComputerInUse

RELATIONSHIP_254_FK

FALSE

FALSE

FALSE

TRUE

FALSE

MF_KeyedComputerInUse

RELATIONSHIP_255_FK

FALSE

FALSE

FALSE

TRUE

FALSE

MF_KeyedComputerInUse

RELATIONSHIP_256_FK

FALSE

FALSE

FALSE

TRUE

FALSE

MF_KeyedComputerInUse

RELATIONSHIP_262_FK

FALSE

FALSE

FALSE

TRUE

FALSE

MF_KeyedComputerInUse

RELATIONSHIP_264_FK

FALSE

FALSE

FALSE

TRUE

FALSE

MF_KeyedComputerInUse

RELATIONSHIP_267_FK

FALSE

FALSE

FALSE

TRUE

FALSE

MF_KeyedComputerInUse

RELATIONSHIP_268_FK

FALSE

FALSE

FALSE

TRUE

FALSE

MF_KeyedComputerInUse

RELATIONSHIP_271_FK

FALSE

FALSE

FALSE

TRUE

FALSE

MF_KeyedComputerInUse


List of keys of the table MF_KeyedComputerInUse

Name

Identifier_1