Azure Monitor 中视图设计器磁贴的参考指南Reference guide to View Designer tiles in Azure Monitor

在 Azure Monitor 中使用视图设计器即可在 Azure 门户中创建各种自定义视图,使 Log Analytics 工作区中的数据可视化。By using View Designer in Azure Monitor, you can create a variety of custom views in the Azure portal that can help you visualize data in your Log Analytics workspace. 本文针对自定义视图中可用的磁贴,提供设置方面的参考指南。This article is a reference guide to the settings for the tiles that are available in your custom views.

有关视图设计器的详细信息,请参阅:For more information about View Designer, see:

  • 视图设计器:概述视图设计器以及创建和编辑自定义视图的过程。View Designer: Provides an overview of View Designer and procedures for creating and editing custom views.
  • 可视化部分参考:针对自定义视图中可用的可视化部件,提供设置方面的参考指南。Visualization part reference: Provides a reference guide to the settings for the visualization parts that are available in your custom views.

下表描述了可用的视图设计器磁贴:The available View Designer tiles are described in the following table:

磁贴Tile 说明Description
数字Number 查询中的记录数。The count of records from a query.
两个数字Two numbers 两个不同查询中的记录数。The counts of records from two different queries.
圆环图Donut 基于一个查询的图表,中心显示汇总值。A chart that's based on a query, with a summary value in the center.
折线图和标注Line chart and callout 基于一个查询的折线图,并使用汇总值进行标注。A line chart that's based on a query, and a callout with a summary value.
折线图Line chart 基于一个查询的折线图。A line chart that's based on a query.
两条时间线Two timelines 具有两个序列的柱状图,每个序列基于一个单独的查询。A column chart with two series, each based on a separate query.

后续部分将详细介绍磁贴类型及其属性。The next sections describe the tile types and their properties in detail.

Note

视图中的磁贴基于 Log Analytics 工作区中的日志查询Tiles in views are based on log queries in your Log Analytics workspace.

数字磁贴Number tile

数字磁贴显示一个日志查询中的记录数,具有一个标签。The Number tile displays both the count of records from a log query and a label.

数字磁贴

设置Setting 说明Description
NameName 在磁贴顶部显示的文本。The text that's displayed at the top of the tile.
说明Description 在磁贴名称下面显示的文本。The text that's displayed under the tile name.
磁贴Tile
图例Legend 在值下面显示的文本。The text that's displayed under the value.
查询Query 运行的查询。The query that's run. 显示由查询返回的记录数。The count of the records that are returned by the query is displayed.
高级Advanced > 数据流验证> Data-flow verification
EnabledEnabled 如果应为磁贴启用数据流验证,请选择此链接。Select this link if data-flow verification should be enabled for the tile. 如果数据不可用,此方法将提供一条替代消息。This approach provides an alternate message if data is unavailable. 通常使用此方法在安装视图后数据变为可用状态的短暂过程中提供一条消息。You ordinarily use the approach to provide a message during the temporary period when the view is installed and the data becomes available.
查询Query 要运行的查询,用于确定该视图是否有可用数据。The query that's run to determine whether data is available for the view. 如果查询无结果返回,则会显示一条消息而不是主查询中的值。If the query returns no results, a message is displayed in place of the value of the main query.
MessageMessage 数据流验证查询无数据返回时显示的消息。The message that's displayed if the data-flow verification query returns no data. 如果没有提供任何消息,则会显示“正在执行评估”状态消息 。If you provide no message, a Performing Assessment status message is displayed.

两个数字磁贴Two Numbers tile

此磁贴显示两个不同日志查询中的记录数,每个查询具有一个标签。This tile displays the count of records from two different log queries and a label for each.

两个数字磁贴

设置Setting 说明Description
NameName 在磁贴顶部显示的文本。The text that's displayed at the top of the tile.
说明Description 在磁贴名称下面显示的文本。The text that's displayed under the tile name.
第一个磁贴First Tile
图例Legend 在值下面显示的文本。The text that's displayed under the value.
查询Query 运行的查询。The query that's run. 显示由查询返回的记录数。The count of the records that are returned by the query is displayed.
第二个磁贴Second Tile
图例Legend 在值下面显示的文本。The text that's displayed under the value.
查询Query 运行的查询。The query that's run. 显示由查询返回的记录数。The count of the records that are returned by the query is displayed.
高级Advanced > 数据流验证> Data-flow verification
EnabledEnabled 如果应为磁贴启用数据流验证,请选择此链接。Select this link if data-flow verification should be enabled for the tile. 如果数据不可用,此方法将提供一条替代消息。This approach provides an alternate message if data is unavailable. 通常使用此方法在安装视图后数据变为可用状态的短暂过程中提供一条消息。You ordinarily use the approach to provide a message during the temporary period when the view is installed and the data becomes available.
查询Query 要运行的查询,用于确定该视图是否有可用数据。The query that's run to determine whether data is available for the view. 如果查询无结果返回,则会显示一条消息而不是主查询中的值。If the query returns no results, a message is displayed in place of the value of the main query.
MessageMessage 数据流验证查询无数据返回时显示的消息。The message that's displayed if the data-flow verification query returns no data. 如果没有提供任何消息,则会显示“正在执行评估”状态消息 。If you provide no message, a Performing Assessment status message is displayed.

