Create transformation Schedules
- async AsyncCogniteClient.transformations.schedules.create(
- schedule: TransformationSchedule | TransformationScheduleWrite | Sequence[TransformationSchedule] | Sequence[TransformationScheduleWrite],
Schedule the specified transformation with the specified configuration(s).
- Parameters:
schedule (TransformationSchedule | TransformationScheduleWrite | Sequence[TransformationSchedule] | Sequence[TransformationScheduleWrite]) – Configuration or list of configurations of the schedules to create.
- Returns:
Created schedule(s)
- Return type:
Examples
Create new schedules:
>>> from cognite.client import CogniteClient >>> from cognite.client.data_classes import TransformationScheduleWrite >>> client = CogniteClient() >>> # async_client = AsyncCogniteClient() # another option >>> schedules = [TransformationScheduleWrite(id = 1, interval = "0 * * * *"), TransformationScheduleWrite(external_id="transformation2", interval = "5 * * * *"))] >>> res = client.transformations.schedules.create(schedules)