-
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
[RAC] Populate Observability alerts table with data from alerts indices #96692
Merged
dgieselaar
merged 29 commits into
elastic:master
from
dgieselaar:observability-rule-apis
Apr 15, 2021
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
2a2e9bc
Set up Observability rule APIs
dgieselaar 4b585f7
Populate alerts table with data from API
dgieselaar 4401d37
Move field map types/utils to common
dgieselaar 383eb78
Format reason/link in alert type
dgieselaar 0a60956
Format reason/link in alert type
dgieselaar d95d3d8
Merge branch 'master' of github.com:elastic/kibana into observability…
dgieselaar a30fc84
Fix issues with tsconfigs
dgieselaar e72e9b4
Storybook cleanup for example alerts
smith f5bb6f9
Store/display evaluations, add active/recovered badge
dgieselaar 6dcf396
Some more story fixes
smith 54d851a
Merge branch 'master' of github.com:elastic/kibana into observability…
dgieselaar 46cda90
Decode rule data with type from owning registry
dgieselaar ab29974
Merge branch 'master' of github.com:elastic/kibana into observability…
dgieselaar f6e7997
Use transaction type/environment in link to app
dgieselaar c3f63c4
Fix type issues
dgieselaar 075a3c7
Merge branch 'master' of github.com:elastic/kibana into observability…
dgieselaar 2832e18
Merge branch 'observability-rule-apis' of github.com:dgieselaar/kiban…
dgieselaar b578fa7
Fix API tests
dgieselaar e72de87
Merge branch 'master' of github.com:elastic/kibana into observability…
dgieselaar 6089beb
Undo changes in task_runner.ts
dgieselaar 728fc3f
Remove Mutable<> wrappers for field map
dgieselaar 5c190a8
Remove logger.debug calls in alerting es client
dgieselaar d745a25
Add API test for recovery of alerts
dgieselaar ba9caea
Merge branch 'master' of github.com:elastic/kibana into observability…
dgieselaar 79a98b9
Revert changes to src/core/server/http/router
dgieselaar 4a5d7bb
Use type imports where possible
dgieselaar 1b0c9c1
Update limits
dgieselaar 110a762
Set limit to 100kb
dgieselaar 64b637c
Merge branch 'master' of github.com:elastic/kibana into observability…
dgieselaar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
5 changes: 3 additions & 2 deletions
5
...ntime_types/iso_to_epoch_rt/index.test.ts → ...s-utils/src/iso_to_epoch_rt/index.test.ts
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
5 changes: 3 additions & 2 deletions
5
...mmon/runtime_types/to_boolean_rt/index.ts → ...bn-io-ts-utils/src/to_boolean_rt/index.ts
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
5 changes: 3 additions & 2 deletions
5
...ommon/runtime_types/to_number_rt/index.ts → ...kbn-io-ts-utils/src/to_number_rt/index.ts
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,25 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
const plainApmRuleRegistrySettings = { | ||
name: 'apm', | ||
fieldMap: { | ||
'service.environment': { | ||
type: 'keyword', | ||
}, | ||
'transaction.type': { | ||
type: 'keyword', | ||
}, | ||
'processor.event': { | ||
type: 'keyword', | ||
}, | ||
}, | ||
} as const; | ||
|
||
type APMRuleRegistrySettings = typeof plainApmRuleRegistrySettings; | ||
|
||
export const apmRuleRegistrySettings: APMRuleRegistrySettings = plainApmRuleRegistrySettings; |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I know this is a bit late, but shouldn't this be near 0 since there's no actual UI yet?
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.
There isn't any UI, but there is the rule registry setup/and start methods and the RuleRegistry class is exported. The bundle includes some io/fp-ts utils and the ECS field mapping, which takes up most of the space.
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.
It's down to 10kb now.