flytekit.PagerDuty

class flytekit.PagerDuty(phases, recipients_email)[source]

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

from flytekit.models.core.execution import WorkflowExecutionPhase

PagerDuty(phases=[WorkflowExecutionPhase.SUCCEEDED], recipients_email=["my-team@email.com"])
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

classmethod from_flyte_idl(p)
Parameters

p (flyteidl.admin.common_pb2.Notification) –

Return type

Notification

short_string()
Return type

Text

to_flyte_idl()
Return type

flyteidl.admin.common_pb2.Notification

verbose_string()
Return type

Text

Attributes

VALID_PHASES = {4, 6, 7, 8}
email

EmailNotification

Type

rtype

is_empty
pager_duty

PagerDutyNotification

Type

rtype

phases

A list of phases to which users can associate the notifications. :rtype: list[int]

slack

SlackNotification

Type

rtype