圆环图磁贴Donut tile

圆环图磁贴显示从一个日志查询中的值列汇总的单个数字。The Donut tile displays a single number that summarizes a value column in a log query. 此圆环图以图形方式显示了前三个记录的结果。The donut graphically displays results of the top three records.

圆环图磁贴

设置Setting 说明Description
NameName 在磁贴顶部显示的文本。The text that's displayed at the top of the tile.
说明Description 在磁贴名称下面显示的文本。The text that's displayed under the tile name.
圆环图Donut
查询Query 要为该圆环图运行的查询。The query that's run for the donut. 第一个属性应为文本值,第二个属性应为数值。The first property is a text value, and the second property is a numeric value. 此查询通常使用 measure 关键字来汇总结果。This query ordinarily uses the measure keyword to summarize results.
圆环图Donut > 中心> Center
文本Text 在该圆环图中的值下显示的文本。The text that's displayed under the value inside the donut.
操作Operation 要在值属性上执行以汇总到单个值的操作。The operation that's performed on the value property to summarize it as a single value.
  • 总和:累加具有该属性值的所有记录的值。Sum: Add the values of all records with the property value.
  • 百分比:具有该属性值的记录的总和值占所有记录总和值的百分比。Percentage: Percentage of the summed values from records with the property value compared to the summed values of all records.
用于中心操作的结果值Result values used in center operation (可选)选择加号 (+) 可添加一个或多个值。Optionally, select the plus sign (+) to add one or more values. 查询的结果将限于具有指定属性值的记录。The results of the query are limited to records with the property values you specify. 如果没有添加任何值,则查询中包含所有记录。If no values are added, all records are included in the query.
圆环图Donut >其他选项> Additional options
颜色Colors 为前三个主要属性分别显示的颜色。The color that's displayed for each of the three top properties. 若要特定属性值指定备选颜色,可使用“高级颜色映射” 。To specify alternate colors for specific property values, use Advanced Color Mapping.
高级颜色映射Advanced Color Mapping 显示表示特定属性值的颜色。Displays a color that represents specific property values. 如果指定的值位于前三,则会显示备选颜色而不是标准颜色。If the value you specify is in the top three, the alternate color is displayed instead of the standard color. 如果该属性不在前三,则不会显示颜色。If the property is not in the top three, the color is not displayed.
高级Advanced > 数据流验证> Data-flow verification
EnabledEnabled 如果应为磁贴启用数据流验证,请选择此链接。Select this link if data-flow verification should be enabled for the tile. 如果数据不可用,此方法将提供一条替代消息。This approach provides an alternate message if data is unavailable. 通常使用此方法在安装视图后数据变为可用状态的短暂过程中提供一条消息。You ordinarily use the approach to provide a message during the temporary period when the view is installed and the data becomes available.
查询Query 要运行的查询,用于确定该视图是否有可用数据。The query that's run to determine whether data is available for the view. 如果查询无结果返回,则会显示一条消息而不是主查询中的值。If the query returns no results, a message is displayed in place of the value of the main query.
MessageMessage 数据流验证查询无数据返回时显示的消息。The message that's displayed if the data-flow verification query returns no data. 如果没有提供任何消息,则会显示“正在执行评估”状态消息 。If you provide no message, a Performing Assessment status message is displayed.

折线图磁贴Line chart tile

此磁贴是一个折线图,显示一段时间内一个日志查询中的多个系列。This tile is a line chart that displays multiple series from a log query over time.

折线图和标注磁贴

