메인 콘텐츠로 건너뛰기
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
인자(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) 통합으로 알림을 전송하는 작업을 정의합니다.