Platform Analytics 7 Dataflow

Daily Shared Resource Usage datamart

Main ETL XML file

sharedresourcedaily.xml

Output CSV files

sharedresusagedaily.csv

Record sample

DATE,WEEKDAY,COREHOUR,CLUSTERNAME,RESOURCENAME,USAGE,FREE,TOTALAVAIL,SAMPLINGCOUNTER

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

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

Column description

The Daily Shared Resource Usage datamart gets its information from several tables, including wi_sharedresourceusagedaily, 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_sharedresourceusagedaily table, and the format is "YYYY-MM-DD".

WEEKDAY

This is the weekday number from the localized time_stamp column in the wi_sharedresourceusagedaily table, where "1" is Sunday, "2" is Monday, etc.

COREHOUR

The source is the core_hour column in the wi_sharedresourceusage table.

CLUSTERNAME

The source is cluster_name in the wi_clustercode table, as identified by cluster_code. The cluster_code itself comes in the wi_sharedresourceusagedaily 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_sharedresourceusagedaily table and resource_code column

USAGE

This is a calculated value in the wi_sharedresourceusagedaily 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_sharedresourceusagedaily 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_sharedresourceusagedaily table.