-
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.
Merge branch 'master' into feat/rewrite-appender
- Loading branch information
Showing
1,694 changed files
with
38,621 additions
and
10,044 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
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 | ||
} | ||
-------------------------------------------------- |
Oops, something went wrong.