设置Setting 说明Description
NameName 在磁贴顶部显示的文本。The text that's displayed at the top of the tile.
说明Description 在磁贴名称下面显示的文本。The text that's displayed under the tile name.
折线图Line chart
查询Query 要为该折线图运行的查询。The query that's run for the line chart. 第一个属性应为文本值,第二个属性应为数值。The first property is a text value, and the second property is a numeric value. 此查询通常使用 measure 关键字来汇总结果。This query ordinarily uses the measure keyword to summarize results. 如果查询使用 interval 关键字,则 X 轴将使用此时间间隔。If the query uses the interval keyword, the x-axis uses this time interval. 如果查询不使用 interval 关键字,则 X 轴使用每小时间隔。If the query doesn't use the interval keyword, the x-axis uses hourly intervals.
折线图Line chart > Y 轴> Y-axis
使用对数刻度Use Logarithmic Scale 选择此链接可对 Y 轴使用对数刻度。Select this link to use a logarithmic scale for the y-axis.
UnitsUnits 指定由查询返回的值的单位。Specify the units for the values returned by the query. 此信息用于显示在图表上指示值类型的标签,并可用于转换值。This information is used to display labels on the chart indicating the value types and optionally for converting the values. 单位类型”指定单位的类别,并定义“当前单位类型”可用的值。The Unit Type specifies the category of the unit and defines the Current Unit Type values that are available. 如果选择一个位于“转换为” 中的值,则该数字值将从“当前单位” 类型转换为“转换为” 类型。If you select a value in Convert to then the numeric values are converted from the Current Unit type to the Convert to type.
自定义标签Custom label 要在 Y 轴上“单位”类型标签旁边显示的文本 。The text that's displayed for the y-axis next to the label for the Unit type. 如果未指定任何标签,则将仅显示“单位”类型 。If no label is specified, only the Unit type is displayed.
高级Advanced > 数据流验证> Data-flow verification
EnabledEnabled 如果应为磁贴启用数据流验证,请选择此链接。Select this link if data-flow verification should be enabled for the tile. 如果数据不可用,此方法将提供一条替代消息。This approach provides an alternate message if data is unavailable. 通常使用此方法在安装视图后数据变为可用状态的短暂过程中提供一条消息。You ordinarily use the approach to provide a message during the temporary period when the view is installed and the data becomes available.
查询Query 要运行的查询,用于确定该视图是否有可用数据。The query that's run to determine whether data is available for the view. 如果查询无结果返回,则会显示一条消息而不是主查询中的值。If the query returns no results, a message is displayed in place of the value of the main query.
MessageMessage 数据流验证查询无数据返回时显示的消息。The message that's displayed if the data-flow verification query returns no data. 如果没有提供任何消息,则会显示“正在执行评估”状态消息 。If you provide no message, a Performing Assessment status message is displayed.

折线图和标注磁贴Line chart and callout tile

此磁贴包含一个折线图,其中显示了一段时间内来自一个日志查询中的具有多个系列;另外还包含一个标注,其中显示了汇总值。This tile has both a line chart that displays multiple series from a log query over time and a callout with a summarized value.

折线图和标注磁贴

设置Setting 说明Description
NameName 在磁贴顶部显示的文本。The text that's displayed at the top of the tile.
说明Description 在磁贴名称下面显示的文本。The text that's displayed under the tile name.
折线图Line chart
查询Query 要为该折线图运行的查询。The query that's run for the line chart. 第一个属性应为文本值,第二个属性应为数值。The first property is a text value, and the second property is a numeric value. 此查询通常使用 measure 关键字来汇总结果。This query ordinarily uses the measure keyword to summarize results. 如果查询使用 interval 关键字,则 X 轴将使用此时间间隔。If the query uses the interval keyword, the x-axis uses this time interval. 如果查询不使用 interval 关键字,则 X 轴使用每小时间隔。If the query doesn't use the interval keyword, the x-axis uses hourly intervals.
折线图Line chart > 标注> Callout
标注标题Callout title 标注值上方显示的文本。The text that's displayed above the callout value.
序列名称Series name 用作标注值的序列属性值。The series property value to be used as the callout value. 如果没有提供序列,则将使用查询中的所有记录。If no series is provided, all records from the query are used.
操作Operation 要在值属性上执行以汇总到单个标注值的操作。The operation that's performed on the value property to summarize it as a single value for the callout.
  • 平均值:所有记录中的值的平均值。Average: The average of the values from all records.
  • 计数:由查询返回的所有记录的计数。Count: The count of all records that are returned by the query.
  • 上一次采样:图表中包含的最后一个时间间隔的值。Last sample: The value of the last interval that's included in the chart.
  • 最大值:图表中包含的时间间隔的最大值。Max: The maximum value of the intervals that are included in the chart.
  • 最小值:图表中包含的时间间隔的最小值。Min: The minimum value of the intervals that are included in the chart.
  • 总和:所有记录中的值的总和。Sum: The sum of the values from all records.
