Skip to main content

class SendNotification

*,
integration_id: typing.Annotated[str, Strict(strict=True)],
text: typing.Annotated[str, BeforeValidator(func=<function default_if_none>, json_schema_input_type=PydanticUndefined)] = '',
level: typing.Annotated[wandb.automations._generated.enums.AlertSeverity, BeforeValidator(func=<function default_if_none>, json_schema_input_type=PydanticUndefined), BeforeValidator(func=<function upper_if_str>, json_schema_input_type=PydanticUndefined)] = <AlertSeverity.INFO: 'INFO'>,
title: typing.Annotated[str, BeforeValidator(func=<function default_if_none>, json_schema_input_type=PydanticUndefined)] = '',
action_type: Literal[NOTIFICATION] = NOTIFICATION

Description

Defines an automation action that sends a (Slack) notification.

Args

  • integration_id: The ID of the Slack integration that will be used to send the notification.
  • text: The message body of the sent notification.
  • level: The severity (INFO, WARN, ERROR) of the sent notification.
  • title: The title of the sent notification.
  • action_type:

Methods

method from_integration

integration: 'SlackIntegration', *,
title: 'str' = '',
text: 'str' = '',
level: 'AlertSeverity' = <AlertSeverity.INFO: 'INFO'>
Define a notification action that sends to the given (Slack) integration.
Arguments
  • integration:
  • title:
  • text:
  • level: