Skip to content

Commit 523e43e

Browse files
authored
Merge branch 'master' into testing/add-tests-for-pages
2 parents 1a47ed9 + 1ffb171 commit 523e43e

File tree

584 files changed

+10941
-4448
lines changed

Some content is hidden

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

584 files changed

+10941
-4448
lines changed

docs/canvas/canvas-elements.asciidoc

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ When you add elements to your workpad, you can:
2020
[[add-canvas-element]]
2121
=== Add elements to your workpad
2222

23-
Choose the elements to display on your workpad, then familiarize yourself with the element using the preconfigured demo data. By default, every element you add to a workpad uses demo data until you change the data source. The demo data includes a small sample data set that you can use to experiment with your element.
23+
Choose the elements to display on your workpad, then familiarize yourself with the element using the preconfigured demo data. By default, most elements use demo data until you change the data source. The demo data includes a small sample data set that you can use to experiment with your element.
24+
25+
To add a Canvas element:
2426

2527
. Click *Add element*.
2628

@@ -31,13 +33,26 @@ image::images/canvas-element-select.gif[Canvas elements]
3133

3234
. Play around with the default settings and see what the element can do.
3335

34-
TIP: Want to use a different element? You can delete the element by selecting it, clicking the *Element options* icon in the top right, then selecting *Delete*.
36+
To add a map:
37+
38+
. Click *Embed object*.
39+
40+
. Select the map you want to add to the workpad.
41+
+
42+
[role="screenshot"]
43+
image::images/canvas-map-embed.gif[]
44+
45+
NOTE: Demo data is only supported on Canvas elements. Maps do not support demo data.
46+
47+
Want to use a different element? You can delete the element by selecting it, clicking the *Element options* icon in the top right, then selecting *Delete*.
3548

3649
[float]
3750
[[connect-element-data]]
38-
=== Connect the element to your data
51+
=== Connect the Canvas element to your data
3952

40-
When you have finished using the demo data, connect the element to a data source.
53+
When you have finished using the demo data, connect the Canvas element to a data source.
54+
55+
NOTE: Maps do not support data sources. To change the map data, refer to <<maps, Elastic Maps>>.
4156

4257
. Make sure that the element is selected, then select *Data*.
4358

@@ -142,7 +157,7 @@ text.align: center;
142157
[[configure-auto-refresh-interval]]
143158
==== Change the data auto-refresh interval
144159

145-
Increase or decrease how often your data refreshes on your workpad.
160+
Increase or decrease how often your Canvas element data refreshes on your workpad.
146161

147162
. In the top left corner, click the *Control settings* icon.
148163

@@ -153,6 +168,17 @@ image::images/canvas-refresh-interval.png[Element data refresh interval]
153168

154169
TIP: To manually refresh the data, click the *Refresh data* icon.
155170

171+
[float]
172+
[[canvas-time-range]]
173+
==== Customize map time ranges
174+
175+
Configure the maps on your workpad for a specific time range.
176+
177+
From the panel menu, select *Customize time range* to expose a time filter dedicated to the map.
178+
179+
[role="screenshot"]
180+
image::images/canvas_map-time-filter.gif[]
181+
156182
[float]
157183
[[organize-element]]
158184
=== Organize the elements on your workpad

docs/developer/plugin/development-plugin-resources.asciidoc

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33

44
Here are some resources that are helpful for getting started with plugin development.
55

6-
[float]
7-
==== Our IRC channel
8-
Many Kibana developers hang out on `irc.freenode.net` in the `#kibana` channel. We *want* to help you with plugin development. Even more than that, we *want your help* in understanding your plugin goals, so we can build a great plugin system for you! If you've never used IRC, welcome to the fun. You can get started with the http://webchat.freenode.net/?channels=kibana[Freenode Web Client].
9-
106
[float]
117
==== Some light reading
128
Our {repo}blob/master/CONTRIBUTING.md[contributing guide] can help you get a development environment going.
@@ -50,7 +46,7 @@ You're welcome to use these components, but be aware that they are rapidly evolv
5046

5147
[float]
5248
==== TypeScript Support
53-
Plugin code can be written in http://www.typescriptlang.org/[TypeScript] if desired.
49+
Plugin code can be written in http://www.typescriptlang.org/[TypeScript] if desired.
5450
To enable TypeScript support, create a `tsconfig.json` file at the root of your plugin that looks something like this:
5551

5652
["source","js"]
@@ -67,6 +63,6 @@ To enable TypeScript support, create a `tsconfig.json` file at the root of your
6763
}
6864
-----------
6965