折线图Line chart > Y 轴> Y-axis
使用对数刻度Use Logarithmic Scale 选择此链接可对 Y 轴使用对数刻度。Select this link to use a logarithmic scale for the y-axis.
UnitsUnits 指定由查询返回的值的单位。Specify the units for the values to be returned by the query. 此信息用于显示在图表上指示值类型的标签,并可用于转换值。This information is used to display chart labels that indicate the value types and, optionally, to convert the values. “单位类型”指定单位的类别,并定义可用的“当前单位类型”值 。The Unit type specifies the category of the unit and defines the available Current Unit type values. 如果选择一个位于“转换为” 中的值,则该数字值将从“当前单位” 类型转换为“转换为” 类型。If you select a value in Convert to, the numeric values are converted from the Current Unit type to the Convert to type.
自定义标签Custom label 要在 Y 轴上“单位”类型标签旁边显示的文本 。The text that's displayed for the y-axis next to the label for the Unit type. 如果未指定任何标签,则将仅显示“单位”类型 。If no label is specified, only the Unit type is displayed.
高级Advanced > 数据流验证> Data-flow verification
EnabledEnabled 如果应为磁贴启用数据流验证,请选择此链接。Select this link if data-flow verification should be enabled for the tile. 如果数据不可用,此方法将提供一条替代消息。This approach provides an alternate message if data is unavailable. 通常使用此方法在安装视图后数据变为可用状态的短暂过程中提供一条消息。You ordinarily use the approach to provide a message during the temporary period when the view is installed and the data becomes available.
查询Query 要运行的查询,用于确定该视图是否有可用数据。The query that's run to determine whether data is available for the view. 如果查询无结果返回,则会显示一条消息而不是主查询中的值。If the query returns no results, a message is displayed in place of the value of the main query.
MessageMessage 数据流验证查询无数据返回时显示的消息。The message that's displayed if the data-flow verification query returns no data. 如果没有提供任何消息,则会显示“正在执行评估”状态消息 。If you provide no message, a Performing Assessment status message is displayed.

两个时间线磁贴Two timelines tile

两个时间线磁贴以柱形图显示一段时间内的两个日志查询的结果。The Two timelines tile displays the results of two log queries over time as column charts. 为每个序列显示一个标注。A callout is displayed for each series.

两个时间线磁贴

设置Setting 说明Description
NameName 在磁贴顶部显示的文本。The text that's displayed at the top of the tile.
说明Description 在磁贴名称下面显示的文本。The text that's displayed under the tile name.
第一个图表First Chart
图例Legend 在第一个序列的标注下显示的文本。The text that's displayed under the callout for the first series.
颜色Color 用于第一个序列中的列的颜色。The color that's used for the columns in the first series.
图表查询Chart query 针对第一个序列运行的查询。The query that's run for the first series. 每个时间间隔内记录数由图表列表示。The count of the records over each time interval is represented by the chart columns.
操作Operation 要在值属性上执行以汇总到单个标注值的操作。The operation that's performed on the value property to summarize it as a single value for the callout.
  • 平均值:所有记录中的值的平均值。Average: The average of the values from all records.
  • 计数:由查询返回的所有记录的计数。Count: The count of all records that are returned by the query.
  • 上一次采样:图表中包含的最后一个时间间隔的值。Last sample: The value of the last interval that's included in the chart.
  • 最大值:图表中包含的时间间隔的最大值。Max: The maximum value of the intervals that are included in the chart.
第二个图表Second chart
图例Legend 在第二个序列的标注下显示的文本。The text that's displayed under the callout for the second series.
颜色Color 用于第二个序列中的列的颜色。The color that's used for the columns in the second series.
图表查询Chart Query 针对第二个序列运行的查询。The query that's run for the second series. 每个时间间隔内记录数由图表列表示。The count of the records over each time interval is represented by the chart columns.
操作Operation 要在值属性上执行以汇总到单个标注值的操作。The operation that's performed on the value property to summarize it as a single value for the callout.
  • 平均值:所有记录中的值的平均值。Average: The average of the values from all records.
  • 计数:由查询返回的所有记录的计数。Count: The count of all records that are returned by the query.
  • 上一次采样:图表中包含的最后一个时间间隔的值。Last sample: The value of the last interval that's included in the chart.
  • 最大值:图表中包含的时间间隔的最大值。Max: The maximum value of the intervals that are included in the chart.
高级Advanced > 数据流验证> Data-flow verification
EnabledEnabled 如果应为磁贴启用数据流验证,请选择此链接。Select this link if data-flow verification should be enabled for the tile. 如果数据不可用,此方法将提供一条替代消息。This approach provides an alternate message if data is unavailable. 通常使用此方法在安装视图后数据变为可用状态的短暂过程中提供一条消息。You ordinarily use the approach to provide a message during the temporary period when the view is installed and the data becomes available.
查询Query 要运行的查询,用于确定该视图是否有可用数据。The query that's run to determine whether data is available for the view. 如果查询无结果返回,则会显示一条消息而不是主查询中的值。If the query returns no results, a message is displayed in place of the value of the main query.
MessageMessage 数据流验证查询无数据返回时显示的消息。The message that's displayed if the data-flow verification query returns no data. 如果没有提供任何消息,则会显示“正在执行评估”状态消息 。If you provide no message, a Performing Assessment status message is displayed.

后续步骤Next steps