Platform Analytics 7 Dataflow

Hourly Shared Resource Usage datamart

Main ETL XML file

sharedresourcehourly.xml

Output CSV files

sharedresusagehourly.csv

Record sample

DATE; HOUR; WEEKDAY; COREHOUR; SHIFT; CLUSTERNAME; RESOURCENAME; USAGE; FREE; TOTALAVAIL; SAMPLINGCOUNTER

"2005-11-03"; 10; 5; 0.0; 2.0; "lsf61"; "res1"; 10.0; 10.0; 20.0; 4.0

"2005-11-03"; 11; 5; 0.0; 2.0; "lsf61"; "res2"; 10.0; 0.0; 10.0; 4.0

Column description

The Hourly Shared Resource Usage datamart gets its information from several tables, including wi_sharedresourceusage, wi_resourcecode, wi_clustercode, wi_resourceproperties, and wi_licensetotal. However, the wi_resourceproperties table has certain criteria limitations. The Hourly Shared Resource Usage datamart will only accept data from the following parameters when they are set as follows: resource_type = "Numeric," BUILDIN = "USERDEFINE," and DYNAMIC = "DYNAMIC."

The following table briefly describes each column and its source:
Column name
Source and description
DATE
This is the date portion of the localized time_stamp column in the wi_sharedresourceusage table, and the format is "YYYY-MM-DD".
HOUR
This is the hour portion of the localized time_stamp column in the wi_sharedresourceusage table.
WEEKDAY
This is the weekday number from the localized time_stamp column in the wi_sharedresourceusage table, where "1" is Sunday, "2" is Monday, etc.
COREHOUR
The source is the localized time_stamp in the wi_sharedresourceusage table. If the time_stamp is within the range of 9am to 5pm on Monday to Friday, this field returns 1, otherwise, it returns 0.
A value of 1 means that the data in this record is aggregated from the core_hour portion of the day (9am to 5pm, Monday to Friday).
SHIFT
This is based on the localized time_stamp in the wi_sharedresourceusage table. The shifts transformer maps the localized time_stamp based on shift mapping and returns the user-defined shift.
CLUSTERNAME
The source is the wi_clustercode table, as identified by cluster_code. The cluster_code source is the wi_sharedresourceusage table.
RESOURCENAME
The source is in the wi_resourceproperties table. The criteria is based on whether the following sets of table names and columns are matched (joined) to one another:

wi_resourcecode table and resource_name column = wi_resourceproperties table and resource_name column

wi_resourcecode table and resource_code column = wi_sharedresourceusage table and resource_code column
USAGE
This is a calculated value in the wi_sharedresourceusage table, where sum_value is divided by sampling_counter. The calculation is contingent upon the "INCREASING" column in the wi_resourceproperties table.

If "INCREASING" = "Inc" then the result is calculated as SUM_VALUE / (divided by) SAMPLING_COUNTER.

If "INCREASING" is set to something else, then the result is calculated as totalValue - (minus) SUM_VALUE / (divided by) SAMPLING_COUNTER, provided that the totalValue is greater than SUM_VALUE / SAMPLING_COUNTER. If totalValue is less than that, the result is null.
FREE
This is a calculated value in the wi_sharedresourceusage table, where sum_value is divided by sampling_counter. The calculation is contingent upon the "INCREASING" column in the wi_resourceproperties table.

If "INCREASING" = "Inc" then the result is calculated as SUM_VALUE / (divided by) SAMPLING_COUNTER, provided that the totalValue is greater than SUM_VALUE / SAMPLING_COUNTER. If totalValue is less than that, the result is null.

If "Increasing" != "Inc", then the result is calculated as SUM_VALUE divided by SAMPLING_COUNTER.
TOTALAVAIL
The source is the total_avail column in the wi_licensetotal table. A pre-checking sets this to null if it is less then zero or null.
SAMPLINGCOUNTER
The source is the sampling_counter column in the wi_sharedresourceusage table.