메인 콘텐츠로 건너뛰기

class SendNotification

(Slack) 알림을 보내는 자동화 액션을 정의합니다.

방법 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 객체입니다.

클래스 메서드 SendNotification.from_integration

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