Skip to content

Commit b111d8a

Browse files
authored
Fix the (still hardcoded) value of 'algorithm' for ML jobs (#816)
Eventually we will make this configurable with validation in the TF schema but since there's only one algorithm right now this just fixes the hardcoded value.
1 parent 85173e7 commit b111d8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/resources/machinelearning/resource_job.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ func makeMLJob(d *schema.ResourceData, meta interface{}) (mlapi.Job, error) {
194194
DatasourceType: d.Get("datasource_type").(string),
195195
QueryParams: d.Get("query_params").(map[string]interface{}),
196196
Interval: uint(d.Get("interval").(int)),
197-
Algorithm: "Prophet",
197+
Algorithm: "grafana_prophet_1_0_1",
198198
HyperParams: d.Get("hyper_params").(map[string]interface{}),
199199
TrainingWindow: uint(d.Get("training_window").(int)),
200200
TrainingFrequency: uint(24 * time.Hour / time.Second),

0 commit comments

Comments
 (0)