-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Security Solutions] (Phase 1) Adds an application cache called metrics entities and integrates it within Security Solutions behind a feature flag #96446
Changes from 66 commits
dcd3276
9f84e84
f93e293
5922ead
66c6e21
33ef3cf
02d2acd
f55e528
9f28076
fed2036
ed2ceb6
ef1ccb8
04d22ba
179d6d1
d4652ff
5e90728
0a28e26
0a99e53
45465a8
6d29a66
458e7e8
408d0eb
ec09f42
19eed74
1d07694
2cf992e
a70b3c2
046edc0
edfbb5b
dae2cac
5276c2d
67212fa
c31938b
2fe2e89
1424d13
ec3d3eb
8770760
e1f52e7
34574be
42fb51c
8126a27
76725d3
43fe201
2565d9f
544deed
3493b94
09fb2eb
c05efb1
4c792a9
aca1449
9ab9aec
4845c9c
ae5bfea
a63b3f1
a7f8d2d
7e25bc1
a16f17e
71b4f96
4ad83a3
01fb63c
a7f478e
bd49ce3
06570a1
8e717f8
075ff1f
06d87df
2270709
d5ab054
8c3e322
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
{ | ||
"id": "metricsEntities", | ||
"client": { | ||
"classes": [], | ||
"functions": [], | ||
"interfaces": [], | ||
"enums": [], | ||
"misc": [], | ||
"objects": [] | ||
}, | ||
"server": { | ||
"classes": [], | ||
"functions": [], | ||
"interfaces": [], | ||
"enums": [], | ||
"misc": [], | ||
"objects": [], | ||
"setup": { | ||
"id": "def-server.MetricsEntitiesPluginSetup", | ||
"type": "Interface", | ||
"label": "MetricsEntitiesPluginSetup", | ||
"description": [], | ||
"tags": [], | ||
"children": [ | ||
{ | ||
"tags": [], | ||
"id": "def-server.MetricsEntitiesPluginSetup.getMetricsEntitiesClient", | ||
"type": "Function", | ||
"label": "getMetricsEntitiesClient", | ||
"description": [], | ||
"source": { | ||
"path": "x-pack/plugins/metrics_entities/server/types.ts", | ||
"lineNumber": 15 | ||
}, | ||
"signature": [ | ||
"GetMetricsEntitiesClientType" | ||
] | ||
} | ||
], | ||
"source": { | ||
"path": "x-pack/plugins/metrics_entities/server/types.ts", | ||
"lineNumber": 14 | ||
}, | ||
"lifecycle": "setup", | ||
"initialIsOpen": true | ||
}, | ||
"start": { | ||
"id": "def-server.MetricsEntitiesPluginStart", | ||
"type": "Type", | ||
"label": "MetricsEntitiesPluginStart", | ||
"tags": [], | ||
"description": [], | ||
"source": { | ||
"path": "x-pack/plugins/metrics_entities/server/types.ts", | ||
"lineNumber": 18 | ||
}, | ||
"signature": [ | ||
"void" | ||
], | ||
"lifecycle": "start", | ||
"initialIsOpen": true | ||
} | ||
}, | ||
"common": { | ||
"classes": [], | ||
"functions": [], | ||
"interfaces": [], | ||
"enums": [], | ||
"misc": [ | ||
{ | ||
"tags": [], | ||
"id": "def-common.ELASTIC_NAME", | ||
"type": "string", | ||
"label": "ELASTIC_NAME", | ||
"description": [ | ||
"\nGlobal prefix for all the transform jobs" | ||
], | ||
"source": { | ||
"path": "x-pack/plugins/metrics_entities/common/constants.ts", | ||
"lineNumber": 21 | ||
}, | ||
"signature": [ | ||
"\"estc\"" | ||
], | ||
"initialIsOpen": false | ||
}, | ||
{ | ||
"tags": [], | ||
"id": "def-common.METRICS_ENTITIES_TRANSFORMS", | ||
"type": "string", | ||
"label": "METRICS_ENTITIES_TRANSFORMS", | ||
"description": [ | ||
"\nTransforms route" | ||
], | ||
"source": { | ||
"path": "x-pack/plugins/metrics_entities/common/constants.ts", | ||
"lineNumber": 16 | ||
}, | ||
"initialIsOpen": false | ||
}, | ||
{ | ||
"tags": [], | ||
"id": "def-common.METRICS_ENTITIES_URL", | ||
"type": "string", | ||
"label": "METRICS_ENTITIES_URL", | ||
"description": [ | ||
"\nBase route" | ||
], | ||
"source": { | ||
"path": "x-pack/plugins/metrics_entities/common/constants.ts", | ||
"lineNumber": 11 | ||
}, | ||
"signature": [ | ||
"\"/api/metrics_entities\"" | ||
], | ||
"initialIsOpen": false | ||
}, | ||
{ | ||
"tags": [], | ||
"id": "def-common.PLUGIN_ID", | ||
"type": "string", | ||
"label": "PLUGIN_ID", | ||
"description": [], | ||
"source": { | ||
"path": "x-pack/plugins/metrics_entities/common/index.ts", | ||
"lineNumber": 8 | ||
}, | ||
"signature": [ | ||
"\"metricsEntities\"" | ||
], | ||
"initialIsOpen": false | ||
}, | ||
{ | ||
"tags": [], | ||
"id": "def-common.PLUGIN_NAME", | ||
"type": "string", | ||
"label": "PLUGIN_NAME", | ||
"description": [], | ||
"source": { | ||
"path": "x-pack/plugins/metrics_entities/common/index.ts", | ||
"lineNumber": 9 | ||
}, | ||
"signature": [ | ||
"\"metrics_entities\"" | ||
], | ||
"initialIsOpen": false | ||
} | ||
], | ||
"objects": [] | ||
} | ||
} | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
id: kibMetricsEntitiesPluginApi | ||
slug: /kibana-dev-docs/metricsEntitiesPluginApi | ||
title: metricsEntities | ||
image: https://source.unsplash.com/400x175/?github | ||
summary: API docs for the metricsEntities plugin | ||
date: 2020-11-16 | ||
tags: ['contributor', 'dev', 'apidocs', 'kibana', 'metricsEntities'] | ||
warning: This document is auto-generated and is meant to be viewed inside our experimental, new docs system. Reach out in #docs-engineering for more info. | ||
--- | ||
|
||
import metricsEntitiesObj from './metrics_entities.json'; | ||
|
||
## Server | ||
|
||
### Setup | ||
<DocDefinitionList data={[metricsEntitiesObj.server.setup]}/> | ||
|
||
### Start | ||
<DocDefinitionList data={[metricsEntitiesObj.server.start]}/> | ||
|
||
## Common | ||
|
||
### Consts, variables and types | ||
<DocDefinitionList data={metricsEntitiesObj.common.misc}/> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# metrics_entities | ||
|
||
Metrics entities where you can add transforms for metrics and entities. | ||
|
||
The transform jobs are on the file system as: | ||
- modules (The different logical pieces) | ||
|
||
When you create a "group" of transforms you can create them using an optional prefix to separate things based on queries, security concerns, or different Kibana spaces. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will want to expand upon setup instructions and detail what feature flags need to be flipped to enable. Also will want to add a section for disabling and detailing any manually steps necessary to perform cleanup of any lingering transforms (since those aren't cleaned up automatically on disable). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Totally agree, adding it to my current TODO list. Might not happen in this PR right now but should happen as I flush out those details. |
||
--- | ||
|
||
## Scripts | ||
|
||
TODO: Add a note about scripts, setup, and running | ||
|
||
## Development | ||
|
||
TODO: Add how to develop here | ||
|
||
## TODO List | ||
- Add these properties to the route which are: | ||
- disable_transforms, | ||
- pipeline, | ||
- Change the REST routes on post to change the indexes for whichever indexes you want | ||
- Unit tests to ensure the data of the mapping.json includes the correct fields such as | ||
_meta, at least one alias, a mapping section, etc... | ||
- Add text/keyword and other things to the mappings (not just keyword maybe?) ... At least review them one more time | ||
- Module (server/modules) templating with variables and then push those variables down? (Maybe we don't need them) | ||
- Add feature flag and have it turned off | ||
- Add lib/modules folder with the transforms inside of it | ||
- Add the REST Kibana security based tags if needed and push those to any plugins using this plugin. Something like: tags: ['access:metricsEntities-read'] and ['access:metricsEntities-all'], | ||
- Add schema validation choosing some schema library (io-ts or Kibana Schema or ... ) | ||
- Add unit tests | ||
- Add e2e tests | ||
- Move ui code into this plugin from security solutions? (maybe?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE: This was auto generated running some tooling, so I am going to take a stab at checking it in! :-)
It looked right as there are other docs in this folder.