Skip to content

Commit

Permalink
[ML] Use 'anomaly-detector' in job config doc name (#36254)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkyle committed Dec 5, 2018
1 parent dfc5dd4 commit cd9282d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ public DatafeedConfig(StreamInput in) throws IOException {
* @return The ID of document the datafeed config is persisted in
*/
public static String documentId(String datafeedId) {
return "datafeed-" + datafeedId;
return TYPE + "-" + datafeedId;
}

public String getId() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public static String documentId(String jobId) {
throw new IllegalArgumentException(Messages.getMessage(Messages.JOB_CONFIG_ID_TOO_LONG, MlStrings.ID_LENGTH_LIMIT));
}

return "job-" + jobId;
return ANOMALY_DETECTOR_JOB_TYPE + "-" + jobId;
}


Expand Down

0 comments on commit cd9282d

Please sign in to comment.