Platform Analytics 7 Dataflow

WI_LICENSECONSUMPTMART table

This describes the wi_licenseconsumptmart table and how each column of data arises from the FLEXLM_LICENSE_USAGE table.
The wi_licenseconsumptmart get its data from the FLEXLM_LICENSE_USAGE table. The records from the data file are first aggregated for the same period with the grouping of "UserName", "Host", "Feature", "Vendor", "Server", "TimeDiff" and "Interval". The "Value" is summed together and the maximum of "Total" is found.
The records are then being put through the license consumption transformer for the hour. The License Consumption transformer calculates consumption over a period of time. It aggregates values in a field, based on a specific time interval, and calculates one of the following: "starttime": the time stamp for each interval event. The "consumption": a sum of records from the aggregation period and "count": a count of records from the aggregation period. The transformer calculates the license consumption by multiplying the "Value" field with the event time lined up for each interval. The interval comes from the "Interval" fields in the data file. The result is then divided by 60 (so that it is in minute) and added up together. The result is then record into this table.
This is the column description of each data column of WI_LICENSECONSUMPTMART and how each column is filled with data.
Column Name
Description
Key
TIME_STAMP
This is in GMT and is always end in the hour such as 02:00:00. This marks the time that this record is aggregated. For example, 02:00:00 means that all the records between 02:00:00 and 02:59:00 are aggregated into this record.
Primary key
LIC_FEATURE_CODE
This comes from the "LicenseName" field in the FLEXLM_LICENSE_USAGE table. Once we get the license feature, we then look it up in the wi_licfeaturecode 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_licfeaturecode 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
LIC_VENDOR_CODE
This comes from the "Vendor" field in the FLEXLM_LICENSE_USAGE table. Once we get the license vendor, we then look it up in the wi_licvendorcode 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_licvendorcode 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
LIC_SERVER_CODE
This comes from the "LicenseServer" field in the FLEXLM_LICENSE_USAGE table. Once we get the license server, we then look it up in the wi_licservercode 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_licservercode 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
LIC_SITE_NAME_CODE
This comes from the "LIC_SITE_NAME_CODE" field in the WI_LIC_SITENAMECODE table.
Primary key
USER_CODE
This comes from the "USER_NAME" field in the FLEXLM_LICENSE_USAGE table. Once we get the user name, we then look it up in the wi_usercode 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_usercode 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
HOST_CODE
This comes from the "HOST_NAME" field in the FLEXLM_LICENSE_USAGE table. Once we get the host name, we then look it up in the wi_hostcode 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_hostcode 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
USED_MINUTES
This is the license consumption calculated for this hour in minutes for this license.

LOCAL_SERVERTIME
This comes from the "Time_stamp" in this table. This is transformed into local server time.

PLC_ID
This is the plc instance id.

INSERT_SEQ
This is a system generated sequence number. For each new record inserted, a unique sequence number is being assigned to this column.