This is the column description of each data column of WI_PENDTIME_BYGROUPSDAILY and how each column is filled with data.
Columns |
Description |
Key |
CLUSTER_CODE |
This comes from the "ClusterName" field in the data file. Once we get the cluster_name, we then look it up in the wi_clustercode table to see if we have already has a record of it in there. If we do, then we'll get the code back, otherwise, we will insert it into the wi_clustercode table and generate the code. The code itself is a positive integer and each new code is equal to the maximum of the existing code+1. |
Primary key |
TIME_STAMP |
This is in GMT and is always end in the day. The record is aggregated in a localized day. After the aggregation, the time_stamp is then transformed back at GMT and stored in this field. Thus, this time_stamp always in the GMT form of the localized day in midnight. |
Primary key |
GROUP_TYPE |
This indicates what kind of grouping this record belongs to. The different group type are: "By Host Type", "By Reason" and "By Cluster" |
Primary key |
GROUP_CODE |
This could comes from different source and it is depends on the group_type. If the group_type is "By Host Type", then it comes from a subfield of the "PendReason" field from the data file. If it is "By Cluster", then it comes from the "ClusterName" field in the data file. If it is "By Reason", then it comes from the subfield of "PendReason". Once we get the fields, we then look it up in the wi_dimensioncode table to see if we have already has a record of it in there by matching the dimension_name. If we do, then we'll get the code back, otherwise, we will insert it into the wi_dimensioncode table and generate the code. The code itself is a positive integer and each new code is equal to the maximum of the existing code+1. |
Primary key |
REASON_TYPE_CODE |
This comes from the "PendReasonType" field from the data file or it may come from each pending reason of the PendReason field. Once we get the fields, we then look it up in the wi_dimensioncode table to see if we have already has a record of it in there by matching the dimension_name. If we do, then we'll get the code back, otherwise, we will insert it into the wi_dimensioncode table and generate the code. The code itself is a positive integer and each new code is equal to the maximum of the existing code+1. |
Primary key |
REASON_CODE |
This comes from the "PendReason" field from the data file or it may come from each pending reason of the PendReason field. Once we get the fields, we then look it up in the wi_dimensioncode table to see if we have already has a record of it in there by matching the dimension_name. If we do, then we'll get the code back, otherwise, we will insert it into the wi_dimensioncode table and generate the code. The code itself is a positive integer and each new code is equal to the maximum of the existing code+1. |
Primary key |
PEND_MINUTES |
This field is calculated from every subrecord in the "PendReason" field in the data file based on the JOBDISTR and INTERVAL of each record. By using the HostDuration transformer, we calculate the specific pending time for each pending reason. The calculated time is then transformed into minutes and put into this field. |
|
CORE_HOUR |
The core hour is resulted from a mapping of the original time_stamp in local time. If the time_stamp is within the range from Monday to Friday, 9am to 5pm, then the core_hour will be 1, otherwise it will be 0. |
Primary key |
INSERT_SEQ |
This is a system generated sequence number. For each new record inserted, an unique sequence number is being assigned to this column. |
|