Skip to main content

class NewAutomation

*,
name: str | None = None,
description: str | None = None,
enabled: bool | None = None,
event: Optional[Annotated[wandb.automations.events.OnLinkArtifact | wandb.automations.events.OnAddArtifactAlias | wandb.automations.events.OnAddArtifactTag | wandb.automations.events.OnRemoveArtifactTag | wandb.automations.events.OnAddCollectionTag | wandb.automations.events.OnRemoveCollectionTag | wandb.automations.events.OnCreateArtifact | wandb.automations.events.OnUnlinkArtifact | wandb.automations.events.OnRunMetric | wandb.automations.events.OnRunState, FieldInfo(annotation=NoneType, required=True, discriminator='event_type')]] = None,
action: Optional[Annotated[wandb.automations.actions.SendNotification | wandb.automations.actions.SendWebhook | wandb.automations.actions.DoNothing, BeforeValidator(func=<function parse_input_action>, json_schema_input_type=PydanticUndefined), FieldInfo(annotation=NoneType, required=True, discriminator='action_type')]] = None

Description

A new automation to be created.

Args

  • name: The name of this automation.
  • description: An optional description of this automation.
  • enabled: Whether this automation is enabled. Only enabled automations will trigger.
  • event: The event that will trigger this automation.
  • action: The action that will execute when this automation is triggered.

Properties

property scope

The scope in which the triggering event must occur.