메인 콘텐츠로 건너뛰기
GitHub source

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
Args:
  • integration_id (str): 알림을 보내는 데 사용될 Slack 인테그레이션의 ID입니다.
  • title (str): 전송될 알림의 제목입니다.
  • message (str): 전송될 알림의 메시지 본문입니다.
  • severity (AlertSeverity): 전송될 알림의 심각도 (INFO, WARN, ERROR)입니다.
  • action_type (Literal[NOTIFICATION]):
Returns: SendNotification 오브젝트를 반환합니다.

classmethod SendNotification.from_integration

from_integration(
    integration: 'SlackIntegration',
    title: 'str' = '',
    text: 'str' = '',
    level: 'AlertSeverity' = <AlertSeverity.INFO: 'INFO'>
) → Self
지정된 (Slack) 인테그레이션으로 알림을 보내는 액션을 정의합니다.