Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleREPORTING_TRIGGERS
FieldNullableData typeConstraintUnique ConstraintDescription
IDNOT NULLNUMERICPrimary Key  

SCHEDULER_ID

NOT NULL

VARCHAR

 

X

corresponds to SCHEDULER_ORDER_HISTORY.SPOOLER_ID

HISTORY_IDNOT NULLNUMERIC X

corresponds to SCHEDULER_ORDER_HISTORY.HISTORY_ID

NAMENOT NULLVARCHAR  

corresponds to SCHEDULER_ORDER_HISTORY.ORDER_ID

e.g. my_order for a given order path /test/my_jobchain,my_order.order.xml

TITLE VARCHAR  

order title

corresponds to INVENTORY_JOB_CHAIN_ORDERS.TITLE

PARENT_FOLDER
NOT NULLVARCHAR   

job chain folder 

e.g. /test for a given job chain path /test/my_jobchain.job_chain.xml

PARENT_NAMENOT NULLVARCHAR  

job chain name

corresponds to SCHEDULER_ORDER_HISTORY.JOB_CHAIN

e.g. /test/my_jobchain for a given job chain path /test/my_jobchain.job_chain.xml

PARENT_BASENAME VARCHAR  

job chain base name

e.g. my_jobchain for a given job chain path /test/my_jobchain.job_chain.xml

PARENT_TITLE VARCHAR  

job chain title

corresponds to INVENTORY_JOB_CHAINS.TITLE

STATE
 VARCHAR  

state of the order inside the job chain 

corresponds to SCHEDULER_ORDER_HISTORY.STATE

STATE_TEXT
 VARCHAR  

state text of the order

corresponds to SCHEDULER_ORDER_HISTORY.STATE_TEXT 

START_TIMENOT NULLDATETIME  

UTC timestamp of the start of the order

corresponds to SCHEDULER_ORDER_HISTORY.START_TIME

END_TIME DATETIME  

UTC timestamp of the end of the order

corresponds to SCHEDULER_ORDER_HISTORY.END_TIME

IS_RUNTIME_DEFINED
NOT NULLNUMERIC    specifies if a start time has been configured:
  • 1: yes
  • 0: no

corresponds to INVENTORY_ORDERS.IS_RUNTIME_DEFINED

RESULT_START_CAUSE
NOT NULLVARCHAR  

cause of the order start

  • order
  • file_trigger
  • ... 

corresponds to INVENTORY_JOB_CHAINS.START_CAUSE

RESULT_STEPS
NOT NULLNUMERIC   number of executed order steps 
RESULT_ERROR
NOT NULLNUMERIC   

specifies if an error occurred in the last executed order step:

  • 0: no error
  • 1: error
RESULT_ERROR_CODE
 VARCHAR   exception-code of the last executed order step error 
RESULT_ERROR_TEXT
 VARCHAR   exception-message of the last executed order step error  
SYNC_COMPLETEDNOT NULLNUMERIC  

for use by the JobScheduler Reporting Interface only:
specifies if a synchronization has been completed:

  • 1: yes
  • 0: no
RESULTS_COMPLETEDNOT NULLNUMERIC  

for use by the JobScheduler Reporting Interface only:
specifies if a aggregation has been completed:

  • 1: yes
  • 0: no
CREATEDNOT NULLDATETIME  UTC timestamp of record creation
MODIFIEDNOT NULLDATETIME  UTC timestamp of record modification
Expand
titleREPORTING_EXECUTIONS
FieldNullableData typeConstraintUnique ConstraintDescription
IDNOT NULLNUMERICPrimary Key  
SCHEDULER_ID NOT NULLNUMERIC Xcorresponds to SCHEDULER_ORDER_HISTORY.SPOOLER_ID
HISTORY_IDNOT NULLNUMERIC Xcorresponds to SCHEDULER_ORDER_HISTORY.HISTORY_ID
TRIGGER_IDNOT NULLNUMERICForeign KeyXreferences REPORT_TRIGGERS.ID
TASK_ID
NOT NULLNUMERICForeign Key references REPORT_TASKS.ID
CLUSTER_MEMBER_ID
 VARCHAR  corresponds to SCHEDULER_HISTORY.CLUSTER_MEMBER_ID
STEPNOT NULLNUMERIC X

consecutive number of the order step

corresponds to SCHEDULER_ORDER_STEP_HISTORY.STEP

FOLDER
NOT NULLVARCHAR  

folder of the order step 

e.g. /test for a given job chain path /test/my_jobchain.job_chain.xml 

NAMENOT NULLVARCHAR  

job name of the order step

corresponds to SCHEDULER_HISTORY.JOB_NAME

e.g. /test/my_job

BASENAMENOT NULLVARCHAR  

job base name of the order step

e.g. my_job, for a given job path /test/my_job.job.xml

TITLENULLVARCHAR  

job title of the order step

corresponds to INVENTORY_JOBS.TITLE

START_TIMENOT NULLDATETIME  

UTC timestamp of the start of the order step

corresponds to SCHEDULER_ORDER_STEP_HISTORY.START_TIME

END_TIMENULLDATETIME  

UTC timestamp of the end of the order step

corresponds to SCHEDULER_ORDER_STEP_HISTORY.END_TIME

STATENOT NULLVARCHAR   

state of the order inside the job chain

corresponds to SCHEDULER_ORDER_STEP_HISTORY.STATE

CAUSENOT NULLVARCHAR  

start cause for execution, can be mapped to an individual start cause by use of table

