[ML] Give the jobs in index_layout.yaml more meaningful names (elastic/x-pack-elasticsearch#1047)

For debugging the CI failures

Original commit: elastic/x-pack-elasticsearch@5f6a3d1c6d
This commit is contained in:
David Kyle 2017-04-11 14:56:52 +01:00
parent e1aac25f2d
commit f11df2c0c7
1 changed files with 39 additions and 39 deletions

View File

@ -3,10 +3,10 @@
- do: - do:
xpack.ml.put_job: xpack.ml.put_job:
job_id: farequote job_id: index-layout-job
body: > body: >
{ {
"job_id":"farequote", "job_id":"index-layout-job",
"description":"Analysis of response time by airline", "description":"Analysis of response time by airline",
"analysis_config" : { "analysis_config" : {
"bucket_span": "1h", "bucket_span": "1h",
@ -18,15 +18,15 @@
"time_format":"epoch" "time_format":"epoch"
} }
} }
- match: { job_id: "farequote" } - match: { job_id: "index-layout-job" }
- do: - do:
xpack.ml.put_job: xpack.ml.put_job:
job_id: farequote2 job_id: index-layout-job2
body: > body: >
{ {
"job_id":"farequote2", "job_id":"index-layout-job2",
"description":"Analysis of response time by airline", "description":"Analysis of response time by airline",
"analysis_config" : { "analysis_config" : {
"bucket_span": "1h", "bucket_span": "1h",
@ -38,26 +38,26 @@
"time_format":"epoch" "time_format":"epoch"
} }
} }
- match: { job_id: "farequote2" } - match: { job_id: "index-layout-job2" }
- do: - do:
xpack.ml.open_job: xpack.ml.open_job:
job_id: farequote job_id: index-layout-job
- do: - do:
xpack.ml.open_job: xpack.ml.open_job:
job_id: farequote2 job_id: index-layout-job2
- do: - do:
xpack.ml.post_data: xpack.ml.post_data:
job_id: farequote job_id: index-layout-job
body: > body: >
{"airline":"AAL","responsetime":"132.2046","sourcetype":"farequote","time":"1403481600"} {"airline":"AAL","responsetime":"132.2046","sourcetype":"farequote","time":"1403481600"}
{"airline":"JZA","responsetime":"990.4628","sourcetype":"farequote","time":"1403481700"} {"airline":"JZA","responsetime":"990.4628","sourcetype":"farequote","time":"1403481700"}
- do: - do:
xpack.ml.post_data: xpack.ml.post_data:
job_id: farequote2 job_id: index-layout-job2
body: > body: >
{"airline":"AAL","responsetime":"132.2046","sourcetype":"farequote","time":"1403481600"} {"airline":"AAL","responsetime":"132.2046","sourcetype":"farequote","time":"1403481600"}
{"airline":"JZA","responsetime":"990.4628","sourcetype":"farequote","time":"1403481700"} {"airline":"JZA","responsetime":"990.4628","sourcetype":"farequote","time":"1403481700"}
@ -65,23 +65,23 @@
- do: - do:
xpack.ml.flush_job: xpack.ml.flush_job:
job_id: farequote job_id: index-layout-job
- match: { flushed: true } - match: { flushed: true }
- do: - do:
xpack.ml.flush_job: xpack.ml.flush_job:
job_id: farequote2 job_id: index-layout-job2
- match: { flushed: true } - match: { flushed: true }
- do: - do:
xpack.ml.close_job: xpack.ml.close_job:
job_id: farequote job_id: index-layout-job
- match: { closed: true } - match: { closed: true }
- do: - do:
xpack.ml.close_job: xpack.ml.close_job:
job_id: farequote2 job_id: index-layout-job2
- match: { closed: true } - match: { closed: true }
- do: - do:
@ -91,7 +91,7 @@
- do: - do:
indices.exists: indices.exists:
index: ".ml-anomalies-farequote" index: ".ml-anomalies-index-layout-job"
- is_true: '' - is_true: ''
- do: - do:
@ -109,13 +109,13 @@
- do: - do:
count: count:
index: .ml-anomalies-farequote index: .ml-anomalies-index-layout-job
body: body:
query: query:
constant_score: constant_score:
filter: filter:
term: term:
job_id: farequote job_id: index-layout-job
- match: {count: 4} - match: {count: 4}
@ -127,19 +127,19 @@
constant_score: constant_score:
filter: filter:
term: term:
job_id: farequote job_id: index-layout-job
- match: {count: 4} - match: {count: 4}
- do: - do:
count: count:
index: .ml-anomalies-farequote2 index: .ml-anomalies-index-layout-job2
body: body:
query: query:
constant_score: constant_score:
filter: filter:
term: term:
job_id: farequote2 job_id: index-layout-job2
- match: {count: 4} - match: {count: 4}
@ -151,7 +151,7 @@
constant_score: constant_score:
filter: filter:
term: term:
job_id: farequote2 job_id: index-layout-job2
- match: {count: 4} - match: {count: 4}
# Put some categorizer state # Put some categorizer state
@ -159,7 +159,7 @@
index: index:
index: .ml-state index: .ml-state
type: categorizer_state type: categorizer_state
id: farequote2#1 id: index-layout-job2#1
body: body:
key: value key: value
@ -167,13 +167,13 @@
index: index:
index: .ml-state index: .ml-state
type: categorizer_state type: categorizer_state
id: farequote2#2 id: index-layout-job2#2
body: body:
key: value key: value
- do: - do:
xpack.ml.delete_job: xpack.ml.delete_job:
job_id: "farequote" job_id: "index-layout-job"
- match: { acknowledged: true } - match: { acknowledged: true }
- do: - do:
@ -197,7 +197,7 @@
constant_score: constant_score:
filter: filter:
term: term:
job_id: farequote job_id: index-layout-job
- match: {count: 0} - match: {count: 0}
- do: - do:
@ -208,13 +208,13 @@
- do: - do:
count: count:
index: .ml-anomalies-farequote2 index: .ml-anomalies-index-layout-job2
body: body:
query: query:
constant_score: constant_score:
filter: filter:
term: term:
job_id: farequote2 job_id: index-layout-job2
- match: {count: 4} - match: {count: 4}
@ -226,13 +226,13 @@
constant_score: constant_score:
filter: filter:
term: term:
job_id: farequote2 job_id: index-layout-job2
- match: {count: 4} - match: {count: 4}
- do: - do:
xpack.ml.delete_job: xpack.ml.delete_job:
job_id: "farequote2" job_id: "index-layout-job2"
- match: { acknowledged: true } - match: { acknowledged: true }
- do: - do:
@ -242,12 +242,12 @@
- do: - do:
indices.exists: indices.exists:
index: ".ml-anomalies-farequote" index: ".ml-anomalies-index-layout-job"
- is_false: '' - is_false: ''
- do: - do:
indices.exists: indices.exists:
index: ".ml-anomalies-farequote2" index: ".ml-anomalies-index-layout-job2"
- is_false: '' - is_false: ''
- do: - do:
@ -269,10 +269,10 @@
- do: - do:
xpack.ml.put_job: xpack.ml.put_job:
job_id: farequote job_id: index-layout-job
body: > body: >
{ {
"job_id":"farequote", "job_id":"index-layout-job",
"description":"Analysis of response time by airline", "description":"Analysis of response time by airline",
"analysis_config" : { "analysis_config" : {
"bucket_span": "1h", "bucket_span": "1h",
@ -284,15 +284,15 @@
"time_format":"epoch" "time_format":"epoch"
} }
} }
- match: { job_id: "farequote" } - match: { job_id: "index-layout-job" }
- do: - do:
xpack.ml.open_job: xpack.ml.open_job:
job_id: farequote job_id: index-layout-job
- do: - do:
xpack.ml.post_data: xpack.ml.post_data:
job_id: farequote job_id: index-layout-job
body: > body: >
{"airline":"AAL","responsetime":"132.2046","sourcetype":"farequote","time":"1403481600"} {"airline":"AAL","responsetime":"132.2046","sourcetype":"farequote","time":"1403481600"}
{"airline":"JZA","responsetime":"990.4628","sourcetype":"farequote","time":"1403481700"} {"airline":"JZA","responsetime":"990.4628","sourcetype":"farequote","time":"1403481700"}
@ -329,17 +329,17 @@
- do: - do:
xpack.ml.flush_job: xpack.ml.flush_job:
job_id: farequote job_id: index-layout-job
- match: { flushed: true } - match: { flushed: true }
- do: - do:
xpack.ml.close_job: xpack.ml.close_job:
job_id: farequote job_id: index-layout-job
- match: { closed: true } - match: { closed: true }
- do: - do:
xpack.ml.delete_job: xpack.ml.delete_job:
job_id: "farequote" job_id: "index-layout-job"
- match: { acknowledged: true } - match: { acknowledged: true }
- do: - do: