|
216 | 216 | import org.elasticsearch.xpack.ml.job.process.normalizer.NormalizerFactory;
|
217 | 217 | import org.elasticsearch.xpack.ml.job.process.normalizer.NormalizerProcessFactory;
|
218 | 218 | import org.elasticsearch.xpack.ml.notifications.AnomalyDetectionAuditor;
|
| 219 | +import org.elasticsearch.xpack.ml.notifications.DataFrameAnalyticsAuditor; |
219 | 220 | import org.elasticsearch.xpack.ml.process.MlMemoryTracker;
|
220 | 221 | import org.elasticsearch.xpack.ml.process.NativeController;
|
221 | 222 | import org.elasticsearch.xpack.ml.process.NativeControllerHolder;
|
@@ -470,6 +471,7 @@ public Collection<Object> createComponents(Client client, ClusterService cluster
|
470 | 471 | }
|
471 | 472 |
|
472 | 473 | AnomalyDetectionAuditor anomalyDetectionAuditor = new AnomalyDetectionAuditor(client, clusterService.getNodeName());
|
| 474 | + DataFrameAnalyticsAuditor dataFrameAnalyticsAuditor = new DataFrameAnalyticsAuditor(client, clusterService.getNodeName()); |
473 | 475 | JobResultsProvider jobResultsProvider = new JobResultsProvider(client, settings);
|
474 | 476 | JobResultsPersister jobResultsPersister = new JobResultsPersister(client);
|
475 | 477 | JobDataCountsPersister jobDataCountsPersister = new JobDataCountsPersister(client);
|
@@ -592,6 +594,7 @@ public Collection<Object> createComponents(Client client, ClusterService cluster
|
592 | 594 | jobDataCountsPersister,
|
593 | 595 | datafeedManager,
|
594 | 596 | anomalyDetectionAuditor,
|
| 597 | + dataFrameAnalyticsAuditor, |
595 | 598 | new MlAssignmentNotifier(settings, anomalyDetectionAuditor, threadPool, client, clusterService),
|
596 | 599 | memoryTracker,
|
597 | 600 | analyticsProcessManager,
|
@@ -906,8 +909,12 @@ public UnaryOperator<Map<String, IndexTemplateMetaData>> getIndexTemplateMetaDat
|
906 | 909 |
|
907 | 910 | public static boolean allTemplatesInstalled(ClusterState clusterState) {
|
908 | 911 | boolean allPresent = true;
|
909 |
| - List<String> templateNames = Arrays.asList(AuditorField.NOTIFICATIONS_INDEX, MlMetaIndex.INDEX_NAME, |
910 |
| - AnomalyDetectorsIndexFields.STATE_INDEX_PREFIX, AnomalyDetectorsIndex.jobResultsIndexPrefix()); |
| 912 | + List<String> templateNames = |
| 913 | + Arrays.asList( |
| 914 | + AuditorField.NOTIFICATIONS_INDEX, |
| 915 | + MlMetaIndex.INDEX_NAME, |
| 916 | + AnomalyDetectorsIndexFields.STATE_INDEX_PREFIX, |
| 917 | + AnomalyDetectorsIndex.jobResultsIndexPrefix()); |
911 | 918 | for (String templateName : templateNames) {
|
912 | 919 | allPresent = allPresent && TemplateUtils.checkTemplateExistsAndVersionIsGTECurrentVersion(templateName, clusterState);
|
913 | 920 | }
|
|
0 commit comments