Settings API - Metric table cards schema table
Metric table cards (builtin:ua.metric-table
)
Define metric tables and reference them in screen layout.
Schema ID | Schema groups | Scope |
---|---|---|
builtin:ua.metric-table |
| ua-screen |
Parameters
Property | Label | Type | Description | Required |
---|---|---|---|---|
key | Key | text | Unique key, which is used to map to this entities list in the screen layout config. | required |
displayName | Display name | text | The title of the card. | optional |
description | Description | text | The description of the card Markdown syntax can be used to enrich description. To define a link, you can only use seaOtter links (https://dt-url.net/XXXXXXX) or action expression The format of a single action expression is: actionName|key=param|key2=param2 | optional |
entitySelectorTemplate | Entity selector template | text | An entity selector to narrow down dimensions. For example for a process group screen and metric with PGI dimension this might look like this: Please mind that the If current ME is available as a dimension in metric you can directly use only May be left empty if specified in screen layout. | optional |
pageSize | Page size | integer | The number of entities displayed on one page. | required |
displayCharts | Display charts | boolean | When true, the charts will be displayed above the list. Be aware of performance overhead with vast number of metrics and entities. | required |
displayMicroCharts | Display micro charts | boolean | When true, micro charts will be displayed for added metrics. Be aware of performance overhead with vast number of metrics and entities. | optional |
enableDetailsExpandability | Enable details expandable section | boolean | When true, detailed charts for each entity will be available. | required |
numberOfVisibleCharts | Number of charts to display | integer | The number of charts to display above the list and in details section. | required |
hideEmptyCharts | Hide empty charts | boolean | If true, All empty charts will be hidden. Decreases "Number of charts to display" to the number of available charts. | optional |
charts | Charts | list | Define charts to display timeseries data in the table. Table columns are based on dimensions from metrics results of those charts. Make sure metrics of all charts have the same dimensions in result. | required |
emptyState | Empty state definition | EmptyStateType | Specifies message shown when there are no entities found. | optional |
initialSorting | Initial sorting definition | InitialSortingType | Specifies initial sorting configuration. | optional |
filtering | Filtering | FilteringType | Specifies filtering configuration. | optional |
conditions | List of conditions | set | All conditions from the list need to be fulfilled for the table to be visible | required |
Request body objects
The SplittingChartConfig
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
displayChart | Display splitting chart | boolean | When true, splitting chart for this filter will be displayed | required |
The EntityFilterDefinition
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
type | Type | text | - | required |
entityTypes | Entity types list | set | List of entity types that are filtered by this filter. All of them must have defined relationship to entity. | required |
displayName | Display name | text | - | required |
freeText | Is free text filter | boolean | When true, user can type any text value. When false, user can only select one of the suggestions. | required |
modifier | Text filter modifier | enum | Specifies the behavior of free text filter's value | required |
defaultSearch | Is default search | boolean | When true, as user is typing it will suggest this key as default for searching. There can be only 1 default search filter in filtering. | required |
distinct | Is distinct | boolean | When true, there can be only a single instance of this filter. | required |
hidden | Is hidden | boolean | When true, this filter will be hidden. | optional |
splittingChart | Splitting chart | SplittingChartConfig | Configure splitting chart for this filter. | optional |
The EntityFilterGroupDefinition
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
displayName | Group display name | text | - | required |
filters | Filters | list | Define entity filters. | required |
The FilteringType
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
relationships | Entity relationships list | set | To filter related entities you need to define relationship between them.
For example to filter by process attributes on a host list you need to add entity selector with relationship like this: | required |
entityFilters | Entity filters list | list | - | required |
The InitialSortingType
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
columnId | Column ID | text | Column ID is a unique identifier of column. There are several ID types for different column types:
| required |
order | Sorting order | enum | - | required |
The EmptyStateType
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
header | Message header | text | - | required |
body | Message body | text | - | required |
The Threshold
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
color | Color | text | RGB code of color | required |
value | Threshold value | float | Value of the threshold. Area above this threshold will be marked by selected color | required |
The MetricSelector
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
metricSelector | Metric selector expression | text | - | required |
metricSelectorSort | Metric selector expression - sort | text | A metric selector expression for a dedicated metric line This selector is used to gather data for currently sorted column. It should point to the single value. It queries data for whole table for given metric. By default, that selector is created based on main one. e.g.
for For other examples, examine When providing custom selector, following placeholders needs to be included:
Do not include limit operator. It will be appended automatically according to card configuration. | optional |
metricSelectorDetailed | Metric selector expression - details | text | A metric selector expression for a dedicated metric line This selector is used to gather data for details section in table row. By default, that selector is created based on main one. e.g.
for For other examples, examine When providing custom selector, following placeholders needs to be included:
| optional |
The SingleValueConfig
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
metric | Metric | MetricSelector | Defines how to fetch data for the single value visualization, please note that it shows only the first enabled metric from the query and also various fold transformations needs to be explicitly defined here in the selector | required |
defaultAggregation | Default aggregation | enum | Defines default aggregation of the chart timeseries. If not defined or selected one is not supported, it is deduced from metrics metadata. | optional |
thresholds | List thresholds | set | List of defined thresholds for the chart | required |
showTrend | Show trend | boolean | When true, the trend is visible | optional |
showSparkline | Show sparkline | boolean | When true, the sparkline is visible | optional |
displayName | Display name | text | Display name for value | optional |
foldTransformation | Fold transformation | enum | Defines transformation method, which fold data into single value. If not defined, it is deduced automatically. | optional |
The ColorOverrides
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
color | Color | text | RGB code of color | required |
seriesName | Series Name | text | Series name should point to whole metric or single dimension name | required |
The PieChartConfig
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
metric | Metric | MetricSelector | Defines how to fetch data for the pie chart, please note that various fold transformations needs to be explicitly defined here in the selector | required |
defaultAggregation | Default aggregation | enum | Defines default aggregation of the chart timeseries. If not defined or selected one is not supported, it is deduced from metrics metadata. | optional |
themeColor | Color theme | enum | - | optional |
colorOverride | List of color overrides | set | There is possibility to override color of single series, even single dimension of a metric | required |
showLegend | Show legend | boolean | When true, axis legend on the whole chart is visible | optional |
The XAxis
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
name | Name | text | - | optional |
visible | Is visible | boolean | When true, axis legend is visible | required |
The YAxis
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
key | Y-Axis key | text | Y-axis key to be matched with metric's reference | required |
name | Axis title | text | Axis title | optional |
position | Position | enum | Pick a side for the axis | required |
visible | Is visible | boolean | When true, axis is visible | required |
min | Min | text | Minimal axis value | optional |
max | Max | text | Maximal axis value | optional |
The VisualizationOptions
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
themeColor | Color theme | enum | - | optional |
seriesType | Series type | enum | - | optional |
showLegend | Show legend | boolean | When true, axis legend on the whole chart is visible | optional |
The MetricVisualizationOptions
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
themeColor | Color theme | enum | - | optional |
seriesType | Series type | enum | - | optional |
displayName | Display name | text | - | optional |
colorOverride | List of color overrides | set | There is possibility to override color of single series, even single dimension of a metric | required |
The MetricDefinition
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
metricSelector | Metric selector expression | text | A metric selector expression for a dedicated metric line For example, if you want to show the available disk space of a host, use It also supports the ability to split by dimension, aggregate the selected metric and a lot more, for example: The Metric Browser gives an overview of all the metrics an the available operations for every metric. | required |
metricSelectorSort | Metric selector expression - sort | text | A metric selector expression for a dedicated metric line This selector is used to gather data for currently sorted column. It should point to the single value. It queries data for whole table for given metric. By default, that selector is created based on main one. e.g.
for For other examples, examine When providing custom selector, following placeholders needs to be included:
Do not include limit operator. It will be appended automatically according to card configuration. | optional |
metricSelectorDetailed | Metric selector expression - details | text | A metric selector expression for a dedicated metric line This selector is used to gather data for details section in table row. By default, that selector is created based on main one. e.g.
for For other examples, examine When providing custom selector, following placeholders needs to be included:
| optional |
visualization | Visualization | MetricVisualizationOptions | - | optional |
yAxisKey | Y-Axis key | text | Select Y-axis to be matched with this metric by its key | optional |
The GraphChartConfig
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
metrics | Metrics | list | Defines how to fetch data for a single line in the chart | required |
defaultAggregation | Default aggregation | enum | Defines default aggregation of the chart timeseries. If not defined or selected one is not supported, it is deduced from metrics metadata. | optional |
visualization | Visualization | VisualizationOptions | - | optional |
thresholds | List thresholds | set | List of defined thresholds for the chart | required |
yAxes | Y axes | list | You can control how each Y axis of your graph are displayed | required |
xAxis | X axis | XAxis | You can control how X axis of your graph are displayed | optional |
stacked | Stacked chart | boolean | When true, series on chart are stacked. | optional |
connectGaps | Connect gaps | boolean | When true, gaps in charts will be connected even if there is truly no data | optional |
The ChartDefinition
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
displayName | Display name | text | - | required |
conditions | List of conditions | set | All conditions from the list need to be fulfilled for the chart to be visible | required |
visualizationType | Visualization Type | enum | - | required |
graphChartConfig | - | GraphChartConfig | - | required |
pieChartConfig | - | PieChartConfig | - | required |
singleValueConfig | - | SingleValueConfig | - | required |