flytekit.PagerDuty

class flytekit.PagerDuty(phases: List[int], recipients_email: List[str])[source]

This notification should be used when sending emails to the PagerDuty service.

__init__(phases: List[int], recipients_email: List[str])[source]
Parameters
  • phases (list[int]) – A required list of phases for which to fire the event. Events can only be fired for terminal phases. Phases should be as defined in: flytekit.models.core.execution.WorkflowExecutionPhase

  • recipients_email (list[str]) – A required non-empty list of recipients for the notification.

Methods

__init__(phases, recipients_email)

param list[int] phases

A required list of phases for which to fire the event. Events can only be fired for

from_flyte_idl(p)

param flyteidl.admin.common_pb2.Notification p

short_string()

rtype

Text

to_flyte_idl()

rtype

flyteidl.admin.common_pb2.Notification

verbose_string()

rtype

Text

Attributes

VALID_PHASES

email

EmailNotification

is_empty

pager_duty

PagerDutyNotification

phases

A list of phases to which users can associate the notifications.

slack

SlackNotification