Tableau Server Client (TSC)
中schedule.create
的用法。
用法
schedule.create(schedule_item)
為數據提取刷新或訂閱創建新計劃。
REST API:Create Schedule
參數
名字 | 說明 |
---|---|
schedule_item |
您要創建的計劃的設置。您需要創建schedule_item 的實例並將其傳遞給create 方法。 schedule_item 包括 interval_item ,它指定調度應該運行的頻率或間隔。請參閱 ScheduleItem 和 IntervalItem 。 |
返回
返回 schedule_item
的新實例。
異常
錯誤 | 說明 |
---|---|
Interval item must be defined. |
如果未指定 schedule_item.interval_item ,則引發異常。間隔項指定間隔是每小時、每天、每周還是每月。 |
示例
import tableauserverclient as TSC
# sign in, etc.
# Create an interval to run every 2 hours between 2:30AM and 11:00PM
hourly_interval = TSC.HourlyInterval(start_time=time(2, 30),
end_time=time(23, 0),
interval_value=2)
# Create schedule item
hourly_schedule = TSC.ScheduleItem("Hourly-Schedule", 50, TSC.ScheduleItem.Type.Extract, TSC.ScheduleItem.ExecutionOrder.Parallel, hourly_interval)
# Create schedule
hourly_schedule = server.schedules.create(hourly_schedule)
相關用法
- Python scipy.ndimage.binary_opening用法及代碼示例
- Python scipy.signal.windows.tukey用法及代碼示例
- Python scipy.stats.mood用法及代碼示例
- Python scipy.fft.ihfftn用法及代碼示例
- Python scipy.stats.normaltest用法及代碼示例
- Python scipy.ndimage.convolve1d用法及代碼示例
- Python scipy.stats.arcsine用法及代碼示例
- Python scipy.interpolate.UnivariateSpline.antiderivative用法及代碼示例
- Python scipy.linalg.hadamard用法及代碼示例
- Python scipy.special.inv_boxcox1p用法及代碼示例
- Python scipy.stats.zipfian用法及代碼示例
- Python scipy.stats.sampling.TransformedDensityRejection用法及代碼示例
- Python scipy.sparse.lil_array.nonzero用法及代碼示例
- Python scipy.signal.ZoomFFT用法及代碼示例
- Python scipy.interpolate.UnivariateSpline.derivatives用法及代碼示例
- Python scipy.sparse.dia_array.nonzero用法及代碼示例
- Python scipy.special.roots_legendre用法及代碼示例
- Python scipy.linalg.interpolative.svd用法及代碼示例
- Python scipy.ndimage.binary_fill_holes用法及代碼示例
- Python scipy.spatial.transform.Rotation.from_quat用法及代碼示例
- Python scipy.signal.oaconvolve用法及代碼示例
- Python scipy.stats.genpareto用法及代碼示例
- Python scipy.special.yn_zeros用法及代碼示例
- Python scipy.sparse.vstack用法及代碼示例
- Python scipy.spatial.distance.seuclidean用法及代碼示例
注:本文由純淨天空篩選整理自tableau.github.io大神的英文原創作品 schedule.create。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。