This describes the wi_sharedresourceusagedaily table and how each column of data arises from the wi_sharedresourceusage table.
The "ResourceName" and the "ClusterName" are first merged as "RESCLUSTER". Then the records are aggregated for the localized day for the grouping of "Clustername", "ResourceName", "RESCLUSTER" and "COREHOUR" and the value are summed, find the minimum, the maximum and the number of records aggregated counted.
This is the column description of each data column of WI_SHAREDRESOURCEUSAGEDAILY and how each column is filled with data.
Columns |
Description |
Key |
CLUSTER_CODE |
This comes from the CLUSTER_NAME field in the raw table. 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 sequence+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 |
RESOURCE_CODE |
This comes from the "ResourceName" field in the share_resource_usage table. Once we get the resource name, we then look it up in the wi_resourcecode 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_resourcecode 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 |
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 |
MIN_VALUE |
This is the minimum of all the values for this resource across the day. |
|
MAX_VALUE |
This is the maximum of all the values for this resource across the day. |
|
SAMPLING_COUNTER |
This is the number of sampled records being aggregated into this record. |
|
SUM_VALUE |
This is the sum of all the values for this resource across the day. |
|
INSERT_SEQ |
This is a unique sequence number generated by the system for each new record inserted. |
|