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

[SecuritySolution] Remove chartEmbeddablesEnabled feature flag and unused code #174591

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,3 @@ export * from './details';
export * from './overview';

export * from './uncommon_processes';

export * from './kpi_hosts';

export * from './kpi_unique_ips';

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,11 @@ import {
hostDetailsSchema,
hostOverviewSchema,
hostUncommonProcessesSchema,
kpiHostsSchema,
kpiUniqueIpsSchema,
} from './hosts/hosts';
import { matrixHistogramSchema } from './matrix_histogram/matrix_histogram';
import { networkDetailsSchema } from './network/details';
import { networkDnsSchema } from './network/dns';
import { networkHttpSchema } from './network/http';
import {
networkKpiDns,
networkKpiEvents,
networkKpiTlsHandshakes,
networkKpiUniqueFlows,
networkKpiUniquePrivateIps,
} from './network/kpi';

import { networkOverviewSchema } from './network/overview';
import { networkTlsSchema } from './network/tls';
import { networkTopCountriesSchema } from './network/top_countries';
Expand All @@ -50,10 +41,8 @@ import {
} from './risk_score/risk_score';

import {
authenticationsKpiSchema,
managedUserDetailsSchema,
observedUserDetailsSchema,
totalUsersKpiSchema,
userAuthenticationsSchema,
usersSchema,
} from './users/users';
Expand All @@ -64,8 +53,6 @@ export * from './hosts/hosts';

export * from './users/users';

export * from './matrix_histogram/matrix_histogram';

export * from './network/network';

export * from './related_entities/related_entities';
Expand All @@ -84,15 +71,11 @@ export const searchStrategyRequestSchema = z.discriminatedUnion('factoryQueryTyp
firstLastSeenRequestOptionsSchema,
allHostsSchema,
hostDetailsSchema,
kpiHostsSchema,
kpiUniqueIpsSchema,
hostOverviewSchema,
hostUncommonProcessesSchema,
usersSchema,
observedUserDetailsSchema,
managedUserDetailsSchema,
totalUsersKpiSchema,
authenticationsKpiSchema,
userAuthenticationsSchema,
hostsRiskScoreRequestOptionsSchema,
usersRiskScoreRequestOptionsSchema,
Expand All @@ -107,12 +90,6 @@ export const searchStrategyRequestSchema = z.discriminatedUnion('factoryQueryTyp
networkTopCountriesSchema,
networkTopNFlowSchema,
networkUsersSchema,
networkKpiDns,
networkKpiEvents,
networkKpiTlsHandshakes,
networkKpiUniqueFlows,
networkKpiUniquePrivateIps,
matrixHistogramSchema,
threatIntelSourceRequestOptionsSchema,
eventEnrichmentRequestOptionsSchema,
]);
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@
* 2.0.
*/

import { z } from 'zod';
import { MatrixHistogramQuery } from '../model/factory_query_type';
import { inspect } from '../model/inspect';
import { requestBasicOptionsSchema } from '../model/request_basic_options';
import { runtimeMappings } from '../model/runtime_mappings';
import { timerange } from '../model/timerange';

export enum MatrixHistogramType {
authentications = 'authentications',
anomalies = 'anomalies',
Expand All @@ -20,37 +13,3 @@ export enum MatrixHistogramType {
dns = 'dns',
preview = 'preview',
}

export const matrixHistogramSchema = requestBasicOptionsSchema.extend({
histogramType: z.enum([
MatrixHistogramType.alerts,
MatrixHistogramType.anomalies,
MatrixHistogramType.authentications,
MatrixHistogramType.dns,
MatrixHistogramType.events,
MatrixHistogramType.preview,
]),
stackByField: z.string().optional(),
threshold: z
.object({
field: z.array(z.string()),
value: z.string(),
cardinality: z
.object({
field: z.array(z.string()),
value: z.string(),
})
.optional(),
})
.optional(),
inspect,
isPtrIncluded: z.boolean().default(false),
includeMissingData: z.boolean().default(true),
runtimeMappings,
timerange,
factoryQueryType: z.literal(MatrixHistogramQuery),
});

export type MatrixHistogramRequestOptionsInput = z.input<typeof matrixHistogramSchema>;

export type MatrixHistogramRequestOptions = z.infer<typeof matrixHistogramSchema>;
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,11 @@ export enum HostsQueries {
uncommonProcesses = 'uncommonProcesses',
}

export enum NetworkKpiQueries {
dns = 'networkKpiDns',
networkEvents = 'networkKpiNetworkEvents',
tlsHandshakes = 'networkKpiTlsHandshakes',
uniqueFlows = 'networkKpiUniqueFlows',
uniquePrivateIps = 'networkKpiUniquePrivateIps',
}

export enum HostsKpiQueries {
kpiHosts = 'hostsKpiHosts',
kpiUniqueIps = 'hostsKpiUniqueIps',
}

export enum UsersQueries {
observedDetails = 'observedUserDetails',
managedDetails = 'managedUserDetails',
kpiTotalUsers = 'usersKpiTotalUsers',
users = 'allUsers',
authentications = 'authentications',
kpiAuthentications = 'usersKpiAuthentications',
}

export enum NetworkQueries {
Expand All @@ -56,8 +41,6 @@ export enum CtiQueries {
dataSource = 'dataSource',
}

export const MatrixHistogramQuery = 'matrixHistogram';

export const FirstLastSeenQuery = 'firstlastseen';

export enum RelatedEntitiesQueries {
Expand All @@ -67,12 +50,9 @@ export enum RelatedEntitiesQueries {

export type FactoryQueryTypes =
| HostsQueries
| HostsKpiQueries
| UsersQueries
| NetworkQueries
| NetworkKpiQueries
| RiskQueries
| CtiQueries
| typeof MatrixHistogramQuery
| typeof FirstLastSeenQuery
| RelatedEntitiesQueries;

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ export * from './dns';

export * from './http';

export * from './kpi';

export * from './overview';

export * from './tls';
Expand Down

This file was deleted.

Loading