メインコンテンツへスキップ

class SendNotification

(Slack) 通知を送信する自動化アクションを定義します。

method SendNotification.__init__

__init__(
    integration_id: 'str',
    message: 'str' = '',
    severity: 'AlertSeverity' = <AlertSeverity.INFO: 'INFO'>,
    title: 'str' = '',
    action_type: 'Literal[NOTIFICATION]' = NOTIFICATION
) → None
引数:
  • integration_id (str): 通知の送信に使用する Slack インテグレーションの ID。
  • message (str): 送信する通知の本文。
  • severity (AlertSeverity): 送信する通知の重要度 (INFOWARNERROR) 。
  • title (str): 送信する通知のタイトル。
  • action_type (Literal[NOTIFICATION]):
戻り値: SendNotification オブジェクト。

クラスメソッド SendNotification.from_integration

from_integration(
    integration: 'SlackIntegration',
    title: 'str' = '',
    text: 'str' = '',
    level: 'AlertSeverity' = <AlertSeverity.INFO: 'INFO'>
) → Self
指定された (Slack) インテグレーションに通知を送信するアクションを定義します。