-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Defend Workflows] Remove SO.attributes spread from Osquery (#160356)
- Loading branch information
Showing
11 changed files
with
301 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import type { SOShard } from '../../common/types'; | ||
interface PackQuery { | ||
id: string; | ||
name: string; | ||
query: string; | ||
interval: number; | ||
snapshot?: boolean; | ||
removed?: boolean; | ||
ecs_mapping?: Record<string, unknown>; | ||
} | ||
|
||
export interface PackResponseData { | ||
saved_object_id: string; | ||
name: string; | ||
description: string | undefined; | ||
queries: PackQuery[]; | ||
version?: number; | ||
enabled: boolean | undefined; | ||
created_at: string; | ||
created_by: string | undefined; | ||
updated_at: string; | ||
updated_by: string | undefined; | ||
policy_ids?: string[]; | ||
shards?: SOShard; | ||
} | ||
|
||
export interface ReadPackResponseData { | ||
saved_object_id: string; | ||
name: string; | ||
description: string | undefined; | ||
queries: Record<string, PackQuery>; | ||
version?: number; | ||
enabled: boolean | undefined; | ||
created_at: string; | ||
created_by: string | undefined; | ||
updated_at: string; | ||
updated_by: string | undefined; | ||
policy_ids?: string[]; | ||
shards: Record<string, number>; | ||
read_only?: boolean; | ||
type: string; | ||
namespaces?: string[]; | ||
migrationVersion?: Record<string, string>; | ||
managed?: boolean; | ||
coreMigrationVersion?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.