메인 콘텐츠로 건너뛰기
GitHub 소스

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): 전송되는 알림의 심각도 수준(INFO, WARN, ERROR)입니다.
  • title (str): 전송되는 알림의 제목입니다.
  • action_type (Literal[NOTIFICATION]):
반환값: SendNotification 객체를 반환합니다.

classmethod SendNotification.from_integration

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