Skip to content

Commit

Permalink
Remove unused serialized params mapping and codec
Browse files Browse the repository at this point in the history
  • Loading branch information
weltenwort committed Jul 20, 2021
1 parent 3e675de commit 3333ff8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@
* 2.0.
*/

export * from './rule_data';
export * from './types';

This file was deleted.

14 changes: 1 addition & 13 deletions x-pack/plugins/infra/server/services/rules/rule_data_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { once } from 'lodash';
import { CoreSetup, Logger } from 'src/core/server';
import { TECHNICAL_COMPONENT_TEMPLATE_NAME } from '../../../../rule_registry/common/assets';
import { RuleRegistryPluginSetupContract } from '../../../../rule_registry/server';
import { logThresholdRuleDataNamespace } from '../../../common/alerting/logs/log_threshold';
import type { InfraFeatureId } from '../../../common/constants';
import { RuleRegistrationContext, RulesServiceStartDeps } from './types';

Expand Down Expand Up @@ -44,18 +43,7 @@ export const createRuleDataClient = ({
settings: {
number_of_shards: 1,
},
mappings: {
properties: {
[logThresholdRuleDataNamespace]: {
properties: {
serialized_params: {
type: 'keyword',
index: false,
},
},
},
},
},
mappings: {},
},
},
});
Expand Down

0 comments on commit 3333ff8

Please sign in to comment.