forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:elastic/kibana into ilm/update-co…
…ndition-for-hiding-recommded-allocation * 'master' of github.com:elastic/kibana: (117 commits) [coverage] ingest data in parallel (elastic#92074) [Lens] Drag and drop performance improvements (elastic#91641) A few more environment uiFilters fixes (elastic#92044) Enabling Uptime and Dashboard a11y test (elastic#91017) [Security Solution][Detections] Adds more granular validation for nested fields (elastic#92041) [Security Solution] [Detections] add overflow-wrap for description (elastic#91945) [Security Solution] [Detections] do not truncate filename in value list table in modal (elastic#91952) Skip flaky apm test elastic#91673 (elastic#92065) [docker] Default server.name to hostname (elastic#90799) Use documentation link service for snapshot restore (elastic#91596) [Security Solution] Clearing up all jest errors and warnings (elastic#91740) Add `@kbn/analytics` to UI Shared Deps (elastic#91810) [7.12][Telemetry] Add missing fields for security telemetry (elastic#91920) [Security Solution] Adds cypress-pipe (elastic#91550) [ML] Fix event rate chart annotation position (elastic#91899) [APM] Break down error table api removing the sparklines (elastic#89138) docs: update dependencies table bug (elastic#91964) [Time to Visualize] Stay in Edit Mode After Dashboard Quicksave (elastic#91729) Unskip Search Sessions Management UI test (elastic#90110) [Fleet] Handle long text in agent details page (elastic#91776) ... # Conflicts: # x-pack/plugins/index_lifecycle_management/__jest__/client_integration/edit_policy/edit_policy.helpers.tsx # x-pack/plugins/index_lifecycle_management/__jest__/components/edit_policy.test.tsx
- Loading branch information
Showing
1,462 changed files
with
31,670 additions
and
10,461 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* 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 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
const config = require('@kbn/storybook').defaultConfig; | ||
const aliases = require('../../src/dev/storybook/aliases.ts').storybookAliases; | ||
|
||
config.refs = {}; | ||
|
||
for (const alias of Object.keys(aliases).filter((a) => a !== 'ci_composite')) { | ||
// snake_case -> Title Case | ||
const title = alias | ||
.replace(/_/g, ' ') | ||
.split(' ') | ||
.map((n) => n[0].toUpperCase() + n.slice(1)) | ||
.join(' '); | ||
|
||
config.refs[alias] = { | ||
title: title, | ||
url: `${process.env.STORYBOOK_BASE_URL}/${alias}`, | ||
}; | ||
} | ||
|
||
module.exports = config; |
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 |
---|---|---|
|
@@ -15,6 +15,7 @@ node_modules | |
target | ||
snapshots.js | ||
|
||
!/.ci | ||
!/.eslintrc.js | ||
!.storybook | ||
|
||
|
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,30 @@ | ||
[[actions-and-connectors-api]] | ||
== Action and connector APIs | ||
|
||
Manage Actions and Connectors. | ||
|
||
The following action APIs are available: | ||
|
||
* <<actions-and-connectors-api-get, Get action API>> to retrieve a single action by ID | ||
|
||
* <<actions-and-connectors-api-get-all, Get all actions API>> to retrieve all actions | ||
|
||
* <<actions-and-connectors-api-list, List all action types API>> to retrieve a list of all action types | ||
|
||
* <<actions-and-connectors-api-create, Create action API>> to create actions | ||
|
||
* <<actions-and-connectors-api-update, Update action API>> to update the attributes for an existing action | ||
|
||
* <<actions-and-connectors-api-execute, Execute action API>> to execute an action by ID | ||
|
||
* <<actions-and-connectors-api-delete, Delete action API>> to delete an action by ID | ||
|
||
For information about the actions and connectors that {kib} supports, refer to <<action-types,Action and connector types>>. | ||
|
||
include::actions-and-connectors/get.asciidoc[] | ||
include::actions-and-connectors/get_all.asciidoc[] | ||
include::actions-and-connectors/list.asciidoc[] | ||
include::actions-and-connectors/create.asciidoc[] | ||
include::actions-and-connectors/update.asciidoc[] | ||
include::actions-and-connectors/execute.asciidoc[] | ||
include::actions-and-connectors/delete.asciidoc[] |
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,68 @@ | ||
[[actions-and-connectors-api-create]] | ||
=== Create action API | ||
++++ | ||
<titleabbrev>Create action API</titleabbrev> | ||
++++ | ||
|
||
Creates an action. | ||
|
||
[[actions-and-connectors-api-create-request]] | ||
==== Request | ||
|
||
`POST <kibana host>:<port>/api/actions/action` | ||
|
||
[[actions-and-connectors-api-create-request-body]] | ||
==== Request body | ||
|
||
`name`:: | ||
(Required, string) The display name for the action. | ||
|
||
`actionTypeId`:: | ||
(Required, string) The action type ID for the action. | ||
|
||
`config`:: | ||
(Required, object) The configuration for the action. Configuration properties vary depending on | ||
the action type. For information about the configuration properties, refer to <<action-types,Action and connector types>>. | ||
|
||
`secrets`:: | ||
(Required, object) The secrets configuration for the action. Secrets configuration properties vary | ||
depending on the action type. For information about the secrets configuration properties, refer to <<action-types,Action and connector types>>. | ||
|
||
[[actions-and-connectors-api-create-request-codes]] | ||
==== Response code | ||
|
||
`200`:: | ||
Indicates a successful call. | ||
|
||
[[actions-and-connectors-api-create-example]] | ||
==== Example | ||
|
||
[source,sh] | ||
-------------------------------------------------- | ||
$ curl -X POST api/actions/action -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d ' | ||
{ | ||
"name": "my-action", | ||
"actionTypeId": ".index", | ||
"config": { | ||
"index": "test-index" | ||
} | ||
}' | ||
-------------------------------------------------- | ||
// KIBANA | ||
|
||
The API returns the following: | ||
|
||
[source,sh] | ||
-------------------------------------------------- | ||
{ | ||
"id": "c55b6eb0-6bad-11eb-9f3b-611eebc6c3ad", | ||
"actionTypeId": ".index", | ||
"name": "my-action", | ||
"config": { | ||
"index": "test-index", | ||
"refresh": false, | ||
"executionTimeField": null | ||
}, | ||
"isPreconfigured": false | ||
} | ||
-------------------------------------------------- |
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,35 @@ | ||
[[actions-and-connectors-api-delete]] | ||
=== Delete action API | ||
++++ | ||
<titleabbrev>Delete action API</titleabbrev> | ||
++++ | ||
|
||
Deletes an action by ID. | ||
|
||
WARNING: When you delete an action, _it cannot be recovered_. | ||
|
||
[[actions-and-connectors-api-delete-request]] | ||
==== Request | ||
|
||
`DELETE <kibana host>:<port>/api/actions/action/<id>` | ||
|
||
[[actions-and-connectors-api-delete-path-params]] | ||
==== Path parameters | ||
|
||
`id`:: | ||
(Required, string) The ID of the action. | ||
|
||
[[actions-and-connectors-api-delete-response-codes]] | ||
==== Response code | ||
|
||
`200`:: | ||
Indicates a successful call. | ||
|
||
==== Example | ||
|
||
[source,sh] | ||
-------------------------------------------------- | ||
$ curl -X DELETE api/actions/action/c55b6eb0-6bad-11eb-9f3b-611eebc6c3ad | ||
-------------------------------------------------- | ||
// KIBANA | ||
|
Oops, something went wrong.