Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Communication mechanism JS (Part 1) #761

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/main/java/org/opensearch/ad/AnomalyDetectorExtension.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down