mirror of https://github.com/grafana/grafana.git
Docs: Add example image to RegExp extract fields option (#97007)
This commit is contained in:
parent
3e96672b88
commit
a88c681008
|
@ -340,7 +340,8 @@ Use this transformation to select a source of data and extract content from it i
|
|||
- **Format** - Choose one of the following:
|
||||
- **JSON** - Parse JSON content from the source.
|
||||
- **Key+value pairs** - Parse content in the format 'a=b' or 'c:d' from the source.
|
||||
- **RegExp** - Parse content using a regular expression with [named capturing group(s)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Named_capturing_group) like `/(?<NewField>.*)/`.
|
||||
- **RegExp** - Parse content using a regular expression with [named capturing group(s)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Named_capturing_group) like `/(?<New_Field>.*)/`.
|
||||
{{< figure src="/media/docs/grafana/panels-visualizations/screenshot-regexp-detail-v11.3-2.png" class="docs-image--no-shadow" max-width= "1100px" alt="Example of a regular expression" >}}
|
||||
- **Auto** - Discover fields automatically.
|
||||
- **Replace All Fields** - (Optional) Select this option to hide all other fields and display only your calculated field in the visualization.
|
||||
- **Keep Time** - (Optional) Available only if **Replace All Fields** is true. Keeps the time field in the output.
|
||||
|
|
|
@ -235,7 +235,7 @@ This transformation allows you to flexibly adapt your data types, ensuring compa
|
|||
},
|
||||
extractFields: {
|
||||
name: 'Extract fields',
|
||||
getHelperDocs: function () {
|
||||
getHelperDocs: function (imageRenderType: ImageRenderType = ImageRenderType.ShortcodeFigure) {
|
||||
return `
|
||||
Use this transformation to select a source of data and extract content from it in different formats. This transformation has the following fields:
|
||||
|
||||
|
@ -244,6 +244,11 @@ Use this transformation to select a source of data and extract content from it i
|
|||
- **JSON** - Parse JSON content from the source.
|
||||
- **Key+value pairs** - Parse content in the format 'a=b' or 'c:d' from the source.
|
||||
- **RegExp** - Parse content using a regular expression with [named capturing group(s)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Named_capturing_group) like \`/(?<New_Field>.*)/\`.
|
||||
${buildImageContent(
|
||||
'/media/docs/grafana/panels-visualizations/screenshot-regexp-detail-v11.3-2.png',
|
||||
imageRenderType,
|
||||
'Example of a regular expression'
|
||||
)}
|
||||
- **Auto** - Discover fields automatically.
|
||||
- **Replace All Fields** - (Optional) Select this option to hide all other fields and display only your calculated field in the visualization.
|
||||
- **Keep Time** - (Optional) Available only if **Replace All Fields** is true. Keeps the time field in the output.
|
||||
|
|
Loading…
Reference in New Issue