本文整理汇总了Python中splunk.models.saved_search.SavedSearch.ui_schedule方法的典型用法代码示例。如果您正苦于以下问题:Python SavedSearch.ui_schedule方法的具体用法?Python SavedSearch.ui_schedule怎么用?Python SavedSearch.ui_schedule使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类splunk.models.saved_search.SavedSearch
的用法示例。
在下文中一共展示了SavedSearch.ui_schedule方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: step1_new
# 需要导入模块: from splunk.models.saved_search import SavedSearch [as 别名]
# 或者: from splunk.models.saved_search.SavedSearch import ui_schedule [as 别名]
def step1_new(self, app, step, action, **params):
owner = splunk.auth.getCurrentUser()["name"]
params["name"] = params.get("name", "")
saved_search = SavedSearch(app, owner, **params)
saved_search.ui_howoften = "realtime"
saved_search.ui_schedule = None
saved_search.ui_rolling_value = "1"
saved_search.ui_rolling_unit = None
return self.render_template("alertswizardv2/step1_new.html", dict(app=app, saved_search=saved_search))
示例2: step1_new
# 需要导入模块: from splunk.models.saved_search import SavedSearch [as 别名]
# 或者: from splunk.models.saved_search.SavedSearch import ui_schedule [as 别名]
def step1_new(self, app, step, action, **params):
owner = splunk.auth.getCurrentUser()['name']
params['name'] = params.get('name', '')
saved_search = SavedSearch(app, owner, **params)
saved_search.ui_schedule = None
return self.render_template('scheduledigestwizard/step1_new.html', dict(app=app, saved_search=saved_search))