Scheduler 表

Scheduler 表存储了 sysadmin 数据库中有关任务和传感器的五个表。它们分别是:ph_taskph_runph_groupph_alertph_threshold

Scheduler 是一个管理工具,它是数据库服务器可以在预定义的时间或有服务器内部驱动的时间执行功能和过程。它所使用的这五个表包含了自动运行的内置任务和传感器。您也可以通过往这些表中插入数据来添加您自己的任务和传感器。这些表有它们在下图中描述的列之间的关系。

图: Scheduler 表之间的关系


The tk_name column of the ph_task table is mapped to the task_name column of the ph_threshold table. The tk_id column of the ph_task table is mapped to the run_task_id column of the ph_run table and the alert_task_id column of the ph_alert table. The tk_sequence column of the ph_task table is mapped to the run_task_seq column of the ph_run table and the alert_task_seq column of the ph_alert table. The tk_group column of the ph_task table is mapped to the group_name column of the ph_group table.

更多有关如何使用 Scheduler 的详细信息,请参阅 GBase 8s 管理员指南