diff --git a/src/main/java/org/opensearch/ad/AnomalyDetectorExtension.java b/src/main/java/org/opensearch/ad/AnomalyDetectorExtension.java index 9312459ea..f7b8fb0f2 100644 --- a/src/main/java/org/opensearch/ad/AnomalyDetectorExtension.java +++ b/src/main/java/org/opensearch/ad/AnomalyDetectorExtension.java @@ -111,6 +111,17 @@ public OpenSearchClient getClient() { return client; } + @Override + public String getJobType() { + return AnomalyDetectorPlugin.AD_JOB_TYPE; + } + + // TODO After circular dependency of JS is removed and AnomalyDetectorJob is uncommented, import JobIndex from AnomalyDetectorJob.java. + @Override + public String getJobIndex() { + return ".opendistro-anomaly-detector-jobs"; + } + public static void main(String[] args) throws IOException { // Execute this extension by instantiating it and passing to ExtensionsRunner ExtensionsRunner.run(new AnomalyDetectorExtension());