Jump to: navigation, search

View RESOURCE_SKILL_FACT

Description

Each row describes one skill at a particular proficiency level that one agent possesses. The grain of the fact is an accumulating snapshot that represents the duration of the configured skill and proficiency, which are identified by a unique ID in the configuration database.

Column List

Column Description
RESOURCE_SKILL_FACT_KEY The primary key of this view.
START_DATE_TIME_KEY Identifies the start of a 15-minute interval in which the skill at the specified level was added to the resource in the contact center configuration. Use this value as a key to join the fact tables to any configured DATE_TIME dimension, in order to group the facts that are related to the same interval and/or convert the START_TS timestamp to an appropriate time zone.
END_DATE_TIME_KEY Identifies the start of a 15-minute interval in which the skill at the specified level was removed from the resource in the contact center configuration. Use this value as a key to join the fact tables to any configured DATE_TIME dimension, in order to group the facts related to the same interval and/or convert the END_TS timestamp to an appropriate time zone.
TENANT_KEY The surrogate key that is used to join the TENANT dimension to the fact tables.
RESOURCE_KEY The surrogate key that is used to join the RESOURCE_ dimension to the fact tables.
SKILL_KEY The surrogate key that is used to join the SKILL dimension to the fact tables.
CREATE_AUDIT_KEY The surrogate key that is used to join to the CTL_AUDIT_LOG control table. The key specifies the lineage for data creation. This value can be useful for aggregation, enterprise application integration (EAI), and ETL tools — that is, applications that need to identify newly added data.
UPDATE_AUDIT_KEY The surrogate key used to join to the CTL_AUDIT_LOG dimension. Specifies the lineage for data update. This value can be useful for aggregation, enterprise application integration (EAI), and ETL tools — that is, applications that need to identify recently modified data.
START_TS The UTC-equivalent value of the date and time when the skill, at the specified level, was added to the resource in the contact center configuration.
END_TS The meaning depends on the value of ACTIVE_FLAG. For an inactive row, the UTC-equivalent value of the date and time when the skill, at the specified level, was removed from the resource in contact center configuration. For an active row, this value represents a UTC-equivalent value of the date and time far in the future, so that applications do not have to test for null.
TOTAL_DURATION The meaning depends on the value of ACTIVE_FLAG. For an inactive row, this field represents the total duration, in seconds, that the resource had the skill at the specified level. For an active row, this field represents the duration, in seconds, that the resource has had the skill at the specified level, from start time to the time that the ETL last executed.
ACTIVE_FLAG Indicates whether the resource currently has the skill at the specified level: 0 = No, 1 = Yes.
SKILL_LEVEL The skill level or proficiency.
PURGE_FLAG This field is reserved.

SQL Query

select
  RESOURCE_SKILL_FACT_KEY,
  START_DATE_TIME_KEY,
  END_DATE_TIME_KEY,
  TENANT_KEY,
  RESOURCE_KEY,
  SKILL_KEY,
  CREATE_AUDIT_KEY,
  UPDATE_AUDIT_KEY,
  START_TS,
  END_TS,
  (case when ACTIVE_FLAG
<> 0
  then (select (max(LAST_CFG_EXTRACT_TS) - START_TS) from CTL_EXTRACT_METRICS)
  else END_TS - START_TS end) as TOTAL_DURATION,
  ACTIVE_FLAG,
  SKILL_LEVEL,
  PURGE_FLAG
  from RESOURCE_SKILL_FACT_

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on August 10, 2017, at 05:44.