forked from CPTNB/opensearch-dashboards-dev-docs
-
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.
Update from CPTNB/OpenSearch-Dashboards@dfbcfae
- Loading branch information
CPTNB
committed
Aug 15, 2022
1 parent
ad85b42
commit d59eb4a
Showing
996 changed files
with
21,958 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) | ||
|
||
## API Reference | ||
|
||
## Packages | ||
|
||
| Package | Description | | ||
| --- | --- | | ||
| [opensearch-dashboards](./opensearch-dashboards.md) | The OpenSearch Dashboards Core APIs for server-side plugins.<!-- -->A plugin requires a <code>opensearch_dashboards.json</code> file at it's root directory that follows to define static plugin information required to load the plugin.<!-- -->A plugin's <code>server/index</code> file must contain a named import, <code>plugin</code>, that implements which returns an object that implements .<!-- -->The plugin integrates with the core system via lifecycle events: <code>setup</code>, <code>start</code>, and <code>stop</code>. In each lifecycle method, the plugin will receive the corresponding core services available (either or ) and any interfaces returned by dependency plugins' lifecycle method. Anything returned by the plugin's lifecycle method will be exposed to downstream dependencies when their corresponding lifecycle methods are invoked. | | ||
|
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 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [opensearch-dashboards](./opensearch-dashboards.md) > [AppCategory](./opensearch-dashboards.appcategory.md) > [ariaLabel](./opensearch-dashboards.appcategory.arialabel.md) | ||
|
||
## AppCategory.ariaLabel property | ||
|
||
If the visual label isn't appropriate for screen readers, can override it here | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
ariaLabel?: string; | ||
``` |
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 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [opensearch-dashboards](./opensearch-dashboards.md) > [AppCategory](./opensearch-dashboards.appcategory.md) > [euiIconType](./opensearch-dashboards.appcategory.euiicontype.md) | ||
|
||
## AppCategory.euiIconType property | ||
|
||
Define an icon to be used for the category If the category is only 1 item, and no icon is defined, will default to the product icon Defaults to initials if no icon is defined | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
euiIconType?: any; | ||
``` |
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 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [opensearch-dashboards](./opensearch-dashboards.md) > [AppCategory](./opensearch-dashboards.appcategory.md) > [id](./opensearch-dashboards.appcategory.id.md) | ||
|
||
## AppCategory.id property | ||
|
||
Unique identifier for the categories | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
id: string; | ||
``` |
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 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [opensearch-dashboards](./opensearch-dashboards.md) > [AppCategory](./opensearch-dashboards.appcategory.md) > [label](./opensearch-dashboards.appcategory.label.md) | ||
|
||
## AppCategory.label property | ||
|
||
Label used for category name. Also used as aria-label if one isn't set. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
label: string; | ||
``` |
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,24 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [opensearch-dashboards](./opensearch-dashboards.md) > [AppCategory](./opensearch-dashboards.appcategory.md) | ||
|
||
## AppCategory interface | ||
|
||
A category definition for nav links to know where to sort them in the left hand nav | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface AppCategory | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [ariaLabel?](./opensearch-dashboards.appcategory.arialabel.md) | string | <i>(Optional)</i> If the visual label isn't appropriate for screen readers, can override it here | | ||
| [euiIconType?](./opensearch-dashboards.appcategory.euiicontype.md) | any | <i>(Optional)</i> Define an icon to be used for the category If the category is only 1 item, and no icon is defined, will default to the product icon Defaults to initials if no icon is defined | | ||
| [id](./opensearch-dashboards.appcategory.id.md) | string | Unique identifier for the categories | | ||
| [label](./opensearch-dashboards.appcategory.label.md) | string | Label used for category name. Also used as aria-label if one isn't set. | | ||
| [order?](./opensearch-dashboards.appcategory.order.md) | number | <i>(Optional)</i> The order that categories will be sorted in Prefer large steps between categories to allow for further editing (Default categories are in steps of 1000) | | ||
|
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 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [opensearch-dashboards](./opensearch-dashboards.md) > [AppCategory](./opensearch-dashboards.appcategory.md) > [order](./opensearch-dashboards.appcategory.order.md) | ||
|
||
## AppCategory.order property | ||
|
||
The order that categories will be sorted in Prefer large steps between categories to allow for further editing (Default categories are in steps of 1000) | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
order?: number; | ||
``` |
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,12 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [opensearch-dashboards](./opensearch-dashboards.md) > [AppenderConfigType](./opensearch-dashboards.appenderconfigtype.md) | ||
|
||
## AppenderConfigType type | ||
|
||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare type AppenderConfigType = ConsoleAppenderConfig | FileAppenderConfig | LegacyAppenderConfig; | ||
``` |
15 changes: 15 additions & 0 deletions
15
source/opensearch-dashboards.assistanceapiresponse.indices.md
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 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [opensearch-dashboards](./opensearch-dashboards.md) > [AssistanceAPIResponse](./opensearch-dashboards.assistanceapiresponse.md) > [indices](./opensearch-dashboards.assistanceapiresponse.indices.md) | ||
|
||
## AssistanceAPIResponse.indices property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
indices: { | ||
[indexName: string]: { | ||
action_required: MIGRATION_ASSISTANCE_INDEX_ACTION; | ||
}; | ||
}; | ||
``` |
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,22 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [opensearch-dashboards](./opensearch-dashboards.md) > [AssistanceAPIResponse](./opensearch-dashboards.assistanceapiresponse.md) | ||
|
||
## AssistanceAPIResponse interface | ||
|
||
> Warning: This API is now obsolete. | ||
> | ||
> | ||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface AssistanceAPIResponse | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [indices](./opensearch-dashboards.assistanceapiresponse.indices.md) | { \[indexName: string\]: { action\_required: [MIGRATION\_ASSISTANCE\_INDEX\_ACTION](./opensearch-dashboards.migration_assistance_index_action.md)<!-- -->; }; } | | | ||
|
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,24 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [opensearch-dashboards](./opensearch-dashboards.md) > [AssistantAPIClientParams](./opensearch-dashboards.assistantapiclientparams.md) | ||
|
||
## AssistantAPIClientParams interface | ||
|
||
> Warning: This API is now obsolete. | ||
> | ||
> | ||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface AssistantAPIClientParams extends GenericParams | ||
``` | ||
<b>Extends:</b> GenericParams | ||
## Properties | ||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [method](./opensearch-dashboards.assistantapiclientparams.method.md) | 'GET' | | | ||
| [path](./opensearch-dashboards.assistantapiclientparams.path.md) | '/\_migration/assistance' | | | ||
11 changes: 11 additions & 0 deletions
11
source/opensearch-dashboards.assistantapiclientparams.method.md
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,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [opensearch-dashboards](./opensearch-dashboards.md) > [AssistantAPIClientParams](./opensearch-dashboards.assistantapiclientparams.md) > [method](./opensearch-dashboards.assistantapiclientparams.method.md) | ||
|
||
## AssistantAPIClientParams.method property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
method: 'GET'; | ||
``` |
11 changes: 11 additions & 0 deletions
11
source/opensearch-dashboards.assistantapiclientparams.path.md
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,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [opensearch-dashboards](./opensearch-dashboards.md) > [AssistantAPIClientParams](./opensearch-dashboards.assistantapiclientparams.md) > [path](./opensearch-dashboards.assistantapiclientparams.path.md) | ||
|
||
## AssistantAPIClientParams.path property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
path: '/_migration/assistance'; | ||
``` |
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,25 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [opensearch-dashboards](./opensearch-dashboards.md) > [AuditableEvent](./opensearch-dashboards.auditableevent.md) | ||
|
||
## AuditableEvent interface | ||
|
||
Event to audit. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface AuditableEvent | ||
``` | ||
|
||
## Remarks | ||
|
||
Not a complete interface. | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [message](./opensearch-dashboards.auditableevent.message.md) | string | | | ||
| [type](./opensearch-dashboards.auditableevent.type.md) | string | | | ||
|
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,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [opensearch-dashboards](./opensearch-dashboards.md) > [AuditableEvent](./opensearch-dashboards.auditableevent.md) > [message](./opensearch-dashboards.auditableevent.message.md) | ||
|
||
## AuditableEvent.message property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
message: string; | ||
``` |
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,11 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [opensearch-dashboards](./opensearch-dashboards.md) > [AuditableEvent](./opensearch-dashboards.auditableevent.md) > [type](./opensearch-dashboards.auditableevent.type.md) | ||
|
||
## AuditableEvent.type property | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
type: string; | ||
``` |
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 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [opensearch-dashboards](./opensearch-dashboards.md) > [Auditor](./opensearch-dashboards.auditor.md) > [add](./opensearch-dashboards.auditor.add.md) | ||
|
||
## Auditor.add() method | ||
|
||
Add a record to audit log. Service attaches to a log record: - metadata about an end-user initiating an operation - scope name, if presents | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
add(event: AuditableEvent): void; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| event | [AuditableEvent](./opensearch-dashboards.auditableevent.md) | | | ||
|
||
<b>Returns:</b> | ||
|
||
void | ||
|
||
## Example | ||
|
||
How to add a record in audit log: | ||
|
||
```typescript | ||
router.get({ path: '/my_endpoint', validate: false }, async (context, request, response) => { | ||
context.core.auditor.withAuditScope('my_plugin_operation'); | ||
const value = await context.core.opensearch.legacy.client.callAsCurrentUser('...'); | ||
context.core.add({ type: 'operation.type', message: 'perform an operation in ... endpoint' }); | ||
``` | ||
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,21 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [opensearch-dashboards](./opensearch-dashboards.md) > [Auditor](./opensearch-dashboards.auditor.md) | ||
|
||
## Auditor interface | ||
|
||
Provides methods to log user actions and access events. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface Auditor | ||
``` | ||
|
||
## Methods | ||
|
||
| Method | Description | | ||
| --- | --- | | ||
| [add(event)](./opensearch-dashboards.auditor.add.md) | Add a record to audit log. Service attaches to a log record: - metadata about an end-user initiating an operation - scope name, if presents | | ||
| [withAuditScope(name)](./opensearch-dashboards.auditor.withauditscope.md) | Add a high-level scope name for logged events. It helps to identify the root cause of low-level events. | | ||
|
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,24 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [opensearch-dashboards](./opensearch-dashboards.md) > [Auditor](./opensearch-dashboards.auditor.md) > [withAuditScope](./opensearch-dashboards.auditor.withauditscope.md) | ||
|
||
## Auditor.withAuditScope() method | ||
|
||
Add a high-level scope name for logged events. It helps to identify the root cause of low-level events. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
withAuditScope(name: string): void; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| name | string | | | ||
|
||
<b>Returns:</b> | ||
|
||
void | ||
|
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,22 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [opensearch-dashboards](./opensearch-dashboards.md) > [AuditorFactory](./opensearch-dashboards.auditorfactory.md) > [asScoped](./opensearch-dashboards.auditorfactory.asscoped.md) | ||
|
||
## AuditorFactory.asScoped() method | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
asScoped(request: OpenSearchDashboardsRequest): Auditor; | ||
``` | ||
|
||
## Parameters | ||
|
||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| request | [OpenSearchDashboardsRequest](./opensearch-dashboards.opensearchdashboardsrequest.md) | | | ||
|
||
<b>Returns:</b> | ||
|
||
[Auditor](./opensearch-dashboards.auditor.md) | ||
|
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 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [opensearch-dashboards](./opensearch-dashboards.md) > [AuditorFactory](./opensearch-dashboards.auditorfactory.md) | ||
|
||
## AuditorFactory interface | ||
|
||
Creates [Auditor](./opensearch-dashboards.auditor.md) instance bound to the current user credentials. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface AuditorFactory | ||
``` | ||
|
||
## Methods | ||
|
||
| Method | Description | | ||
| --- | --- | | ||
| [asScoped(request)](./opensearch-dashboards.auditorfactory.asscoped.md) | | | ||
|
Oops, something went wrong.