File tree 2 files changed +28
-0
lines changed
x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test
2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 35
35
job_id : old-cluster-job
36
36
- match : { count: 1 }
37
37
38
+ ---
39
+ " Test get old cluster job's timing stats " :
40
+ - do :
41
+ ml.get_job_stats :
42
+ job_id : old-cluster-job
43
+ - match : { jobs.0.job_id: old-cluster-job }
44
+ - match : { jobs.0.state: "closed" }
45
+ - match : { jobs.0.timing_stats.job_id: old-cluster-job }
46
+ - match : { jobs.0.timing_stats.bucket_count: 1 }
47
+ - gte : { jobs.0.timing_stats.minimum_bucket_processing_time_ms: 0.0 }
48
+ - gte : { jobs.0.timing_stats.maximum_bucket_processing_time_ms: 0.0 }
49
+ - gte : { jobs.0.timing_stats.average_bucket_processing_time_ms: 0.0 }
50
+ - gte : { jobs.0.timing_stats.exponential_average_bucket_processing_time_ms: 0.0 }
51
+
38
52
---
39
53
" Test get old cluster categorization job " :
40
54
- do :
Original file line number Diff line number Diff line change @@ -109,6 +109,20 @@ setup:
109
109
name : " .ml-state-write"
110
110
- is_true : ' '
111
111
112
+ ---
113
+ " Test get old cluster job's timing stats " :
114
+ - do :
115
+ ml.get_job_stats :
116
+ job_id : old-cluster-job
117
+ - match : { jobs.0.job_id: old-cluster-job }
118
+ - match : { jobs.0.state: "closed" }
119
+ - match : { jobs.0.timing_stats.job_id: old-cluster-job }
120
+ - match : { jobs.0.timing_stats.bucket_count: 1 }
121
+ - gte : { jobs.0.timing_stats.minimum_bucket_processing_time_ms: 0.0 }
122
+ - gte : { jobs.0.timing_stats.maximum_bucket_processing_time_ms: 0.0 }
123
+ - gte : { jobs.0.timing_stats.average_bucket_processing_time_ms: 0.0 }
124
+ - gte : { jobs.0.timing_stats.exponential_average_bucket_processing_time_ms: 0.0 }
125
+
112
126
---
113
127
" Test job with pre 6.4 rules " :
114
128
You can’t perform that action at this time.
0 commit comments