メインコンテンツへスキップ
GitHub ソース

class SendNotification

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

method SendNotification.__init__

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

classmethod SendNotification.from_integration

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