REPORT

REPORTING_MAP_CAUSES

corresponds to SCHEDULER_HISTORY.CAUSE

EXIT_CODE
NOT NULLNUMERIC  corresponds to SCHEDULER_HISTORY.EXIT_CODE
ERRORNOT NULLNUMERIC  

specifies if an error occurred:

  • 0: no error
  • 1: error

corresponds to SCHEDULER_ORDER_STEP_HISTORY.ERROR

ERROR_CODENULLVARCHAR  JobScheduler

exception-code of the order step error

corresponds to SCHEDULER_ORDER_STEP_HISTORY.ERROR_CODE

error code

ERROR_TEXTNULLVARCHAR  error

exception-message of the order step error

corresponds to SCHEDULER_ORDER_STEP_HISTORY.ERROR_TEXT

message

AGENT_URL
 VARCHAR  

agent url

corresponds to SCHEDULER_HISTORY.AGENT_URL

IS_RUNTIME_DEFINEDNOT NULLNUMERIC  

specifies if a start time has been configured:

  • 1: yes
  • 0: no: no

corresponds to INVENTORY_JOBS.IS_RUNTIME_DEFINED

SYNC_COMPLETED
NOT NULLNUMERIC  

for use by the JobScheduler Reporting Interface only:
specifies if a synchronization has been completed:

  • 1: yes
  • 0: no
RESULTS_COMPLETED
NOT NULLNUMERIC  

for use by the JobScheduler Reporting Interface only:
specifies if a aggregation has been completed:

  • 1: yes
  • 0: no
CREATEDNOT NULLDATETIME  UTC timestamp of record creation
MODIFIEDNOT NULLDATETIME  UTC timestamp of record modification

...

Expand
titleREPORTING_TASKS
FieldNullableData typeConstraintUnique ConstraintDescription
IDNOT NULLNUMERICPrimary Key  
SCHEDULER_ID NOT NULLNUMERIC  Xcorresponds to SCHEDULER_HISTORY.SPOOLER_ID
HISTORY_IDNOT NULLNUMERIC  Xcorresponds to SCHEDULER_HISTORY.ID
IS_ORDER
NOT NULLNUMERIC   

cause for execution of the task:

  • 1: order task
  • 0: standalone task
CLUSTER_MEMBER_ID
 VARCHAR  corresponds to SCHEDULER_HISTORY.CLUSTER_MEMBER_ID
STEPSNOT NULLNUMERIC  

number of steps --> calls to spooler_process()

corresponds to SCHEDULER_HISTORY.STEPS

FOLDER
NOT NULLVARCHAR   

job folder 

e.g. /test, for a given job path /test/my_job.job.xml

NAMENOT NULLVARCHAR  

job name

corresponds to SCHEDULER_HISTORY.JOB_NAME

 

 

 

 e.g. /test/my_job

BASENAMENOT NULLVARCHAR  

job base name

e.g. my_job, for a given job path /test/my_job.job.xml

TITLENULLVARCHAR  corresponds to INVENTORY_JOBS.TITLE
START_TIMENOT NULLDATETIME  

corresponds to SCHEDULER_HISTORY.START_TIME

END_TIMENULLDATETIME  

corresponds to SCHEDULER_HISTORY.END_TIME

CAUSENOT NULLVARCHAR  

corresponds to SCHEDULER_HISTORY.CAUSE

start cause for execution, can be mapped to an individual start cause by use of table REPORT_MAP_CAUSES

EXIT_CODE
NOT NULLNUMERIC  corresponds to SCHEDULER_HISTORY.EXIT_CODE
ERRORNOT NULLNUMERIC  

specifies if an error occurred:

  • 0: no error
  • 1: error
ERROR_CODENULLVARCHAR  JobScheduler error code
ERROR_TEXTNULLVARCHAR  error message
AGENT_URL
 VARCHAR   corresponds to SCHEDULER_HISTORY.AGENT_URL
IS_RUNTIME_DEFINEDNOT NULLNUMERIC  

specifies if a start time has been configured:

  • 1: yes
  • 0: no
SYNC_COMPLETED
NOT NULLNUMERIC  

for use by the JobScheduler Reporting Interface only:
specifies if a synchronization has been completed:

  • 1: yes
  • 0: no
RESULTS_COMPLETED
NOT NULLNUMERIC  

for use by the JobScheduler Reporting Interface only:
specifies if a aggregation has been completed:

  • 1: yes
  • 0: no
CREATEDNOT NULLDATETIME  timestamp of record creation
MODIFIEDNOT NULLDATETIME  timestamp of record modification

...

Expand
titleREPORT_EXECUTION_SUMMARY
CREATE OR REPLACE FUNCTION REPORT_EXECUTION_SUMMARY(start_date DATE, end_date DATE) RETURNS TABLE ( 
"ID" BIGINT,
"SCHEDULER_ID" VARCHAR(100),
"HOSTNAME" VARCHAR(255),
"JOB_CHAIN" VARCHAR(255),
"JOB_NAME" VARCHAR(255),
"JOB_BASENAME" VARCHAR(100),
"JOB_CHAIN_BASENAME" VARCHAR(100),
"JOB_TITLE" VARCHAR(255),
"JOB_CHAIN_TITLE" VARCHAR(255),
"CAUSE" VARCHAR(100),
"IS_ACTIVE_CALENDAR" INT,
"START_TIME" TIMESTAMP,
"END_TIME" TIMESTAMP,
"START_DATE" DATE,
"END_DATE" DATE
)