Skip to content

Commit

Permalink
attribution provider
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck committed May 3, 2021
1 parent a786c14 commit b719c0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions x-pack/plugins/ml/public/maps/anomaly_source.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import type { SourceTooltipConfig } from '../../../maps/public';
import type { IVectorSource } from '../../../maps/public';
import { getResultsForJobId } from './util';
import { UpdateAnomalySourceEditor } from './update_anomaly_source_editor';
import { string } from '../../../security_solution/public/resolver/models/schema';

export interface AnomalySourceDescriptor extends AbstractSourceDescriptor {
jobId: string;
Expand Down Expand Up @@ -246,6 +247,9 @@ export class AnomalySource implements IVectorSource {

// -----------------
// API ML probably can ignore
getAttributionProvider() {
return null;
}

getIndexPatternIds(): string[] {
// IGNORE: This is only relevant if your source is backed by an index-pattern
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export class UpdateAnomalySourceEditor extends Component<Props, State> {
typicalActual={this.props.typicalActual}
/>
</EuiPanel>
<EuiSpacer size="s" />
</Fragment>
);
}
Expand Down

0 comments on commit b719c0e

Please sign in to comment.