// Retrieve the collection of saved searches
var mySavedSearches = service.savedSearches();
// Specify a name and search query
var searchName = "Test Search";
// Note: Do not include the 'search' keyword for a saved search
var searchQuery = "* | head 10";
// Create the saved search
mySavedSearches.create({
name: searchName,
search: searchQuery
}, function(err, newSearch) {
console.log("A new saved search was created");
});
Do not know is that in the above function.
How do I set time and schedule?
... View more