@@ -14,6 +14,8 @@ export const getMessages = () => {
1414 return messages ;
1515 }
1616
17+ const createJobsDocsUrl = `https://www.elastic.co/guide/en/elastic-stack-overview/{{version}}/create-jobs.html` ;
18+
1719 return ( messages = {
1820 field_not_aggregatable : {
1921 status : 'ERROR' ,
@@ -43,7 +45,7 @@ export const getMessages = () => {
4345 fieldName : 'by_field "{{fieldName}}"' ,
4446 } ,
4547 } ) ,
46- url : 'https://www.elastic.co/guide/en/kibana/{{version}}/job-tips.html #cardinality' ,
48+ url : ` ${ createJobsDocsUrl } #cardinality` ,
4749 } ,
4850 cardinality_over_field_low : {
4951 status : 'WARNING' ,
@@ -57,7 +59,7 @@ export const getMessages = () => {
5759 } ,
5860 }
5961 ) ,
60- url : 'https://www.elastic.co/guide/en/kibana/{{version}}/job-tips.html #cardinality' ,
62+ url : ` ${ createJobsDocsUrl } #cardinality` ,
6163 } ,
6264 cardinality_over_field_high : {
6365 status : 'WARNING' ,
@@ -71,7 +73,7 @@ export const getMessages = () => {
7173 } ,
7274 }
7375 ) ,
74- url : 'https://www.elastic.co/guide/en/kibana/{{version}}/job-tips.html #cardinality' ,
76+ url : ` ${ createJobsDocsUrl } #cardinality` ,
7577 } ,
7678 cardinality_partition_field : {
7779 status : 'WARNING' ,
@@ -85,7 +87,7 @@ export const getMessages = () => {
8587 } ,
8688 }
8789 ) ,
88- url : 'https://www.elastic.co/guide/en/kibana/{{version}}/job-tips.html #cardinality' ,
90+ url : ` ${ createJobsDocsUrl } #cardinality` ,
8991 } ,
9092 cardinality_model_plot_high : {
9193 status : 'WARNING' ,
@@ -155,7 +157,7 @@ export const getMessages = () => {
155157 } ,
156158 }
157159 ) ,
158- url : 'https://www.elastic.co/guide/en/kibana/{{version}}/job-tips.html #bucket-span' ,
160+ url : ` ${ createJobsDocsUrl } #bucket-span` ,
159161 } ,
160162 bucket_span_high : {
161163 status : 'INFO' ,
@@ -166,7 +168,7 @@ export const getMessages = () => {
166168 defaultMessage :
167169 'Bucket span is 1 day or more. Be aware that days are considered as UTC days, not local days.' ,
168170 } ) ,
169- url : 'https://www.elastic.co/guide/en/kibana/{{version}}/job-tips.html #bucket-span' ,
171+ url : ` ${ createJobsDocsUrl } #bucket-span` ,
170172 } ,
171173 bucket_span_valid : {
172174 status : 'SUCCESS' ,
@@ -209,21 +211,21 @@ export const getMessages = () => {
209211 partitionFieldNameParam : `'partition_field_name'` ,
210212 } ,
211213 } ) ,
212- url : 'https://www.elastic.co/guide/en/kibana/{{version}}/job-tips.html #detectors' ,
214+ url : ` ${ createJobsDocsUrl } #detectors` ,
213215 } ,
214216 detectors_empty : {
215217 status : 'ERROR' ,
216218 text : i18n . translate ( 'xpack.ml.models.jobValidation.messages.detectorsEmptyMessage' , {
217219 defaultMessage : 'No detectors were found. At least one detector must be specified.' ,
218220 } ) ,
219- url : 'https://www.elastic.co/guide/en/kibana/{{version}}/job-tips.html #detectors' ,
221+ url : ` ${ createJobsDocsUrl } #detectors` ,
220222 } ,
221223 detectors_function_empty : {
222224 status : 'ERROR' ,
223225 text : i18n . translate ( 'xpack.ml.models.jobValidation.messages.detectorsFunctionEmptyMessage' , {
224226 defaultMessage : 'One of the detector functions is empty.' ,
225227 } ) ,
226- url : 'https://www.elastic.co/guide/en/kibana/{{version}}/job-tips.html #detectors' ,
228+ url : ` ${ createJobsDocsUrl } #detectors` ,
227229 } ,
228230 detectors_function_not_empty : {
229231 status : 'SUCCESS' ,
@@ -239,7 +241,7 @@ export const getMessages = () => {
239241 defaultMessage : 'Presence of detector functions validated in all detectors.' ,
240242 }
241243 ) ,
242- url : 'https://www.elastic.co/guide/en/kibana/{{version}}/job-tips.html #detectors' ,
244+ url : ` ${ createJobsDocsUrl } #detectors` ,
243245 } ,
244246 index_fields_invalid : {
245247 status : 'ERROR' ,
@@ -260,15 +262,15 @@ export const getMessages = () => {
260262 'The job configuration includes more than 3 influencers. ' +
261263 'Consider using fewer influencers or creating multiple jobs.' ,
262264 } ) ,
263- url : 'https://www.elastic.co/guide/en/kibana /{{version}}/job-tips .html#influencers ' ,
265+ url : 'https://www.elastic.co/guide/en/machine-learning /{{version}}/ml-influencers .html' ,
264266 } ,
265267 influencer_low : {
266268 status : 'WARNING' ,
267269 text : i18n . translate ( 'xpack.ml.models.jobValidation.messages.influencerLowMessage' , {
268270 defaultMessage :
269271 'No influencers have been configured. Picking an influencer is strongly recommended.' ,
270272 } ) ,
271- url : 'https://www.elastic.co/guide/en/kibana /{{version}}/job-tips .html#influencers ' ,
273+ url : 'https://www.elastic.co/guide/en/machine-learning /{{version}}/ml-influencers .html' ,
272274 } ,
273275 influencer_low_suggestion : {
274276 status : 'WARNING' ,
@@ -280,7 +282,7 @@ export const getMessages = () => {
280282 values : { influencerSuggestion : '{{influencerSuggestion}}' } ,
281283 }
282284 ) ,
283- url : 'https://www.elastic.co/guide/en/kibana /{{version}}/job-tips .html#influencers ' ,
285+ url : 'https://www.elastic.co/guide/en/machine-learning /{{version}}/ml-influencers .html' ,
284286 } ,
285287 influencer_low_suggestions : {
286288 status : 'WARNING' ,
@@ -292,7 +294,7 @@ export const getMessages = () => {
292294 values : { influencerSuggestion : '{{influencerSuggestion}}' } ,
293295 }
294296 ) ,
295- url : 'https://www.elastic.co/guide/en/kibana /{{version}}/job-tips .html#influencers ' ,
297+ url : 'https://www.elastic.co/guide/en/machine-learning /{{version}}/ml-influencers .html' ,
296298 } ,
297299 job_id_empty : {
298300 status : 'ERROR' ,
@@ -401,7 +403,7 @@ export const getMessages = () => {
401403 text : i18n . translate ( 'xpack.ml.models.jobValidation.messages.successCardinalityMessage' , {
402404 defaultMessage : 'Cardinality of detector fields is within recommended bounds.' ,
403405 } ) ,
404- url : 'https://www.elastic.co/guide/en/kibana/{{version}}/job-tips.html #cardinality' ,
406+ url : ` ${ createJobsDocsUrl } #cardinality` ,
405407 } ,
406408 success_bucket_span : {
407409 status : 'SUCCESS' ,
@@ -412,14 +414,14 @@ export const getMessages = () => {
412414 defaultMessage : 'Format of {bucketSpan} is valid and passed validation checks.' ,
413415 values : { bucketSpan : '"{{bucketSpan}}"' } ,
414416 } ) ,
415- url : 'https://www.elastic.co/guide/en/kibana/{{version}}/job-tips.html #bucket-span' ,
417+ url : ` ${ createJobsDocsUrl } #bucket-span` ,
416418 } ,
417419 success_influencers : {
418420 status : 'SUCCESS' ,
419421 text : i18n . translate ( 'xpack.ml.models.jobValidation.messages.successInfluencersMessage' , {
420422 defaultMessage : 'Influencer configuration passed the validation checks.' ,
421423 } ) ,
422- url : 'https://www.elastic.co/guide/en/kibana /{{version}}/job-tips .html#influencers ' ,
424+ url : 'https://www.elastic.co/guide/en/machine-learning /{{version}}/ml-influencers .html' ,
423425 } ,
424426 estimated_mml_greater_than_max_mml : {
425427 status : 'WARNING' ,
@@ -446,7 +448,7 @@ export const getMessages = () => {
446448 '1MB and should be specified in bytes e.g. 10MB.' ,
447449 values : { mml : '{{mml}}' } ,
448450 } ) ,
449- url : 'https://www.elastic.co/guide/en/kibana/{{version}}/job-tips.html #model-memory-limits' ,
451+ url : ` ${ createJobsDocsUrl } #model-memory-limits` ,
450452 } ,
451453 half_estimated_mml_greater_than_mml : {
452454 status : 'WARNING' ,
@@ -458,7 +460,7 @@ export const getMessages = () => {
458460 'memory limit and will likely hit the hard limit.' ,
459461 }
460462 ) ,
461- url : 'https://www.elastic.co/guide/en/kibana/{{version}}/job-tips.html #model-memory-limits' ,
463+ url : ` ${ createJobsDocsUrl } #model-memory-limits` ,
462464 } ,
463465 estimated_mml_greater_than_mml : {
464466 status : 'INFO' ,
@@ -469,7 +471,7 @@ export const getMessages = () => {
469471 'The estimated model memory limit is greater than the model memory limit you have configured.' ,
470472 }
471473 ) ,
472- url : 'https://www.elastic.co/guide/en/kibana/{{version}}/job-tips.html #model-memory-limits' ,
474+ url : ` ${ createJobsDocsUrl } #model-memory-limits` ,
473475 } ,
474476 success_mml : {
475477 status : 'SUCCESS' ,
@@ -479,7 +481,7 @@ export const getMessages = () => {
479481 text : i18n . translate ( 'xpack.ml.models.jobValidation.messages.successMmlMessage' , {
480482 defaultMessage : 'Valid and within the estimated model memory limit.' ,
481483 } ) ,
482- url : 'https://www.elastic.co/guide/en/kibana/{{version}}/job-tips.html #model-memory-limits' ,
484+ url : ` ${ createJobsDocsUrl } #model-memory-limits` ,
483485 } ,
484486 success_time_range : {
485487 status : 'SUCCESS' ,
0 commit comments