Data Virtuality Server はE メールまたはSlack 経由で通知を送ることができます。このページでは、プロシージャと構文について説明します。通知の動作に関する一般的な情報については、dedicated pageを参照してください。

SYSADMIN.enableJobEmailNotification

このプロシージャは、指定されたジョブのE メール通知を有効にします。

SYSADMIN.enableJobEmailNotification(IN jobIds string NOT NULL, IN jobStatuses string NOT NULL, IN recipients string NOT NULL, IN subjectTemplate string, IN messageTemplate string, OUT id biginteger NOT NULL RESULT)

以下のパラメータを取ります:

Parameter

Description

jobIds

IDs of the jobs for which the notification is being enabled

jobStatuses

Statuses of the jobs for which the notification is being enabled

recipients

Email addresses to which the notification will be sent

subjectTemplate

Custom template to apply to the notification. If set to null, default setting will be used

messageTemplate

Custom template to apply to the message. If set to null, default setting will be used

Example

SELECT * FROM (CALL SYSADMIN.enableJobEmailNotification(jobIds => '*', jobStatuses => 'FAILED, success', recipients => '[email protected]', subjectTemplate => 'DV Report - local subject', messageTemplate => 'DV Report - Local message - description: %description%')) a;;

SYSADMIN.disableJobEmailNotification

このプロシージャは、指定されたジョブのメール通知を無効にします。

SYSADMIN.disableJobEmailNotification(IN jobIds string NOT NULL, OUT id biginteger NOT NULL RESULT)

SYSADMIN.enableJobSlackNotification

このプロシージャは、指定されたジョブのSlack 通知を有効にします。

SYSADMIN.enableJobSlackNotification(IN jobIds string NOT NULL, IN jobStatuses string NOT NULL, IN webHookURL string, IN message string, IN excludedJobs string, IN isFormattedSlackMessage boolean, OUT id biginteger NOT NULL RESULT)

SYSADMIN.deleteSlackNotification

このプロシージャは、指定されたジョブのSlack 通知を削除します。

SYSADMIN.deleteSlackNotification(IN jobIds string NOT NULL, OUT id biginteger NOT NULL RESULT)

SYSADMIN.disableJobSlackNotification

このプロシージャは、指定されたジョブのSlack 通知を無効にします。

SYSADMIN.disableJobSlackNotification(IN jobIds string NOT NULL, OUT id biginteger NOT NULL RESULT)

SYSADMIN.sendSlackNotification

このプロシージャは、指定されたジョブに対してSlack 通知を送信します。

SYSADMIN.sendSlackNotification(IN message string NOT NULL, IN webHookURL string, IN isFormattedSlackMessage boolean)