You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 19
Next »
- The following tables are managed by reporting inventory jobs that create an inventory of existing jobs, job chains and orders.
- Records are overwritten by each run of the reporting inventory jobs.
- SQL Scripts: inventory.sql
- SQL scripts in this article are provided for PostgreSQL. The SQL scrpts for the respective DBMS are provided by the JobScheduler installer.
INVENTORY_AGENT_CLUSTERMEMBERS
Field | Nullable | Data type | Constraint | Unique Constraint | Description |
---|
ID | NOT NULL | NUMERIC | Primary Key | | |
INSTANCE_ID | NOT NULL | NUMERIC | Foreign Key | X | references INVENTORY_INSTANCES.ID |
AGENT_CLUSTER_ID | NOT NULL | NUMERIC | Foreign Key | X | references INVENTORY_AGENT_CLUSTERS.ID |
AGENT_INSTANCE_ID | NOT NULL | NUMERIC | Foreign Key | X | references INVENTORY_AGENT_INSTANCES.ID |
URL | NOT NULL | VARCHAR | | | agent url |
ORDERING | NOT NULL | NUMERIC | | | |
CREATED | NOT NULL | DATETIME | | | UTC timestamp of record creation |
MODIFIED | NOT NULL | DATETIME | | | UTC timestamp of record modification |
INVENTORY_AGENT_CLUSTERS
Field | Nullable | Data type | Constraint | Unique Constraint | Description |
---|
ID | NOT NULL | NUMERIC | Primary Key | | |
INSTANCE_ID | NOT NULL | NUMERIC | Foreign Key | | references INVENTORY_INSTANCES.ID |
PROCESS_CLASS_ID | NOT NULL | NUMERIC | Foreign Key | X | references INVENTORY_PROCESS_CLASSES.ID |
SCHEDULING_TYPE | NOT NULL | VARCHAR | | | |
NUMBER_OF_AGENTS | NOT NULL | NUMERIC | | | |
CREATED | NOT NULL | DATETIME | | | UTC timestamp of record creation |
MODIFIED | NOT NULL | DATETIME | | | UTC timestamp of record modification |
INVENTORY_APPLIED_LOCKS
Field | Nullable | Data type | Constraint | Unique Constraint | Description |
---|
ID | NOT NULL | NUMERIC | Primary Key | | |
JOB_ID | NOT NULL | NUMERIC | Foreign Key | X | references INVENTORY_JOBS.ID |
LOCK_ID | NOT NULL | NUMERIC | Foreign Key | X | references INVENTORY_LOCKS.ID |
CREATED | NOT NULL | DATETIME | | | UTC timestamp of record creation |
MODIFIED | NOT NULL | DATETIME | | | UTC timestamp of record modification |
INVENTORY_FILES
Field | Nullable | Data type | Constraint | Unique Constraint | Description |
---|
ID | NOT NULL | NUMERIC | Primary Key | | |
INSTANCE_ID | NOT NULL | NUMERIC | Foreign Key | X | references INVENTORY_INSTANCES.ID |
FILE_TYPE | NOT NULL | VARCHAR | | | file types in use: file types not used: process_class config lock schedule ...
|
FILE_NAME | NOT NULL | VARCHAR | | X | path from live directory e.g. /test/my_job.job.xml |
FILE_BASENAME | NOT NULL | VARCHAR | | | file base name with extension e.g. my_job.job.xml |
FILE_DIRECTORY | NOT NULL | VARCHAR | | | path calculated from the live directory e.g. test |
FILE_CREATED | NULL | DATETIME | | | UTC timestamp of the creation date of the file |
FILE_MODIFIED | NULL | DATETIME | | | UTC timestamp of the modification date of the file |
FILE_LOCAL_CREATED | NULL | DATETIME | | | local timestamp of the creation date of the file |
FILE_LOCAL_MODIFIED | NULL | DATETIME | | | local timestamp of the modification date of the file |
CREATED | NOT NULL | DATETIME | | | UTC timestamp of record creation |
MODIFIED | NOT NULL | DATETIME | | | UTC timestamp of record modification |
INVENTORY_INSTANCES
Field | Nullable | Data type | Constraint | Unique Constraint | Description |
---|
ID | NOT NULL | NUMERIC | Primary Key | | |
OS_ID | NOT NULL | NUMERIC | Foreign Key | | references INVENTORY_OPERATING_SYSTEMS.ID |
SCHEDULER_ID | NOT NULL | VARCHAR | | X | corresponds to the SCHEDULER_ID that is specified during installation of the JobScheduler instance |
HOSTNAME | NOT NULL | VARCHAR | | X | host on which the JobScheduler instance has been installed |
PORT | NOT NULL | NUMERIC | | X | TCP port that the JobScheduler instance is listening to. Should not TCP port be specified then the UDP port is provided. |
LIVE_DIRECTORY | NOT NULL | VARCHAR | | | path of the live directory |
VERSION | NOT NULL | VARCHAR | | | |
COMMAND_URL | NOT NULL | VARCHAR | | | |
URL | NOT NULL | VARCHAR | | | |
TIMEZONE | NOT NULL | VARCHAR | | | |
CLUSTER_TYPE | NOT NULL | VARCHAR | | | |
PRECEDENCE | | NUMERIC | | | |
DBMS_NAME | NOT NULL | VARCHAR | | | |
DBMS_VERSION | | VARCHAR | | | |
STARTED_AT | | DATETIME | | | |
SUPERVISOR_ID | | NUMERIC | | | |
AUTH | | VARCHAR | | | |
CREATED | NOT NULL | DATETIME | | | UTC timestamp of record creation |
MODIFIED | NOT NULL | DATETIME | | | UTC timestamp of record modification |
INVENTORY_JOB_CHAIN_NODES
Field | Nullable | Data type | Constraint | Unique Constraint | Description |
---|
ID | NOT NULL | NUMERIC | Primary Key | | |
INSTANCE_ID | NOT NULL | NUMERIC | Foreign Key | | references INVENTORY_INSTANCES.ID |
JOB_ID | NOT NULL | NUMERIC | Foreign Key | | references INVENTORY_JOBS.ID |
JOB_CHAIN_ID | NOT NULL | NUMERIC | Foreign Key | | references INVENTORY_JOB_CHAINS.ID |
NESTED_JOB_CHAIN_ID | NOT NULL | NUMERIC | Foreign Key | | references INVENTORY_JOB_CHAINS.ID |
NAME | NOT NULL | VARCHAR | | | job node name: file_order_source job_chain_node file_order_sink
|
ORDERING | NOT NULL | NUMERIC | | | ordering of node in job chain |
STATE
| | VARCHAR | | | job node state as specified in the configuration |
NEXT_STATE | | VARCHAR | | | next state for an order in case of successful execution |
ERROR_STATE | | VARCHAR | | | error state for an order in case of unsuccessful execution |
JOB | | VARCHAR | | | job name as specified in the job node configuration e.g. ../my_job |
JOB_NAME | NOT NULL | VARCHAR | | | corresponds to INVENTORY_JOBS.NAME. Paths are resolved to absolute values starting from the live directory e.g. /test/my_job |
NESTED_JOB_CHAIN | | VARCHAR | | | |
NESTED_JOB_CHAIN_NAME | NOT NULL | VARCHAR | | | corresponds to INVENTORY_JOB_CHAINS.NAME |
NODE_TYPE | NOT NULL | NUMERIC | | | |
ON_ERROR | | VARCHAR | | | |
DELAY | | NUMERIC | | | |
DIRECTORY | | VARCHAR | | | |
REGEX | | VARCHAR | | | |
FILE_SINK_OP | | NUMERIC | | | |
MOVE_PATH | | VARCHAR | | | |
CREATED | NOT NULL | DATETIME | | | UTC timestamp of record creation |
MODIFIED | NOT NULL | DATETIME | | | UTC timestamp of record modification |
INVENTORY_JOB_CHAINS
Field | Nullable | Data type | Constraint | Unique Constraint | Description |
---|
ID | NOT NULL | NUMERIC | Primary Key | | |
INSTANCE_ID | NOT NULL | NUMERIC | Foreign Key | | references INVENTORY_INSTANCES.ID |
FILE_ID | NOT NULL | NUMERIC | Foreign Key | X | references INVENTORY_FILES.ID |
PROCESS_CLASS_ID | NOT NULL | NUMERIC | Foreign Key | | references INVENTORY_PROCESS_CLASSES.ID |
FW_PROCESS_CLASS_ID | NOT NULL | NUMERIC | Foreign Key | | references INVENTORY_PROCESS_CLASSES.ID |
START_CAUSE | NOT NULL | VARCHAR | | | the following start causes are available: |
NAME | NOT NULL | VARCHAR | | | job chain name e.g. /test/my_jobchain for a given job chain path /test/my_jobchain.job_chain.xml
|
BASENAME | NOT NULL | VARCHAR | | | job chain base name e.g. my_jobchain for a given job chain path /test/my_jobchain.job_chain.xml |
TITLE | NULL | VARCHAR | | | job chain title |
MAX_ORDERS | | NUMERIC | | | |
DISTRIBUTED | NOT NULL | NUMERIC | | | |
PROCESS_CLASS | | VARCHAR | | | |
PROCESS_CLASS_NAME | NOT NULL | VARCHR | | | corresponds to INVENTORY_PROCESS_CLASSES.NAME |
FW_PROCESS_CLASS | | VARCHAR | | | |
FW_PROCESS_CLASS_NAME | NOT NULL | VARCHAR | | | corresponds to INVENTORY_PROCESS_CLASSES.NAME |
CREATED | NOT NULL | DATETIME | | | UTC timestamp of record creation |
MODIFIED | NOT NULL | DATETIME | | | UTC timestamp of record modification |
INVENTORY_JOBS
Field | Nullable | Data type | Constraint | Unique Constraint | Description |
---|
ID | NOT NULL | NUMERIC | Primary Key | | |
INSTANCE_ID | NOT NULL | NUMERIC | Foreign Key | | references INVENTORY_INSTANCES.ID |
FILE_ID | NOT NULL | NUMERIC | Foreign Key | X | references INVENTORY_FILES.ID |
PROCESS_CLASS_ID | NOT NULL | NUMERIC | Foreign Key | | references INVENTORY_PROCESS_CLASSES.ID |
SCHEDULE_ID | NOT NULL | NUMERIC | Foreign Key | | references INVENTORY_SCHEDULES.ID |
NAME | NOT NULL | VARCHAR | | | job name e.g. /test/my_job for a given job path /test/my_job.job.xml
|
BASENAME | NOT NULL | VARCHAR | | | job base name e.g. my_job for a given job path /test/my_job.job.xml |
TITLE | NULL | VARCHAR | | | job title |
IS_ORDER_JOB
| NOT NULL | NUMERIC | | | specifies if this job is part of a job chain: |
IS_RUNTIME_DEFINED
| NOT NULL | NUMERIC | | | specifies if a start time has been configured: |
USED_IN_JOB_CHAINS | | NUMERIC | | | |
PROCESS_CLASS | | VARCHAR | | | |
PROCESS_CLASS_NAME | NOT NULL | VARCHAR | | | corresponds to INVENTORY_PROCESS_CLASSES.NAME |
SCHEDULE | | VARCHAR | | | |
SCHEDULE_NAME | NOT NULL | VARCHAR | | | corresponds to INVENTORY_SCHEDULES.NAME |
CREATED | NOT NULL | DATETIME | | | UTC timestamp of record creation |
MODIFIED | NOT NULL | DATETIME | | | UTC timestamp of record modification |
INVENTORY_LOCKS
Field | Nullable | Data type | Constraint | Unique Constraint | Description |
---|
ID | NOT NULL | NUMERIC | Primary Key | | |
INSTANCE_ID | NOT NULL | NUMERIC | Foreign Key | | references INVENTORY_INSTANCES.ID |
FILE_ID | NOT NULL | NUMERIC | Foreign Key | X | references INVENTORY_FILES.ID |
NAME | NOT NULL | VARCHAR | | | |
BASENAME | NOT NULL | VARCHAR | | | |
MAX_NON_EXCLUSIVE | | NUMERIC | | | |
CREATED | NOT NULL | DATETIME | | | UTC timestamp of record creation |
MODIFIED | NOT NULL | DATETIME | | | UTC timestamp of record modification |
INVENTORY_OPERATING_SYSTEMS
Field | Nullable | Data type | Constraint | Unique Constraint | Description |
---|
ID | NOT NULL | NUMERIC | Primary Key | | |
HOSTNAME | NOT NULL | VARCHAR | | |
|
NAME | | VARCHAR | | |
|
ARCHITECTURE | | VARCHAR | | | |
DISTRIBUTION | | VARCHAR | | | |
CREATED | NOT NULL | DATETIME | | | UTC timestamp of record creation |
MODIFIED | NOT NULL | DATETIME | | | UTC timestamp of record modification |
INVENTORY_ORDERS
Field | Nullable | Data type | Constraint | Unique Constraint | Description |
---|
ID | NOT NULL | NUMERIC | Primary Key | | |
INSTANCE_ID | NOT NULL | NUMERIC | Foreign Key | | references INVENTORY_INSTANCES.ID
|
FILE_ID | NOT NULL | NUMERIC | Foreign Key | X | references INVENTORY_FILES.ID |
JOB_CHAIN_ID | NOT_NULL | NUMERIC | Foreign Key | | references INVENTORY_JOB_CHAINS.ID |
SCHEDULE_ID | NOT_NULL | NUMERIC | Foreign Key | | references INVENTORY_SCHEDULES.ID |
NAME | NOT NULL | VARCHAR | | | order name e.g. /test/my_jobchain,my_order for a given order path /test/my_jobchain,my_order.order.xml |
BASENAME | NOT NULL | VARCHAR | | | order base name e.g. my_jobchain,my_order for a given job chain path /test/my_jobchain,my_order.order.xml |
TITLE | NULL | VARCHAR | | | order title |
ORDER_ID | NOT NULL | VARCHAR | | | order identification (unique per job chain) e.g. my_order for a given order path /test/my_jobchain,my_order.order.xml
|
JOB_CHAIN_NAME | NOT NULL | VARCHAR | | | corresponds to INVENTORY_JOB_CHAINS.NAME e.g. /test/my_jobchain
|
SCHEDULE | | VARCHAR | | | |
SCHEDULE_NAME | NOT_NULL | VARCHAR | | | corresponds to INVENTORY_SCHEDULES.NAME |
INITIAL_STATE | | VARCHAR | | | |
END_STATE | | VARCHAR | | | |
PRIORITY | | NUMERIC | | | |
IS_RUNTIME_DEFINED
| NOT NULL | NUMERIC | | | specifies if a start time has been configured: |
CREATED | NOT NULL | DATETIME | | | UTC timestamp of record creation |
MODIFIED | NOT NULL | DATETIME | | | UTC timestamp of record modification |
INVENTORY_PROCESS_CLASSES
Field | Nullable | Data type | Constraint | Unique Constraint | Description |
---|
ID | NOT NULL | NUMERIC | Primary Key | | |
INSTANCE_ID | NOT NULL | NUMERIC | Foreign Key | X | references INVENTORY_INSTANCES.ID |
FILE_ID | NOT NULL | NUMERIC | Foreign Key | X | references INVENTORY_FILES.ID |
NAME | NOT NULL | VARCHAR | | | |
BASENAME | NOT NULL | VARCHAR | | | |
MAX_PROCESSES | | NUMERIC | | | |
HAS_AGENTS | NOT NULL | NUMERIC | | | |
CREATED | NOT NULL | DATETIME | | | UTC timestamp of record creation |
MODIFIED | NOT NULL | DATETIME | | | UTC timestamp of record modification |
INVENTORY_SCHEDULES
Field | Nullable | Data type | Constraint | Unique Constraint | Description |
---|
ID | NOT NULL | NUMERIC | Primary Key | | |
INSTANCE_ID | NOT NULL | NUMERIC | Foreign Key | | references INVENTORY_INSTANCES.ID |
FILE_ID | NOT NULL | NUMERIC | Foreign Key | X | references INVENTORY_FILES.ID |
SUBSTITUTE_ID | NOT NULL | NUMERIC | Foreign Key | | |
NAME | NOT NULL | VARCHAR | | | |
BASENAME | NOT NULL | VARCHAR | | | |
TITLE | | VARCHAR | | | |
SUBSTITUTE | | NUMERIC | | | |
SUBSTITUTE_NAME | NOT NULL | NUMERIC | | | |
SUBSTITUTE_VALID_FROM | | DATETIME | | | |
SUBSTITUTE_VALID_TO | | DATETIME | | | |
CREATED | NOT NULL | DATETIME | | | UTC timestamp of record creation |
MODIFIED | NOT NULL | DATETIME | | | UTC timestamp of record modification |
- The following tables are used to collect facts from the JobScheduler history.
- These tables can be used to create individual reports.
- SQL Scripts: reporting.sql
- SQL scripts in this article are provided for PostgreSQL. The SQL scrpts for the respective DBMS are provided by the JobScheduler installer.
REPORTING_TRIGGERS
Field | Nullable | Data type | Constraint | Unique Constraint | Description |
---|
ID | NOT NULL | NUMERIC | Primary Key | | |
SCHEDULER_ID
| NOT NULL | VARCHAR | | X | corresponds to SCHEDULER_ORDER_HISTORY.SPOOLER_ID
|
HISTORY_ID | NOT NULL | NUMERIC | | X | corresponds to SCHEDULER_ORDER_HISTORY.HISTORY_ID
|
NAME
| NOT NULL | VARCHAR | | | 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 NULL | VARCHAR | | | job chain folder e.g. /test for a given job chain path /test/my_jobchain.job_chain.xml |
PARENT_NAME | NOT NULL | VARCHAR | | | 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_TIME | NOT NULL | DATETIME | | | 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 NULL | NUMERIC | | | specifies if a start time has been configured: corresponds to INVENTORY_ORDERS.IS_RUNTIME_DEFINED
|
RESULT_START_CAUSE | NOT NULL | VARCHAR | | | cause of the order start corresponds to INVENTORY_JOB_CHAINS.START_CAUSE
|
RESULT_STEPS | NOT NULL | NUMERIC | | | number of executed order steps |
RESULT_ERROR | NOT NULL | NUMERIC | | | specifies if an error occurred in the last executed order step: |
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_COMPLETED | NOT NULL | NUMERIC | | | for use by the JobScheduler Reporting Interface only: specifies if a synchronization has been completed: |
RESULTS_COMPLETED | NOT NULL | NUMERIC | | | for use by the JobScheduler Reporting Interface only: specifies if a aggregation has been completed: |
CREATED | NOT NULL | DATETIME | | | UTC timestamp of record creation |
MODIFIED | NOT NULL | DATETIME | | | UTC timestamp of record modification |
REPORTING_EXECUTIONS
Field | Nullable | Data type | Constraint | Unique Constraint | Description |
---|
ID | NOT NULL | NUMERIC | Primary Key | | |
SCHEDULER_ID
| NOT NULL | NUMERIC | | X | corresponds to SCHEDULER_ORDER_HISTORY.SPOOLER_ID
|
HISTORY_ID | NOT NULL | NUMERIC | | X | corresponds to SCHEDULER_ORDER_HISTORY.HISTORY_ID |
TRIGGER_ID
| NOT NULL | NUMERIC | Foreign Key | X | references REPORT_TRIGGERS .ID
|
TASK_ID | NOT NULL | NUMERIC | Foreign Key | | references REPORT_TASKS .ID
|
CLUSTER_MEMBER_ID | | VARCHAR | | | corresponds to SCHEDULER_HISTORY.CLUSTER_MEMBER_ID |
STEP | NOT NULL | NUMERIC | | X | consecutive number of the order step corresponds to SCHEDULER_ORDER_STEP_HISTORY.STEP |
FOLDER | NOT NULL | VARCHAR | | | folder of the order step e.g. /test for a given job chain path /test/my_jobchain.job_chain.xml |
NAME | NOT NULL | VARCHAR | | | job name of the order step corresponds to SCHEDULER_HISTORY.JOB_NAME e.g. /test/my_job |
BASENAME | NOT NULL | VARCHAR | | | job base name of the order step e.g. my_job , for a given job path /test/my_job.job.xml |
TITLE | NULL | VARCHAR | | | job title of the order step corresponds to INVENTORY_JOBS.TITLE |
START_TIME | NOT NULL | DATETIME | | | UTC timestamp of the start of the order step corresponds to SCHEDULER_ORDER_STEP_HISTORY.START_TIME |
END_TIME | NULL | DATETIME | | | UTC timestamp of the end of the order step corresponds to SCHEDULER_ORDER_STEP_HISTORY.END_TIME |
STATE | NOT NULL | VARCHAR | | | state of the order inside the job chain corresponds to SCHEDULER_ORDER_STEP_HISTORY.STATE |
CAUSE | NOT NULL | VARCHAR | | | start cause for execution, can be mapped to an individual start cause by use of table REPORTING_MAP_CAUSES corresponds to SCHEDULER_HISTORY.CAUSE |
EXIT_CODE | NOT NULL | NUMERIC | | | corresponds to SCHEDULER_HISTORY.EXIT_CODE |
ERROR | NOT NULL | NUMERIC | | | specifies if an error occurred: corresponds to SCHEDULER_ORDER_STEP_HISTORY.ERROR |
ERROR_CODE | NULL | VARCHAR | | | exception-code of the order step error corresponds to SCHEDULER_ORDER_STEP_HISTORY.ERROR_CODE |
ERROR_TEXT | NULL | VARCHAR | | | exception-message of the order step error corresponds to SCHEDULER_ORDER_STEP_HISTORY.ERROR_TEXT |
AGENT_URL | | VARCHAR | | | agent url corresponds to SCHEDULER_HISTORY.AGENT_URL |
IS_RUNTIME_DEFINED | NOT NULL | NUMERIC | | | specifies if a start time has been configured: corresponds to INVENTORY_JOBS.IS_RUNTIME_DEFINED |
SYNC_COMPLETED | NOT NULL | NUMERIC | | | for use by the JobScheduler Reporting Interface only: specifies if a synchronization has been completed: |
RESULTS_COMPLETED | NOT NULL | NUMERIC | | | for use by the JobScheduler Reporting Interface only: specifies if a aggregation has been completed: |
CREATED | NOT NULL | DATETIME | | | UTC timestamp of record creation |
MODIFIED | NOT NULL | DATETIME | | | UTC timestamp of record modification |
REPORTING_TASKS
Field | Nullable | Data type | Constraint | Unique Constraint | Description |
---|
ID | NOT NULL | NUMERIC | Primary Key | | |
SCHEDULER_ID
| NOT NULL | NUMERIC | | X | corresponds to SCHEDULER_HISTORY.SPOOLER_ID
|
HISTORY_ID | NOT NULL | NUMERIC | | X | corresponds to SCHEDULER_HISTORY.ID |
IS_ORDER | NOT NULL | NUMERIC | | | cause for execution of the task: 1: order task 0: standalone task
|
CLUSTER_MEMBER_ID | | VARCHAR | | | corresponds to SCHEDULER_HISTORY.CLUSTER_MEMBER_ID |
STEPS | NOT NULL | NUMERIC | | | number of steps --> calls to spooler_process() corresponds to SCHEDULER_HISTORY.STEPS |
FOLDER | NOT NULL | VARCHAR | | | job folder e.g. /test , for a given job path /test/my_job.job.xml |
NAME | NOT NULL | VARCHAR | | | job name corresponds to SCHEDULER_HISTORY.JOB_NAME e.g. /test/my_job , for a given job path /test/my_job.job.xml |
BASENAME | NOT NULL | VARCHAR | | | job base name e.g. my_job , for a given job path /test/my_job.job.xml |
TITLE | NULL | VARCHAR | | | job title corresponds to INVENTORY_JOBS.TITLE |
START_TIME | NOT NULL | DATETIME | | | UTC timestamp of the task start corresponds to SCHEDULER_HISTORY.START_TIME |
END_TIME | NULL | DATETIME | | | UTC timestamp of the task end corresponds to SCHEDULER_HISTORY.END_TIME |
CAUSE | NOT NULL | VARCHAR | | | cause of the task start e.g. : - none
- period_once
- period_single
- period_repeat
- job_repeat
- queue
- queue_at
- directory
- signal
- delay_after_error
corresponds to SCHEDULER_HISTORY.CAUSE |
EXIT_CODE | NOT NULL | NUMERIC | | | corresponds to SCHEDULER_HISTORY.EXIT_CODE |
ERROR | NOT NULL | NUMERIC | | | specifies if an error occurred: |
ERROR_CODE | NULL | VARCHAR | | | exception-code of the task error |
ERROR_TEXT | NULL | VARCHAR | | | exception-message of the task error |
AGENT_URL | | VARCHAR | | | agen url corresponds to SCHEDULER_HISTORY.AGENT_URL |
IS_RUNTIME_DEFINED | NOT NULL | NUMERIC | | | specifies if a start time has been configured: corresponds to INVENTORY_JOBS.IS_RUNTIME_DEFINED |
SYNC_COMPLETED | NOT NULL | NUMERIC | | | for use by the JobScheduler Reporting Interface only: specifies if a synchronization has been completed: |
RESULTS_COMPLETED | NOT NULL | NUMERIC | | | for use by the JobScheduler Reporting Interface only: specifies if a aggregation has been completed: |
CREATED | NOT NULL | DATETIME | | | UTC timestamp of record creation |
MODIFIED | NOT NULL | DATETIME | | | UTC timestamp of record modification |
- The following tables contain aggregations for
- triggers, executions and tasks per day, week, month, quarter, year
REPORTING_EXECUTION_DATES
Field | Nullable | Data type | Constraint | Description |
---|
ID | NOT NULL | NUMERIC | Primary Key | |
SCHEDULER_ID | NOT NULL | VARCHAR | | corresponds to SCHEDULER_ORDER_HISTORY.SCHEDULER_ID
|
HISTORY_ID | NOT NULL | NUMERIC | | corresponds to SCHEDULER_ORDER_HISTORY.HISTORY_ID |
REFERENCE_ID | NOT NULL | NUMERIC | Foreign Key | references REPORTING_TRIGGERS.ID or REPORTING_EXECUTIONS.ID or REPORTIN_TASKS.ID |
REFERENCE_TYPE | NOT NULL | NUMERIC | | type of reference: 0: references REPORTING_TRIGGERS 1: references REPORTING_EXECUTIONS 2: references REPORTING_TASKS
|
START_DAY | NOT NULL | NUMERIC | | calendar day e.g. 1 |
START_WEEK | NOT NULL | NUMERIC | | calendar week e.g. 52 |
START_MONTH | NOT NULL | NUMERIC | | calendar month e.g. 12 |
START_QUARTER | NOT NULL | NUMERIC | | quarter e.g. 1 |
START_YEAR | NOT NULL | NUMERIC | | year e.g. 2015 |
END_DAY | NOT NULL | NUMERIC | | calendar day e.g. 1 |
END_WEEK | NOT NULL | NUMERIC | | calendar week e.g. 52 |
END_MONTH | NOT NULL | NUMERIC | | calendar month e.g. 12 |
END_QUARTER | NOT NULL | NUMERIC | | quarter e.g. 1 |
END_YEAR | NOT NULL | NUMERIC | | calendar year e.g. 2015 |
CREATED | NOT NULL | DATETIME | | UTC timestamp of record creation |
MODIFIED | NOT NULL | DATETIME | | UTC timestamp of record modification |
- The following tables are used for the mapping of report data. Users can add individual records that are used for the mapping of results in individual reports:
- Mapping of start causes for jobs
- Contents in these tables is optional, however, their existence is required.
- SQL Scripts
- Sample Data: reporting_map_insert.sql
- SQL scripts in this article are provided for PostgreSQL. The SQL scrpts for the respective DBMS are provided by the JobScheduler installer.
REPORTING_MAP_CAUSES
Field | Nullable | Data type | Constraint | Description |
---|
ID | NOT NULL | NUMERIC | Primary Key | |
CAUSE | NOT NULL | VARCHAR | | start cause as used by JobScheduler: possible values include order : job start triggered by manual ordermin_tasks : job start triggered by forced minimum number of tasksdelay_after_error : job start due to a setback eventperiod_single : job start triggered by order start timeperiod_repeat : job start triggered by order repeat intervalqueue_at : job start scheduled manually or by task congestion
additional values provided by the JobScheduler Reporting Interface include file_trigger : job start due to an incoming file
|
MAPPED_CAUSE | NOT NULL | VARCHAR | | individual mapping of start cause |
CREATED | NOT NULL | DATETIME | | UTC timestamp of record creation |
MODIFIED | NOT NULL | DATETIME | | UTC timestamp of record modification |
- SQL Scripts: reporting_cleanup_procedure.sql
- SQL scripts in this article are provided for PostgreSQL. The SQL scrpts for the respective DBMS are provided by the JobScheduler installer.
cleanup all
entries (reporting
, dailyplan
, yade
)
cleanup only reporting
entries
cleanup only dailyplan
entries
SELECT REPORT_CLEANUP('dailyplan',0);
- following tables will be truncated
cleanup only yade
entries
Example - cleanup entries older as 14 days
- cleanup
all
entries (reporting
, dailyplan
, yade
)SELECT REPORT_CLEANUP('all',14);
- cleanup
reporting
entriesSELECT REPORT_CLEANUP('reporting',14);
- cleanup
reporting
entriesSELECT REPORT_CLEANUP('reporting',14);
- cleanup
reporting
entriesSELECT REPORT_CLEANUP('reporting',14)
- For most DBMS it is recommended to use views or procedures in order to speed up queries by pre-compiled statements.
- The following procedures implement the use of the standard tables for reporting results.
- SQL Scripts: reporting_procedure.sql
- SQL scripts in this article are provided for PostgreSQL. The SQL scrpts for the respective DBMS are provided by the JobScheduler installer.
- Report about jobs, job chains and orders as collected from disk.
- Report about executions of jobs and job chains.