You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/visualize/workbooks-commonly-used-components.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ You can also pin this grid to a dashboard using the **Pin to dashboard** button
55
55
56
56
## Capturing input to use in a query
57
57
58
-
You may want to capture user input using dropdown lists and use the selection in your queries. For example, you can have a dropdown to accept a set of virtual machines and then filter your KQL to include just the selected machines. In most cases, this is as simple as including the parameter's value in the query:
58
+
You may want to capture user input using drop-down lists and use the selection in your queries. For example, you can have a drop-down to accept a set of virtual machines and then filter your KQL to include just the selected machines. In most cases, this is as simple as including the parameter's value in the query:
59
59
60
60
```sql
61
61
Perf
@@ -72,15 +72,15 @@ In more advanced scenarios, you may need to transform the parameter results befo
72
72
}
73
73
```
74
74
75
-
The following example shows how to enable this scenario: Let's say you want the values of the `OSFamily` and `ComplianceState` filters to come from dropdowns in the workbook. The filter could include multiple values as in the `OsFamily` case above. It needs to also support the case where the user wants to include all dimension values, that is to say, with no filters.
75
+
The following example shows how to enable this scenario: Let's say you want the values of the `OSFamily` and `ComplianceState` filters to come from drop-downs in the workbook. The filter could include multiple values as in the `OsFamily` case above. It needs to also support the case where the user wants to include all dimension values, that is to say, with no filters.
76
76
77
77
### Setup parameters
78
78
79
79
1. Create a new empty workbook and [add a parameter component](workbooks-create-workbook.md#add-a-parameter-to-an-azure-workbook).
80
80
1. Select **Add parameter** to create a new parameter. Use the following settings:
81
81
- Parameter name: `OsFilter`
82
82
- Display name: `Operating system`
83
-
- Parameter type: `Drop down`
83
+
- Parameter type: `drop-down`
84
84
- Allow multiple selections: `Checked`
85
85
- Delimiter: `or` (with spaces before and after)
86
86
- Quote with: `<empty>`
@@ -92,14 +92,14 @@ The following example shows how to enable this scenario: Let's say you want the
- Use the `Save` button in the toolbar to save this parameter.
@@ -127,10 +127,10 @@ The following example shows how to enable this scenario: Let's say you want the
127
127
128
128
129
129
This screenshot shows the parameter settings:
130
-
:::image type="content" source="media/workbooks-samples/workbooks-odata-parameters-settings.png" alt-text="Screenshot showing parameter settings for dropdown lists with parameter values.":::
130
+
:::image type="content" source="media/workbooks-samples/workbooks-odata-parameters-settings.png" alt-text="Screenshot showing parameter settings for drop-down lists with parameter values.":::
131
131
132
132
### Single Filter Value
133
-
The simplest case is the selection of a single filter value in each of the dimensions. The dropdown control uses Json input field's value as the parameter's value.
133
+
The simplest case is the selection of a single filter value in each of the dimensions. The drop-down control uses Json input field's value as the parameter's value.
134
134
135
135
```json
136
136
{
@@ -139,7 +139,7 @@ The simplest case is the selection of a single filter value in each of the dimen
139
139
}
140
140
```
141
141
142
-
:::image type="content" source="media/workbooks-samples/workbooks-odata-parameters-single-select.png" alt-text="Screenshot showing a dropdown lists with parameter values and a single value selected.":::
142
+
:::image type="content" source="media/workbooks-samples/workbooks-odata-parameters-single-select.png" alt-text="Screenshot showing a drop-down lists with parameter values and a single value selected.":::
143
143
144
144
### Multiple Filter Values
145
145
If the user chooses multiple filter values (e.g. both Android and OS X operating systems), then parameters `Delimiter` and `Quote with` settings kicks in and produces this compound filter:
@@ -151,16 +151,16 @@ If the user chooses multiple filter values (e.g. both Android and OS X operating
151
151
}
152
152
```
153
153
154
-
:::image type="content" source="media/workbooks-samples/workbooks-odata-parameters-multi-select.png" alt-text="Screenshot showing a dropdown lists with parameter values and multiple values selected.":::
154
+
:::image type="content" source="media/workbooks-samples/workbooks-odata-parameters-multi-select.png" alt-text="Screenshot showing a drop-down lists with parameter values and multiple values selected.":::
155
155
156
156
### No Filter Case
157
-
Another common case is having no filter for that dimension. This is equivalent to including all values of the dimensions as part of the result set. The way to enable it is by having an `All` option on the dropdown and have it return a filter expression that always evaluates to `true` (e.g. _ComplianceState eq '#@?'_).
157
+
Another common case is having no filter for that dimension. This is equivalent to including all values of the dimensions as part of the result set. The way to enable it is by having an `All` option on the drop-down and have it return a filter expression that always evaluates to `true` (e.g. _ComplianceState eq '#@?'_).
158
158
159
159
```json
160
160
{
161
161
"name": "deviceComplianceTrend",
162
162
"filter": "(OSFamily eq 'OS X' or OSFamily eq 'Android') and (ComplianceState ne '#@?')"
163
163
}
164
164
```
165
-
:::image type="content" source="media/workbooks-samples/workbooks-odata-parameters-no-select.png" alt-text="Screenshot showing a dropdown lists with parameter values and no filter selected.":::
165
+
:::image type="content" source="media/workbooks-samples/workbooks-odata-parameters-no-select.png" alt-text="Screenshot showing a drop-down lists with parameter values and no filter selected.":::
Copy file name to clipboardExpand all lines: articles/azure-monitor/visualize/workbooks-configurations.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ The workbooks settings has these tabs to help you configure your workbook.
22
22
|Resources|This tab contains the resources that appear as default selections in this workbook.<br>The resource marked as the **Owner** resource is where the workbook will be saved, and the location of the workbooks and templates you'll see when browsing. The owner resource can't be removed.<br> You can add a default resource by selecting **Add Resources**. You can remove resources by selecting a resource or several resources, and selecting **Remove Selected Resources**. When you're done adding and removing resources, select **Apply Changes**.|
23
23
|Versions| This tab contains a list of all the available versions of this workbook. Select a version and use the toolbar to compare, view, or restore versions. Previous workbook versions are available for 90 days.<br><ul><li>**Compare**: Compare the JSON of the previous workbook to the most recently saved version.</li><li>**View**: Opens the selected version of the workbook in a context pane.</li><li>**Restore**: Saves a new copy of the workbook with the contents of the selected version and overwrites any existing current content. You'll be prompted to confirm this action.</li></ul><br>|
24
24
|Style |In this tab, you can set a padding and spacing style for the whole workbook. The possible options are `Wide`, `Standard`, `Narrow`, `None`. `Standard` is the default style setting.|
25
-
|Pin |While in pin mode, you can select **Pin Workbook** to pin an component from this workbook to a dashboard. Select **Link to Workbook**, to pin a static link to this workbook on your dashboard. You can choose a specific component in your workbook to pin.|
25
+
|Pin |While in pin mode, you can select **Pin Workbook** to pin a component from this workbook to a dashboard. Select **Link to Workbook**, to pin a static link to this workbook on your dashboard. You can choose a specific component in your workbook to pin.|
26
26
|Trusted hosts |In this tab, you can enable a trusted source or mark this workbook as trusted in this browser. See [trusted hosts](#trusted-hosts) for detailed information. |
0 commit comments