Commit graph

3863 commits

Author SHA1 Message Date
Lisa Cawley
c3fba606d2
[DOCS] Add get case comments API (#128694) 2022-03-29 10:07:51 -07:00
István Zoltán Szabó
5efb4b1cf6
[DOCS] Adds GET case API docs (#128606) 2022-03-29 17:22:27 +02:00
Sandra G
bc6a6e444f
[Stack Monitoring] add monitoring.ui.elasticsearch.serviceAccountToken to docs (#128488)
* monitoring.ui.elasticsearch.serviceAccountToken to docs

* update description

* update

* update to make clearer

* Update docs/settings/monitoring-settings.asciidoc

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>

* Update docs/settings/monitoring-settings.asciidoc

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2022-03-29 09:04:56 -04:00
Aleh Zasypkin
aa4ce92457
Update API keys docs to remove unnecessary API keys service section. (#128464) 2022-03-29 10:44:00 +02:00
Devon Thomson
c0a8bfaf37
[Controls] Do not Close Flyouts on Outside Click (#128548)
Do not close on outside click for controls flyouts
2022-03-28 11:26:23 -04:00
Yaroslav Kuznietsov
072fe63c0b
[XY] Expression chart. (#127150)
* added xy plugin.

* Added expressionXY limits.

* Added xy expression functions to the expression_xy plugin.

* Moved xy to a separate plugin.

* Fixed bugs, caused by the refactoring process.

* Fixed lens snapshots.

* Removed new line.

* Fixed xy_chart tests.

* Added lazy loading for xy chart.

* Fixed xy chart test.

* Fixed broken chart selectors.

* Fixed dashboard tests.

* dashboard test fixed.

* Fixed heatmap vis.

* Smokescreen test fixed.

* more fixes.

* async dashboard tests fixed.

* Fixed xy smokescreen tests selectors.

* fixed show_underlying_data tests.

* Updated snapshots.

* updated limits.

* Fixed more selectors

* Fixed persistent context test.

* Fixed some more test at ml.

* Fixed types and imports

* Fixed handlers.inspectorAdapters.tables.logDatatable

* Fixed logDatatable

* Translations fixed.

* Fixed "Visualize App ... cleans filters and query" test.

* Fixed "lens disable auto-apply tests" test.

* Updated dashboard tests.

* Fixed translations.

* Expression tests fixed.

* Cleaned up expression_xy.

* cleaned up lens xy_visualization.

* Moved XY state types to lens.

* Update src/plugins/chart_expressions/expression_xy/README.md

Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>

* [CI] Auto-commit changed files from 'node scripts/build_plugin_list_docs'

* Removed yConfig from *Layers types

* Removed not used utils and styles.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
2022-03-28 18:17:36 +03:00
Ersin Erdal
c9aad65b67
[Alerting] Remove defaultRuleTaskTimeout and set ruleType specific timeout from kibana.yml (#128294)
Read ruleTaskTimeout from kibana.yml
2022-03-28 08:36:30 +02:00
Ying Mao
f77a18902b
[Event Log] Add consumer, rule_type_id and space_id to event log documents (#127804)
* Updating README

* Adding consumer to event log schema

* Adding consumer to event log alerting provider docs

* Fixing checks

* Adding kibana.alert.rule.rule_type_id to event log schema

* Adding kibana.alert.rule.rule_type_id to alerting event log docs

* Adding explicit space id to alerting event log docs

* Passing consumer and rule type id to action event log docs

* Refactor

* Fixing tests

* Updating functional tests

* Storing consumer in rule task params and using that in task runner

* Fixing functional test

* Fixing functional test

* Fixing functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-24 14:53:44 -04:00
Zacqary Adam Xeper
d102213d1d
[RAM] Add Snooze UI and Unsnooze API (#128214)
* Add Snooze UI and Unsnooze API

* Add unsnooze writeoperation

* Add unsnooze API tests

* Add UI tests

* Add tooltip and enable canceling snooze when clicking Enabled

* Fix rulesClient mock

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-24 12:59:46 -04:00
Lisa Cawley
5fb5b1cdd7
[DOCS] Delete cases and comments APIs (#128329) 2022-03-24 08:47:04 -07:00
Marta Bondyra
2f9e6eeacf
[Lens] Manual Annotations (#126456)
* Add event annotation service structure

* adding annotation layer to lens. passing event annotation service

* simplify initial Dimensions

* add annotations to lens

* no datasource layer

* group the annotations into numerical icons

* color icons in tooltip, add the annotation icon, fix date interval bug

* display old time axis for annotations

* error in annotation dimension when date histogram is removed

* refactor: use the same methods for annotations and reference lines

* wip

* only check activeData for dataLayers

* added new icons for annotations

* refactor icons

* uniqueLabels

* unique Labels

* diff config from args

* change timestamp format

* added expression event_annotation_group

* names refactor

* ea service adding help descriptions

* rotate icon

* added tests

* fix button problem

* dnd problem

* dnd fix

* tests for dimension trigger

* tests for unique labels

* [CI] Auto-commit changed files from 'node scripts/build_plugin_list_docs'

* type

* add new button test

* remove noDatasource from config (only needed when initializing a layer or dimension in getSupportedLayers)

* addressing Joe's and Michael comments

* remove hexagon and square, address Stratoula's feedback

* stroke for icons & icon fill

* fix tests

* fix small things

* align the set with tsvb

* align IconSelect

* fix i18nrc

* Update src/plugins/event_annotation/public/event_annotation_service/index.tsx

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>

* refactor empty button

* CR

* date cr

* remove DimensionEditorSection

* change to emptyShade for traingle fill

* Update x-pack/plugins/lens/public/app_plugin/app.scss

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2022-03-23 22:16:50 +01:00
Joe Portner
506648c917
Mark elasticsearch.serviceAccountToken setting as GA (#128420) 2022-03-23 15:41:33 -04:00
Patrick Mueller
b028cf97ed
[ResponseOps][task manager] log event loop delay for tasks when over configured limit (#126300)
resolves https://github.com/elastic/kibana/issues/124366

Adds new task manager configuration keys.

- `xpack.task_manager.event_loop_delay.monitor` - whether to monitor
  event loop delay or not; added in case this specific monitoring
  causes other issues and we'd want to disable it.  We don't know
  of any cases where we'd need this today

- `xpack.task_manager.event_loop_delay.warn_threshold` - the number
  of milliseconds of event loop delay before logging a warning

This code uses the `perf_hooks.monitorEventLoopDelay()` API[1] to collect
the event loop delay while a task is running.

[1] https://nodejs.org/api/perf_hooks.html#perf_hooksmonitoreventloopdelayoptions

When a significant event loop delay is encountered, it's very likely
that other tasks running at the same time will be affected, and so
will also end up having a long event loop delay value, and warnings
will be logged on those.  Over time, though, tasks which have consistently
long event loop delays will outnumber those unfortunate peer tasks, and
be obvious from the volume in the logs.

To make it a bit easier to find these when viewing Kibana logs in Discover,
tags are added to the logged messages to make it easier to find them.  One
tag is `event-loop-blocked`, second is the task type, and the third is a string 
consisting of the task type and task id.
2022-03-23 10:28:43 -04:00
Nathan Reese
75f8ac424e
[Maps] Add support for geohex_grid aggregation (#127170)
* [Maps] hex bin gridding

* remove console.log

* disable hexbins for license and geo_shape

* fix jest tests

* copy cleanup

* label

* update clusters SVG with hexbins

* show as tooltip

* documenation updates

* copy updates

* add API test for hex

* test cleanup

* eslint

* eslint and functional test fixes

* eslint, copy updates, and more doc updates

* fix i18n error

* consolidate isMvt logic

* copy review feedback

* use 3 stop scale for hexs

* jest snapshot updates

* Update x-pack/plugins/maps/public/classes/sources/es_geo_grid_source/es_geo_grid_source.tsx

Co-authored-by: Nick Peihl <nickpeihl@gmail.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Nick Peihl <nickpeihl@gmail.com>
2022-03-23 08:20:10 -06:00
Christos Nasikas
043c40b6d0
[Cases] Fix fields query parameter in the _find API (#128143)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: lcawl <lcawley@elastic.co>
2022-03-23 10:21:09 +02:00
Lisa Cawley
130823ac27
[DOCS] Add find case APIs (#127686) 2022-03-22 15:58:57 -07:00
Joe Portner
88d64dc3bb
Add "phase 2" dev docs for sharing saved objects (#128037) 2022-03-22 18:56:41 -04:00
Lisa Cawley
201b352d7f
[DOCS] Add create case and update case APIs (#127936) 2022-03-22 07:14:52 -07:00
Ying Mao
0b1425b974
[Alerting] Warn by default when rule schedule interval is set below the minimum configured. (#127498)
* Changing structure of minimumScheduleInterval config

* Updating rules client logic to follow enforce flag

* Updating UI to use enforce value

* Updating config key in functional tests

* Fixes

* Fixes

* Updating help text

* Wording suggestsion from PR review

* Log warning instead of throwing an error if rule has default interval less than minimum

* Updating default interval to be minimum if minimum is greater than hardcoded default

* Fixing checks

* Fixing tests

* Fixing tests

* Fixing config

* Fixing checks

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-21 18:55:30 -04:00
Thomas Watson
e0d667b266
[docs] bring the Node.js upgrade docs up to date (#128126) 2022-03-21 00:41:39 -07:00
Ying Mao
5435cf922e
[Response Ops] API to retrieve execution log entries from event log. (#127339)
* wip

* wip

* Reverting changes not related to event log aggregation

* Reverting changes not related to event log aggregation

* Updating event log client find to take array of sort options

* Updating tests and adding basic aggregation function

* Adding tests

* Fixing functional test

* Fixing functional test

* Revert "Reverting changes not related to event log aggregation"

This reverts commit 939340e252.

* Revert "Reverting changes not related to event log aggregation"

This reverts commit 40a93a4b3c.

* Getting aggregation and parsing aggregation results

* Cleanup

* Changing api to internal

* Fixing types

* PR feedback

* omg types

* types and optional accessors

* Adding fn to calculate num executions based on date range

* Fleshing out rules client function and tests

* http api

* Cleanup

* Adding schedule delay

* Limit to 1000 logs

* Fixing security tests

* Fixing unit tests

* Validating numExecutions

* Changing sort input format

* Adding more sort fields

* Fixing unit tests

* Adding functional tests

* Adding sort to terms aggregation

* Fixing functional test

* Adding audit event for rule GET

* Adding audit event for rule execution log GET

* PR feedback

* Adding gap policy and using static num buckets

* Fixing checks

* Fixing checks

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-18 18:38:42 -04:00
Ersin Erdal
45c4e7dac1
[Alerting] Limit the executable actions per Rule execution (#128079) 2022-03-18 21:19:26 +01:00
Joe Portner
4920ace1d5
Add enhancements for legacy URL aliases (#125960) 2022-03-18 13:11:11 -07:00
Brian Seeders
242c5fd63f
Revert "[Alerting] Limit the executable actions per Rule execution (#126902)"
This reverts commit 31099bc68f.
2022-03-18 10:20:18 -04:00
Ersin Erdal
31099bc68f
[Alerting] Limit the executable actions per Rule execution (#126902)
* [Alerting] Circuit breaker. Limit the executable actions per Rule execution.
2022-03-18 13:51:24 +01:00
Ahmad Bamieh
3cc429d2cb
[i18n] a few docs updates (#127964) 2022-03-17 18:18:49 +02:00
Josh Dover
e5c4bef033
[Fleet] Update preconfiguration is_managed typo (#127909) 2022-03-17 10:45:16 +01:00
Luca Belluccini
bb7ae01362
[DOC] Mention CORS is required when external URLs are allowed in Vega (#118862)
* [DOC] Mention CORS is required when external URLs are allowed in Vega

Mention CORS is required when external URLs are allowed in Vega.

* Update docs/user/dashboard/vega-reference.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/user/dashboard/vega-reference.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2022-03-16 17:30:33 -04:00
Max Kovalev
0cd251ec4d
[Maps][File upload] Remove usage of max file size advanced setting 1GB limit in geo file upload (#127639)
* #93261 - Usage of maxFileSize in geo upload form is removed

* 93261 - refactoring

* 93261 - fixed translation checks

* 93261 - documentation updates

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-16 15:25:07 -06:00
Gerard Soldevila
bbddc4233b
Allow customizing ES client maxSockets (#126937)
* Allow customizing ES client maxSockets

* Make maxSockets required (schema defaults to Infinity)

* Fix UTs

* Misc tweaks + extra UTs

* Update asciidoc

* Code cleanup

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-16 11:16:22 -07:00
msimpson-xm
5641dcc12c
[alerting]: adds a connector for xMatters (#122357)
* Begin work on building out the backend of an xMatters connector

* Begin work on building out the frontend of an xMatters connector

* Continue attempting to get connector to register properly

* Begin working on the UI for the Edit Connector Test page

* Start working on writing tests for backend component of the xMatters connector

* Remove unneeded test due to not having any fancy escaping

* Write tests for the frontend component of the xMatters connector

* Add documentation for new xMatters connector

* Begin working on functional tests

* Continue work on frontend for xMatters conenctor

* Continue work on backend for xMatters conenctor

* Continue work on the functional tests for the xMatters connector

* Update based on xMatters string reviews

* Remove hidden parameters from ui

* Continue working to get tests running successfully

* Fix my code after rebasing onto latest main

* Fix the xMatters server for the simluator

* Check if listening before listening to the xmatters server in simulator

* Continue work on improving the xMatters connector

* Update strings based on the xMatters team string review

* Remove the headers as an option for the xMatters connector

* Fix alignment of the xmatters logo on the connectors page

* Allow alertId and alertActionGroupName to be null in the xMatters connector for test requests

* Fix the functional tests for the xMatters connector

* Rename alertName to ruleName and remove headers from xMatters connector

* Continue removing headers and renaming alertName to ruleName

* Update the tests so all are passing

* Some clean up for the xMatters connector

* Update the doc images based on changes for the xMatters connector

* Change alert id to use rule id and alert id and be labeled as signal id in the xMatters connector

* Fix failing tests for xMatters connector

* Start addressing comments and failing builds

* Combine if statement

* Update test strings after updating error strings

* Begin making updates after discussions and reviews

* Update failing tests

* Few adjustments after my self review of the xMatters connector

* Fix one failing test

* Fix a few small bugs in the xMatters connector

* Address a few small bugs in the xMatters connector

* Address latest comments and fix a few tests on the xMatters connector

* Adjust naming of secretsUrl and configUrl

* Work on fixing tests for xMatters connector

* Begin updating the xMatters documentation

* Update based on build errors

* Update documentation typo

* Add validation tests for connectors created using the API

* Fix the failing functional tests

* Update docs after review from xMatters team

* Update accidentally duplicated translate id

* Fix small bugs and update based on xMatters team string reviews

* Fix failing tests due to string changes

* [DOCS] Fixes doc build errors

* Update based on comments and feedback

* Update docs based on feedback

* Fix failing functional tests

* Update based on the feedback

* Fix failures in the functional tests

* Remove accidentally added file

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: lcawl <lcawley@elastic.co>
2022-03-16 10:22:27 -04:00
Alejandro Fernández Haro
b96dfb698a
[Core] Deprecated APIs audit (#127744) 2022-03-16 05:04:14 -07:00
Brandon Morelli
97301c7d6c
docs: clarify privileges in api key api (#127675) 2022-03-15 12:39:30 -07:00
Sandra G
c4ccc00227
[Stack Monitoring] add back monitoring.ui.metricbeat.index and deprecate (#127462)
* add back monitoring.ui.metricbeat.index and deprecate

* add back to test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-15 10:43:30 -04:00
Christiane (Tina) Heiligers
1cff513284
Adds API docs for Saved Objects Bulk Update (#127687)
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2022-03-15 07:39:43 -07:00
Lisa Cawley
4ad03d1b7d
[DOCS] Add Cases API links (#127647) 2022-03-15 07:25:00 -07:00
Tim Sullivan
719ccb6d87
[Reporting] Document steps to grant users reporting access under Basic (#127513)
* [Reporting] Document steps to grant users reporting access under Basic license

* Apply suggestions from code review

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* corrections to api calls

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-14 10:50:40 -07:00
Lisa Cawley
61a84edc62
[DOCS] Add Cases connector details (#127232) 2022-03-10 12:20:05 -08:00
Lisa Cawley
5233e74e87
[DOCS] Update connector screenshots (#127310) 2022-03-10 09:24:06 -08:00
Mat Schaffer
7ef97181db
Initial readme commit with some stub articles (#127420)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-10 14:56:20 +01:00
Kaarina Tungseth
27b57357cc
[DOCS] Adds missing monitoring.cluster_alerts.email_notifications.enabled setting (#127323)
* [DOCS] Adds missing  setting

* Removes deprecation message for unsupported version
2022-03-09 15:03:02 -06:00
Sandra G
c4098743bc
update docs to remove mention of watcher alerts (#127331) 2022-03-09 16:02:52 -05:00
Kaarina Tungseth
0bc7a2ee35
[DOCS] Adds missing monitoring.cluster_alerts.email_notifications.email_address monitoring setting (#126826)
* [DOCS] Adds missing deprecated monitoring settings

* Review comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-09 12:14:51 -06:00
Jonathan Budzenski
ab109db73f
[package testing] Update networking profile to account for virtualbox update (#127298)
With a recent virtualbox update, we're getting failures in CI with:

> The IP address configured for the host-only network is not within the
> allowed ranges. Please update the address used to be within the allowed
> ranges and run the command again.

This updates the IP range used to be compatible.
2022-03-09 11:47:11 -06:00
Or Ouziel
06e453ef78
add updatedAt to SimpleSavedObject (#126359) 2022-03-09 11:22:11 +02:00
Alejandro Fernández Haro
eb4cd4a2ff
Remove deprecated & unused ElasticsearchServiceStart.legacy (#127050) 2022-03-09 09:47:41 +01:00
Alejandro Fernández Haro
565454c64e
Remove deprecated & unused HttpServiceSetup.auth (#127056)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-09 09:44:01 +01:00
Alejandro Fernández Haro
22369fd874
Remove deprecated & unused public-AsyncPlugin (#127048) 2022-03-09 08:09:26 +01:00
Alejandro Fernández Haro
b9b4dc0a8d
Remove deprecated & unused SavedObjectsImportFailure.title (#127043) 2022-03-09 08:00:55 +01:00
Kaarina Tungseth
bb1834d297
[DOCS] Adds note for data source performance impact (#127184) 2022-03-08 15:50:06 -06:00