70-
TypeScript code is automatically converted into JavaScript during development,
71-
but not in the distributable version of Kibana. If you use the
66+
TypeScript code is automatically converted into JavaScript during development,
67+
but not in the distributable version of Kibana. If you use the
7268
{repo}blob/{branch}/packages/kbn-plugin-helpers[@kbn/plugin-helpers] to build your plugin, then your `.ts` and `.tsx` files will be permanently transpiled before your plugin is archived. If you have your own build process, make sure to run the TypeScript compiler on your source files and ship the compilation output so that your plugin will work with the distributable version of Kibana.

docs/images/canvas-map-embed.gif

894 KB
Loading
822 KB
Loading

docs/management/advanced-options.asciidoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,10 @@ might increase the search time. This setting is off by default. Users must opt-i
220220
[horizontal]
221221
`siem:defaultAnomalyScore`:: The threshold above which Machine Learning job anomalies are displayed in the SIEM app.
222222
`siem:defaultIndex`:: A comma-delimited list of Elasticsearch indices from which the SIEM app collects events.
223-
`siem:enableNewsFeed`:: Enables the News feed
224-
`siem:newsFeedUrl`:: News feed content will be retrieved from this URL
223+
`siem:enableNewsFeed`:: Enables the security news feed on the SIEM *Overview*
224+
page.
225+
`siem:newsFeedUrl`:: The URL from which the security news feed content is
226+
retrieved.
225227
`siem:refreshIntervalDefaults`:: The default refresh interval for the SIEM time filter, in milliseconds.
226228
`siem:timeDefaults`:: The default period of time in the SIEM time filter.
227229

docs/siem/index.asciidoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ https://www.elastic.co/products/beats/packetbeat[{packetbeat}]
3333
send security events and other data to Elasticsearch.
3434

3535
The default index patterns for SIEM events are `auditbeat-*`, `winlogbeat-*`,
36-
`filebeat-*`, `endgame-*`, and `packetbeat-*``. You can change the default index patterns in
36+
`filebeat-*`, `packetbeat-*`, `endgame-*`, and `apm-*-transaction*`. You can
37+
change the default index patterns in
3738
*Kibana > Management > Advanced Settings > siem:defaultIndex*.
3839

3940
[float]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## Ui actions examples
2+
3+
These ui actions examples shows how to:
4+
- Register new actions
5+
- Register custom triggers
6+
- Attach an action to a trigger
7+
8+
To run this example, use the command `yarn start --run-examples`.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"id": "uiActionsExamples",
3+
"version": "0.0.1",
4+
"kibanaVersion": "kibana",
5+
"configPath": ["ui_actions_examples"],
6+
"server": false,
7+
"ui": true,
8+
"requiredPlugins": ["uiActions"],
9+
"optionalPlugins": []
10+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "ui_actions_examples",
3+
"version": "1.0.0",
4+
"main": "target/examples/ui_actions_examples",
5+
"kibana": {
6+
"version": "kibana",
7+
"templateVersion": "1.0.0"
8+
},
9+
"license": "Apache-2.0",
10+
"scripts": {
11+
"kbn": "node ../../scripts/kbn.js",
12+
"build": "rm -rf './target' && tsc"
13+
},
14+
"devDependencies": {
15+
"typescript": "3.5.3"
16+
}
17+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
import React from 'react';
20+
import { EuiText, EuiModalBody, EuiButton } from '@elastic/eui';
21+
import { OverlayStart } from '../../../src/core/public';
22+
import { createAction } from '../../../src/plugins/ui_actions/public';
23+
import { toMountPoint } from '../../../src/plugins/kibana_react/public';
24+
25+
export const HELLO_WORLD_ACTION_TYPE = 'HELLO_WORLD_ACTION_TYPE';
26+
27+
export const createHelloWorldAction = (openModal: OverlayStart['openModal']) =>
28+
createAction<{}>({
29+
type: HELLO_WORLD_ACTION_TYPE,
30+
getDisplayName: () => 'Hello World!',
31+
execute: async () => {
32+
const overlay = openModal(
33+
toMountPoint(
34+
<EuiModalBody>
35+
<EuiText data-test-subj="helloWorldActionText">Hello world!</EuiText>
36+
<EuiButton data-test-subj="closeModal" onClick={() => overlay.close()}>
37+
Close
38+
</EuiButton>
39+
</EuiModalBody>
40+
)
41+
);
42+
},
43+
});

0 commit comments

Comments
 (0)