Platform Analytics 7 Dataflow

WI_HOSTSTATUSHOURLY table

The WI_HOSTSTATUSHOURLY table gets its information from the LSF_BHOSTS table.
For each new record, if the record has the same status as the last record, the last_period field for the new record is updated with the same host and cluster as the last record, and if the time between the two records is four times greater than the sampling interval, this record is marked as a "Gap".
The following table describes each column and its source:
Column Name
Description
Key
CLUSTER_CODE
This is the cluster code.
The cluster code is obtained by looking up the ClusterName in the wi_clustercode table and generating a new code if it doesn't exist.
Primary key
TIME_STAMP
This is the time stamp of all the record collections in the next hour, in GMT. For example, 02:00:00 means that all records between 02:00 and 02:59:59 are collected into this record.
Primary key
HOST_CODE
This is the host code.
The host code is obtained by looking up the HostName in the wi_hostcode table and generating a new code if it doesn't exist.
Primary key
STATUS_CODE
This is the status code.
The status code is obtained by looking up the Status in the wi_statuscode table and generating a new code if it doesn't exist.
Primary key
STATUS_DURATION This is the durative time of a status. It is form the sum of INTERVAL of raw table within a specifically time. For example, The host1 is up for the first 10 minutes, and then it goes down for 20 minutes and then it goes up again until the end of the hour. Since there are only two status, so, we calculate the duration for each status within the hour. For the 'up' status, the duration will be: 10 minutes + 30 minutes = 40 minutes
For the 'down' status, the duration will be: 20 minutes.
Time Host Status
00:00 host1 up
00:05 host1 up
00:10 host1 down
00:15 host1 down
00:20 host1 down
00:25 host1 down
00:30 host1 up
00:35 host1 up
00:40 host1 up
00:45 host1 up
00:50 host1 up
00:55 host1 up

From the above, the hourly output is:
Time Host Status Duration
00:00 host1 up 40
00:00 host1 down 20

 
STATUS_TIMES This is the generant times of a certain status within an hour. For example, if the host down two times in an hour, the status times is 2 in the hour.
, for example:
host time status
host1 01:30 up
host1 01:45 down
host1 01:50 up
host1 02:00 down
host1 02:05 up

Thus, for this one, since the last record for host1 is 02:05, we aggregated upto but not included 02:00
The output will be:
host time downminutes downtime laststatus
host1 01:00 5 1 up
The laststatus record down the latest status within the aggregated period.

When the next aggreggation start, we assume we have the following addition raw data for host1

host1 02:30 down
host1 02:45 up
host1 03:40 down

And the result will be:
host time downminutes downtime laststatus
host1 02:00 15 1 up

 
LOCAL_SERVERTIME
This is the localized time stamp from the data file according to the local server.

INSERT_SEQ
This is a unique sequence number generated by the system for each new record inserted.