File tree 2 files changed +17
-12
lines changed
ml/src/main/java/org/elasticsearch/xpack/ml/rest/cat
src/test/resources/rest-api-spec/test/ml
2 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -92,13 +92,17 @@ private static Table getTableWithHeader() {
92
92
.startHeaders ()
93
93
// DFA config info
94
94
.addCell ("id" , TableColumnAttributeBuilder .builder ("the id" ).build ())
95
+ .addCell ("type" ,
96
+ TableColumnAttributeBuilder .builder ("analysis type" )
97
+ .setAliases ("t" )
98
+ .build ())
95
99
.addCell ("create_time" ,
96
100
TableColumnAttributeBuilder .builder ("job creation time" )
97
101
.setAliases ("ct" , "createTime" )
98
102
.build ())
99
- .addCell ("type " ,
100
- TableColumnAttributeBuilder .builder ("analysis type" )
101
- .setAliases ("t " )
103
+ .addCell ("version " ,
104
+ TableColumnAttributeBuilder .builder ("the version of Elasticsearch when the analytics was created" , false )
105
+ .setAliases ("v " )
102
106
.build ())
103
107
.addCell ("source_index" ,
104
108
TableColumnAttributeBuilder .builder ("source index" , false )
@@ -164,8 +168,9 @@ private static Table buildTable(GetDataFrameAnalyticsAction.Response getResponse
164
168
table
165
169
.startRow ()
166
170
.addCell (config .getId ())
167
- .addCell (config .getCreateTime ())
168
171
.addCell (config .getAnalysis ().getWriteableName ())
172
+ .addCell (config .getCreateTime ())
173
+ .addCell (config .getVersion ())
169
174
.addCell (String .join ("," , config .getSource ().getIndex ()))
170
175
.addCell (config .getDest ().getIndex ())
171
176
.addCell (config .getDescription ())
Original file line number Diff line number Diff line change 46
46
id : dfa-outlier-detection-job
47
47
- match :
48
48
$body : |
49
- / #id create_time type state
50
- ^ (dfa\-outlier\-detection\-job \s+ [^\s]+ \s+ outlier_detection \s+ stopped \n)+ $/
49
+ / #id type create_time state
50
+ ^ (dfa\-outlier\-detection\-job \s+ outlier_detection \s+ [^\s]+ \s+ stopped \n)+ $/
51
51
52
52
---
53
53
" Test cat data frame analytics single job with header " :
57
57
v : true
58
58
- match :
59
59
$body : |
60
- /^ id \s+ create_time \s+ type \s+ state \n
61
- (dfa\-outlier\-detection\-job \s+ [^\s]+ \s+ outlier_detection \s+ stopped \n)+ $/
60
+ /^ id \s+ type \s+ create_time \s+ state \n
61
+ (dfa\-outlier\-detection\-job \s+ outlier_detection \s+ [^\s]+ \s+ stopped \n)+ $/
62
62
63
63
---
64
64
" Test cat data frame analytics all jobs with header " :
@@ -67,10 +67,10 @@ setup:
67
67
v : true
68
68
- match :
69
69
$body : |
70
- /^ id \s+ create_time \s+ type \s+ state \n
71
- (dfa\-classification\-job \s+ [^\s]+ \s+ classification \s+ stopped \n)+
72
- (dfa\-outlier\-detection\-job \s+ [^\s]+ \s+ outlier_detection \s+ stopped \n)+
73
- (dfa\-regression\-job \s+ [^\s]+ \s+ regression \s+ stopped \n)+ $/
70
+ /^ id \s+ type \s+ create_time \s+ state \n
71
+ (dfa\-classification\-job \s+ classification \s+ [^\s]+ \s+ stopped \n)+
72
+ (dfa\-outlier\-detection\-job \s+ outlier_detection \s+ [^\s]+ \s+ stopped \n)+
73
+ (dfa\-regression\-job \s+ regression \s+ [^\s]+ \s+ stopped \n)+ $/
74
74
75
75
---
76
76
" Test cat data frame analytics all jobs with header and column selection " :
You can’t perform that action at this time.
0 commit comments