Skip to content

Commit d4527c5

Browse files
author
Aaron Caldwell
committed
Merge remote-tracking branch 'upstream/master' into np-migrate-region-maps
2 parents e07891c + c0164bc commit d4527c5

File tree

237 files changed

+3516
-1697
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

237 files changed

+3516
-1697
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ module.exports = {
112112
files: ['x-pack/plugins/lens/**/*.{js,ts,tsx}'],
113113
rules: {
114114
'react-hooks/exhaustive-deps': 'off',
115-
'react-hooks/rules-of-hooks': 'off',
116115
},
117116
},
118117
{
@@ -238,6 +237,7 @@ module.exports = {
238237
],
239238
from: [
240239
'(src|x-pack)/plugins/**/(public|server)/**/*',
240+
'!(src|x-pack)/plugins/**/(public|server)/mocks/index.{js,ts}',
241241
'!(src|x-pack)/plugins/**/(public|server)/(index|mocks).{js,ts,tsx}',
242242
],
243243
allowSameFolder: true,

docs/development/plugins/data/server/kibana-plugin-plugins-data-server.iindexpattern.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,9 @@ export interface IIndexPattern
2121
| [title](./kibana-plugin-plugins-data-server.iindexpattern.title.md) | <code>string</code> | |
2222
| [type](./kibana-plugin-plugins-data-server.iindexpattern.type.md) | <code>string</code> | |
2323

24+
## Methods
25+
26+
| Method | Description |
27+
| --- | --- |
28+
| [getTimeField()](./kibana-plugin-plugins-data-server.iindexpattern.gettimefield.md) | |
29+

docs/user/alerting/action-types.asciidoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,10 @@ see https://www.elastic.co/subscriptions[the subscription page].
4343
[[create-connectors]]
4444
=== Preconfigured connectors and action types
4545

46-
You can create connectors for actions in <<managing-alerts-and-actions, Alerts and Actions>> or via the action API.
47-
For out-of-the-box and standardized connectors, you can <<pre-configured-connectors, preconfigure connectors>>
46+
For out-of-the-box and standardized connectors, you can <<preconfigured-connector-example, preconfigure connectors>>
4847
before {kib} starts.
4948

50-
Action type with only preconfigured connectors could be specified as a <<pre-configured-action-types, preconfigured action type>>.
49+
If you preconfigure a connector, you can also <<preconfigured-action-type-example, preconfigure its action type>>.
5150

5251
include::action-types/email.asciidoc[]
5352
include::action-types/index.asciidoc[]
@@ -56,4 +55,3 @@ include::action-types/server-log.asciidoc[]
5655
include::action-types/slack.asciidoc[]
5756
include::action-types/webhook.asciidoc[]
5857
include::pre-configured-connectors.asciidoc[]
59-
include::pre-configured-action-types.asciidoc[]

docs/user/alerting/action-types/email.asciidoc

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,37 @@ Username:: username for 'login' type authentication.
1919
Password:: password for 'login' type authentication.
2020

2121
[float]
22+
[[Preconfigured-email-configuration]]
23+
==== Preconfigured action type
24+
25+
[source,text]
26+
--
27+
id: 'my-email'
28+
name: preconfigured-email-action-type
29+
actionTypeId: .email
30+
config:
31+
from: testsender@test.com <1.1>
32+
host: validhostname <1.2>
33+
port: 8080 <1.3>
34+
secure: false <1.4>
35+
secrets:
36+
user: testuser <2.1>
37+
password: passwordkeystorevalue <2.2>
38+
--
39+
40+
`config` defines the action type specific to the configuration and contains the following properties:
41+
42+
<1.1> `from:` is an email address and correspond to *Sender*.
43+
<1.2> `host:` is a string and correspond to *Host*.
44+
<1.3> `port:` is a number and correspond to *Port*.
45+
<1.4> `secure:` is a boolean and correspond to *Secure*.
46+
47+
`secrets` defines action type sensitive configuration:
48+
49+
<2.1> `user:` is a string and correspond to *User*.
50+
<2.2> `password:` is a string and correspond to *Password*. Should be stored in the <<creating-keystore, {kib} keystore>>.
51+
52+
2253
[[email-action-configuration]]
2354
==== Action configuration
2455

docs/user/alerting/action-types/index.asciidoc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,28 @@ Index:: The {es} index to be written to.
1515
Refresh:: Setting for the {ref}/docs-refresh.html[refresh] policy for the write request.
1616
Execution time field:: This field will be automatically set to the time the alert condition was detected.
1717

18+
[float]
19+
[[Preconfigured-index-configuration]]
20+
==== Preconfigured action type
21+
22+
[source,text]
23+
--
24+
id: 'my-index'
25+
name: action-type-index
26+
actionTypeId: .index
27+
config:
28+
index: .kibana <1>
29+
refresh: true <2>
30+
executionTimeField: somedate <3>
31+
--
32+
33+
`config` defines the action type specific to the configuration and contains the following properties:
34+
35+
<1> `index:` is a string and correspond to *Index*.
36+
<2> `refresh:` is a boolean and correspond to *Refresh*.
37+
<3> `executionTimeField:` is a string and correspond to *Execution time field*.
38+
39+
1840
[float]
1941
[[index-action-configuration]]
2042
==== Action configuration

docs/user/alerting/action-types/pagerduty.asciidoc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,29 @@ Name:: The name of the connector. The name is used to identify a connector
135135
API URL:: An optional PagerDuty event URL. Defaults to `https://events.pagerduty.com/v2/enqueue`. If you are using the <<action-settings, `xpack.actions.whitelistedHosts`>> setting, make sure the hostname is whitelisted.
136136
Integration Key:: A 32 character PagerDuty Integration Key for an integration on a service, also referred to as the routing key.
137137

138+
[float]
139+
[[Preconfigured-pagerduty-configuration]]
140+
==== Preconfigured action type
141+
142+
[source,text]
143+
--
144+
id: 'my-pagerduty'
145+
name: preconfigured-pagerduty-action-type
146+
actionTypeId: .pagerduty
147+
config:
148+
apiUrl: https://test.host <1.1>
149+
secrets:
150+
routingKey: testroutingkey <2.1>
151+
--
152+
153+
`config` defines the action type specific to the configuration and contains the following properties:
154+
155+
<1.1> `apiUrl:` is URL string and correspond to *API URL*.
156+
157+
`secrets` defines action type sensitive configuration:
158+
159+
<2.1> `routingKey:` is a string and correspond to *Integration Key*.
160+
138161
[float]
139162
[[pagerduty-action-configuration]]
140163
==== Action configuration

docs/user/alerting/action-types/server-log.asciidoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@ Server log connectors have the following configuration properties:
1212

1313
Name:: The name of the connector. The name is used to identify a connector in the management UI connector listing, or in the connector list when configuring an action.
1414

15+
[float]
16+
[[Preconfigured-server-log-configuration]]
17+
==== Preconfigured action type
18+
19+
[source,text]
20+
--
21+
id: 'my-server-log'
22+
name: test
23+
actionTypeId: .server-log
24+
--
25+
1526
[float]
1627
[[server-log-action-configuration]]
1728
==== Action configuration

docs/user/alerting/action-types/slack.asciidoc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,24 @@ Slack connectors have the following configuration properties:
1313
Name:: The name of the connector. The name is used to identify a connector in the management UI connector listing, or in the connector list when configuring an action.
1414
Webhook URL:: The URL of the incoming webhook. See https://api.slack.com/messaging/webhooks#getting_started[Slack Incoming Webhooks] for instructions on generating this URL. If you are using the <<action-settings, `xpack.actions.whitelistedHosts`>> setting, make sure the hostname is whitelisted.
1515

16+
[float]
17+
[[Preconfigured-slack-configuration]]
18+
==== Preconfigured action type
19+
20+
[source,text]
21+
--
22+
id: 'my-slack'
23+
name: preconfigured-slack-action-type
24+
actionTypeId: .slack
25+
config:
26+
webhookUrl: 'https://hooks.slack.com/services/abcd/efgh/ijklmnopqrstuvwxyz' <1>
27+
--
28+
29+
`config` defines the action type specific to the configuration and contains the following properties:
30+
31+
<1> `webhookUrl:` is URL string and correspond to *Webhook URL*.
32+
33+
1634
[float]
1735
[[slack-action-configuration]]
1836
==== Action configuration

docs/user/alerting/action-types/webhook.asciidoc

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,36 @@ Headers:: A set of key-value pairs sent as headers with the request
1717
User:: An optional username. If set, HTTP basic authentication is used. Currently only basic authentication is supported.
1818
Password:: An optional password. If set, HTTP basic authentication is used. Currently only basic authentication is supported.
1919

20+
[float]
21+
[[Preconfigured-webhook-configuration]]
22+
==== Preconfigured action type
23+
24+
[source,text]
25+
--
26+
id: 'my-webhook'
27+
name: preconfigured-webhook-action-type
28+
actionTypeId: .webhook
29+
config:
30+
url: https://test.host <1.1>
31+
method: POST <1.2>
32+
headers: <1.3>
33+
testheader: testvalue
34+
secrets:
35+
user: testuser <2.1>
36+
password: passwordkeystorevalue <2.2>
37+
--
38+
39+
`config` defines the action type specific to the configuration and contains the following properties:
40+
41+
<1.1> `url:` is URL string and correspond to *URL*.
42+
<1.2> `method:` is a string and correspond to *Method*.
43+
<1.3> `headers:` is Record<String, String> and correspond to *Headers*.
44+
45+
`secrets` defines action type sensitive configuration:
46+
47+
<2.1> `user:` is a string and correspond to *User*.
48+
<2.2> `password:` is a string and correspond to *Password*. Should be stored in the <<creating-keystore, {kib} keystore>>.
49+
2050
[float]
2151
[[webhook-action-configuration]]
2252
==== Action configuration
-166 KB
Loading

0 commit comments

Comments
 (0)