-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathforecast.yml
41 lines (41 loc) · 918 Bytes
/
forecast.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
requires:
stack: true
serverless: false
---
setup:
- do:
ml.put_job:
job_id: forecast-job
body: >
{
"description":"A forecast job",
"analysis_config" : {
"detectors" :[{"function":"metric","field_name":"responsetime","by_field_name":"airline"}]
},
"data_description" : {
"format":"xcontent"
}
}
---
teardown:
- do:
ml.delete_job:
job_id: forecast-job
---
"forecast":
- do:
catch: /status_exception/
ml.forecast:
job_id: "forecast-job"
- do:
ml.delete_forecast:
job_id: delete-forecast-job
forecast_id: _all
allow_no_forecasts: true
- match: { acknowledged: true }
- do:
ml.delete_forecast:
job_id: delete-forecast-job
allow_no_forecasts: true
- match: { acknowledged: true }