Create transformation notifications
- async AsyncCogniteClient.transformations.notifications.create(
- notification: TransformationNotification | TransformationNotificationWrite | Sequence[TransformationNotification] | Sequence[TransformationNotificationWrite],
Subscribe for notifications on the transformation errors.
- Parameters:
notification (TransformationNotification | TransformationNotificationWrite | Sequence[TransformationNotification] | Sequence[TransformationNotificationWrite]) – Notification or list of notifications to create.
- Returns:
Created notification(s)
- Return type:
Examples
Create new notifications:
>>> from cognite.client import CogniteClient >>> from cognite.client.data_classes import TransformationNotification >>> client = CogniteClient() >>> # async_client = AsyncCogniteClient() # another option >>> notifications = [TransformationNotification(transformation_id = 1, destination="my@email.com"), TransformationNotification(transformation_external_id="transformation2", destination="other@email.com"))] >>> res = client.transformations.notifications.create(notifications)