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' into task-manager/docs-monitoring
* master: (111 commits) [Logs UI] Replace dependencies in the infra bundle (elastic#91503) [Search Source] Do not request unmapped fields if source filters are provided (elastic#91921) [APM] Kql Search Bar suggests values outside the selected time range (elastic#91918) Refactored component edit policy tests into separate folders and using client integration testing setup (elastic#91657) [Fleet] Don't error on missing package_assets value (elastic#91744) [Lens] Pass used histogram interval to chart (elastic#91370) [Indexpattern management] Use indexPatterns Service instead of savedObjects client (elastic#91839) [Security Solutions] Fixes Cypress tests for indicator match by making the selectors more specific (elastic#91947) [CI] backportrc can skip CI (elastic#91886) Revert "[SOM] fix flaky suites (elastic#91809)" [Fleet] Install Elastic Agent integration by default during setup (elastic#91676) [Fleet] Silently swallow 404 errors when deleting ingest pipelines (elastic#91778) [data.search] Use incrementCounter for search telemetry (elastic#91230) [Fleet] Bootstrap functional test suite (elastic#91898) [Alerts][Docs] Added API documentation for alerts plugin (elastic#91067) Use correct environment in anomaly detection setup link (elastic#91877) [FTSR] Convert to tasks and add jest/api integration suites (elastic#91770) [CI] Build and publish storybooks (elastic#87701) docs: add PHP agent info to docs (elastic#91773) [DOCS] Adds and updates Visualization advanced settings (elastic#91904) ...
- Loading branch information
Showing
1,430 changed files
with
30,705 additions
and
10,205 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 | ||
} | ||
-------------------------------------------------- |
Oops, something went wrong.