-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DOCS] Add open API specification for run connector
- Loading branch information
Showing
16 changed files
with
573 additions
and
238 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
7 changes: 7 additions & 0 deletions
7
x-pack/plugins/actions/docs/openapi/components/examples/run_index_connector_request.yaml
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,7 @@ | ||
summary: Run an index connector. | ||
value: | ||
params: | ||
documents: | ||
- id: my_doc_id | ||
name: my_doc_name | ||
message: hello, world |
20 changes: 20 additions & 0 deletions
20
x-pack/plugins/actions/docs/openapi/components/examples/run_index_connector_response.yaml
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,20 @@ | ||
title: Response from running an index connector. | ||
value: | ||
connector_id: fd38c600-96a5-11ed-bb79-353b74189cba | ||
data: | ||
errors: false | ||
items: | ||
- create: | ||
_id: 4JtvwYUBrcyxt2NnfW3y | ||
_index: my-index | ||
_primary_term: 1 | ||
_seq_no: 0 | ||
_shards: | ||
failed: 0 | ||
successful: 1 | ||
total: 2 | ||
_version: 1 | ||
result: created | ||
status: 201 | ||
took: 135 | ||
status: ok |
5 changes: 5 additions & 0 deletions
5
...ck/plugins/actions/docs/openapi/components/examples/run_server_log_connector_request.yaml
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,5 @@ | ||
summary: Run a server log connector. | ||
value: | ||
params: | ||
level: warn | ||
message: Test warning message. |
3 changes: 3 additions & 0 deletions
3
...k/plugins/actions/docs/openapi/components/examples/run_server_log_connector_response.yaml
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,3 @@ | ||
title: Response from running a server log connector. | ||
value: | ||
{} |
15 changes: 15 additions & 0 deletions
15
x-pack/plugins/actions/docs/openapi/components/schemas/401_response.yaml
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,15 @@ | ||
type: object | ||
title: Unsuccessful rule API response | ||
properties: | ||
error: | ||
type: string | ||
example: Unauthorized | ||
enum: | ||
- Unauthorized | ||
message: | ||
type: string | ||
statusCode: | ||
type: integer | ||
example: 401 | ||
enum: | ||
- 401 |
15 changes: 15 additions & 0 deletions
15
x-pack/plugins/actions/docs/openapi/components/schemas/404_response.yaml
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,15 @@ | ||
type: object | ||
properties: | ||
error: | ||
type: string | ||
example: Not Found | ||
enum: | ||
- Not Found | ||
message: | ||
type: string | ||
example: "Saved object [action/baf33fc0-920c-11ed-b36a-874bd1548a00] not found" | ||
statusCode: | ||
type: integer | ||
example: 404 | ||
enum: | ||
- 404 |
13 changes: 13 additions & 0 deletions
13
x-pack/plugins/actions/docs/openapi/components/schemas/run_connector_request_index.yaml
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,13 @@ | ||
title: Run index connector parameters | ||
description: Test an action that indexes a document into Elasticsearch. | ||
type: object | ||
required: | ||
- documents | ||
properties: | ||
documents: | ||
type: array | ||
description: The documents to index in JSON format. | ||
items: | ||
type: object | ||
additionalProperties: true | ||
|
Oops, something went wrong.