Exemple #1
0
 private static List <Func <object> > JobCommands(ElasticClient elastic)
 {
     return(new List <Func <object> >
     {
         () => elastic.PutJob(new PutJobRequest("test_job")),
         () => elastic.ValidateJob(new ValidateJobRequest()),
         () => elastic.GetInfluencers(new GetInfluencersRequest("test_job")),
         () => elastic.GetJobs(new GetJobsRequest("test_job")),
         () => elastic.GetJobStats(new GetJobStatsRequest()),
         () => elastic.GetModelSnapshots(new GetModelSnapshotsRequest("test_job")),
         () => elastic.GetOverallBuckets(new GetOverallBucketsRequest("test_job")),
         () => elastic.FlushJob(new FlushJobRequest("test_job")),
         () => elastic.ForecastJob(new ForecastJobRequest("test_job")),
         () => elastic.GetAnomalyRecords(new GetAnomalyRecordsRequest("test_job")),
         () => elastic.GetBuckets(new GetBucketsRequest("test_job")),
         () => elastic.GetCategories(new GetCategoriesRequest("test_job")),
         () => elastic.CloseJob(new CloseJobRequest("test_job")),
         () => elastic.OpenJob(new OpenJobRequest("test_job")),
         () => elastic.DeleteJob(new DeleteJobRequest("test_job")),
     });
 }