Skip to content

Commit 0454112

Browse files
committed
[DOCS] Fixes gradle checks
1 parent 7593cfc commit 0454112

File tree

8 files changed

+58
-14
lines changed

8 files changed

+58
-14
lines changed

docs/build.gradle

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,3 +1146,42 @@ buildRestTests.setups['kibana_sample_data_ecommerce'] = '''
11461146
number_of_shards: 1
11471147
number_of_replicas: 0
11481148
'''
1149+
buildRestTests.setups['setup_logdata'] = '''
1150+
- do:
1151+
indices.create:
1152+
index: logdata
1153+
body:
1154+
settings:
1155+
number_of_shards: 1
1156+
number_of_replicas: 1
1157+
mappings:
1158+
properties:
1159+
grade:
1160+
type: byte
1161+
- do:
1162+
bulk:
1163+
index: logdata
1164+
refresh: true
1165+
body: |
1166+
{"index":{}}
1167+
{"grade": 100, "weight": 2}
1168+
{"index":{}}
1169+
{"grade": 50, "weight": 3}
1170+
'''
1171+
buildRestTests.setups['logdata_job'] = buildRestTests.setups['setup_logdata'] + '''
1172+
- do:
1173+
ml.put_data_frame_analytics:
1174+
id: "loganalytics"
1175+
body: >
1176+
{
1177+
"source": {
1178+
"index": "logdata"
1179+
},
1180+
"dest": {
1181+
"index": "logdata_out"
1182+
},
1183+
"analysis": {
1184+
"outlier_detection": {}
1185+
}
1186+
}
1187+
'''

docs/reference/ml/apis/delete-dfanalytics.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The following example deletes the `loganalytics` {dfanalytics-job}:
3939
DELETE _ml/data_frame/analytics/loganalytics
4040
--------------------------------------------------
4141
// CONSOLE
42-
// TEST
42+
// TEST[skip:TBD]
4343

4444
The API returns the following result:
4545

docs/reference/ml/apis/evaluate-dfanalytics.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,18 @@ information, see {stack-ov}/security-privileges.html[Security privileges] and
4747
[source,js]
4848
--------------------------------------------------
4949
POST _ml/data_frame/_evaluate
50-
5150
{
52-
"index": "my_analytics_dest_index"
51+
"index": "my_analytics_dest_index",
5352
"evaluation": {
5453
"binary_soft_classification": {
55-
"actual_field": "is_outlier"
54+
"actual_field": "is_outlier",
5655
"predicted_probability_field": "ml.outlier_score"
5756
}
5857
}
5958
}
6059
--------------------------------------------------
6160
// CONSOLE
62-
// TEST
61+
// TEST[skip:TBD]
6362

6463
The API returns the following results:
6564

@@ -103,3 +102,4 @@ The API returns the following results:
103102
}
104103
}
105104
----
105+
// TESTRESPONSE

docs/reference/ml/apis/get-dfanalytics-stats.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ The API returns the following information:
7272
GET _ml/data_frame/analytics/loganalytics/_stats
7373
--------------------------------------------------
7474
// CONSOLE
75-
// TEST
75+
// TEST[skip:TBD]
7676

7777
The API returns the following results:
7878

docs/reference/ml/apis/get-dfanalytics.asciidoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ The following example gets configuration information for the `loganalytics`
7272
GET _ml/data_frame/analytics/loganalytics
7373
--------------------------------------------------
7474
// CONSOLE
75-
// TEST[skip:set up kibana samples]
75+
// TEST[skip:TBD]
7676

7777
The API returns the following results:
7878

@@ -96,7 +96,9 @@ The API returns the following results:
9696
"analysis": {
9797
"outlier_detection": {}
9898
},
99-
"model_memory_limit": "1gb"
99+
"model_memory_limit": "1gb,
100+
"create_time" : 1562265491319,
101+
"version" : "8.0.0"
100102
}
101103
]
102104
}

docs/reference/ml/apis/put-dfanalytics.asciidoc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ PUT _ml/data_frame/analytics/loganalytics
9898
}
9999
--------------------------------------------------
100100
// CONSOLE
101-
// TEST
101+
// TEST[setup:setup_logdata]
102102

103103
The API returns the following result:
104104

@@ -107,7 +107,7 @@ The API returns the following result:
107107
{
108108
"id": "loganalytics",
109109
"source": {
110-
"index": "logdata",
110+
"index": ["logdata"],
111111
"query": {
112112
"match_all": {}
113113
}
@@ -119,7 +119,10 @@ The API returns the following result:
119119
"analysis": {
120120
"outlier_detection": {}
121121
},
122-
"model_memory_limit": "1gb"
122+
"model_memory_limit": "1gb",
123+
"create_time" : 1562265491319,
124+
"version" : "8.0.0"
123125
}
124126
----
125-
// TESTRESPONSE
127+
// TESTRESPONSE[s/1562265491319/$body.$_path/]
128+
// TESTRESPONSE[s/"version": "8.0.0"/"version": $body.version/]

docs/reference/ml/apis/start-dfanalytics.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The following example starts the `loganalytics` {dfanalytics-job}:
4848
POST _ml/data_frame/analytics/loganalytics/_start
4949
--------------------------------------------------
5050
// CONSOLE
51-
// TEST[skip:set up kibana samples]
51+
// TEST[skip:setup:logdata_job]
5252

5353
When the {dfanalytics-job} starts, you receive the following results:
5454

docs/reference/ml/apis/stop-dfanalytics.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The following example stops the `loganalytics` {dfanalytics-job}:
6868
POST _ml/data_frame/analytics/loganalytics/_stop
6969
--------------------------------------------------
7070
// CONSOLE
71-
// TEST[skip:set up kibana samples]
71+
// TEST[skip:TBD]
7272

7373
When the {dfanalytics-job} stops, you receive the following results:
7474

0 commit comments

Comments
 (0)