• Home
  • Dynatrace API
  • Environment
  • Settings
  • Schemas
  • Chart group cards

Settings API - Chart group cards schema table

Chart group cards (builtin:ua.chart-groups)

You can define here multiple chart groups with a unique key. These defined chart groups can then be referenced in the screen layout config. In the base config you can specify the order and if a group is shown on the screen.

Schema IDSchema groupsScope
builtin:ua.chart-groups
  • group:unified-analysis
ua-screen
Retrieve schema via Settings API
GETManagedhttps://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:ua.chart-groups
SaaShttps://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:ua.chart-groups
Environment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:ua.chart-groups

Authentication

To execute this request, you need an access token with Read settings (settings.read) scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

PropertyLabelTypeDescriptionRequired
keyKeytext

Unique key, which is used to map to this chart group in the screen layout config

required
modeModeenum-required
displayNameDisplay nametext

The title of the card.

optional
descriptionDescriptiontext

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
entitySelectorTemplateEntity selector templatetext

An entity selector that is used to fetch data for related entities

For example for a host screen where you want to show the processes charts this might look like this:
type(PROCESS_GROUP_INSTANCE), fromRelationships.isProcessOf($(entityConditions))

Please mind that the $(entityConditions) is a placeholder for the relation condition.

Leave empty to gather data for current entity.

optional
numberOfVisibleChartsNumber of charts to displayinteger-required
hideEmptyChartsHide empty chartsboolean

If true, All empty charts will be hidden.

Decreases "Number of charts to display" to the number of available charts.

optional
chartsChartslist

Collection of charts definition in this chart group

required
appendDetectedMetricsAppend Detected Metricsboolean

If true, Charts for all associated metrics will be generated and appended to the list in chart selector.

optional
chartsInRowMaximum number of charts in a rowinteger-optional
conditionsList of conditionsset

All conditions from the list need to be fulfilled for the ChartGroup card to be visible

required

Request body objects

The Threshold object
PropertyLabelTypeDescriptionRequired
colorColortext

RGB code of color

required
valueThreshold valuefloat

Value of the threshold. Area above this threshold will be marked by selected color

required
The MetricSelector object
PropertyLabelTypeDescriptionRequired
metricSelectorMetric selector expressiontext-required
The SingleValueConfig object
PropertyLabelTypeDescriptionRequired
metricMetricMetricSelector

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
defaultAggregationDefault aggregationenum

Defines default aggregation of the chart timeseries. If not defined or selected one is not supported, it is deduced from metrics metadata.

optional
thresholdsList thresholdsset

List of defined thresholds for the chart

required
showTrendShow trendboolean

When true, the trend is visible

optional
showSparklineShow sparklineboolean

When true, the sparkline is visible

optional
displayNameDisplay nametext

Display name for value

optional
foldTransformationFold transformationenum

Defines transformation method, which fold data into single value. If not defined, it is deduced automatically.

optional
The ColorOverrides object
PropertyLabelTypeDescriptionRequired
colorColortext

RGB code of color

required
seriesNameSeries Nametext

Series name should point to whole metric or single dimension name

required
The PieChartConfig object
PropertyLabelTypeDescriptionRequired
metricMetricMetricSelector

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
defaultAggregationDefault aggregationenum

Defines default aggregation of the chart timeseries. If not defined or selected one is not supported, it is deduced from metrics metadata.

optional
themeColorColor themeenum-optional
colorOverrideList of color overridesset

There is possibility to override color of single series, even single dimension of a metric

required
showLegendShow legendboolean

When true, axis legend on the whole chart is visible

optional
The XAxis object
PropertyLabelTypeDescriptionRequired
nameNametext-optional
visibleIs visibleboolean

When true, axis legend is visible

required
The YAxis object
PropertyLabelTypeDescriptionRequired
keyY-Axis keytext

Y-axis key to be matched with metric's reference

required
nameAxis titletext

Axis title

optional
positionPositionenum

Pick a side for the axis

required
visibleIs visibleboolean

When true, axis is visible

required
minMintext

Minimal axis value

optional
maxMaxtext

Maximal axis value

optional
The VisualizationOptions object
PropertyLabelTypeDescriptionRequired
themeColorColor themeenum-optional
seriesTypeSeries typeenum-optional
showLegendShow legendboolean

When true, axis legend on the whole chart is visible

optional
The MetricVisualizationOptions object
PropertyLabelTypeDescriptionRequired
themeColorColor themeenum-optional
seriesTypeSeries typeenum-optional
displayNameDisplay nametext-optional
colorOverrideList of color overridesset

There is possibility to override color of single series, even single dimension of a metric

required
The MetricDefinition object
PropertyLabelTypeDescriptionRequired
metricSelectorMetric selector expressiontext

A metric selector expression for a dedicated metric line

For example, if you want to show the available disk space of a host, use
builtin:host.disk.free.

It also supports the ability to split by dimension, aggregate the selected metric and a lot more, for example:
builtin:host.disk.free:splitBy(dt.entity.disk):max
The filter for the ME id will be applied automatically.

The Metric Browser gives an overview of all the metrics an the available operations for every metric.

required
visualizationVisualizationMetricVisualizationOptions-optional
yAxisKeyY-Axis keytext

Select Y-axis to be matched with this metric by its key

optional
The GraphChartConfig object
PropertyLabelTypeDescriptionRequired
metricsMetricslist

Defines how to fetch data for a single line in the chart

required
defaultAggregationDefault aggregationenum

Defines default aggregation of the chart timeseries. If not defined or selected one is not supported, it is deduced from metrics metadata.

optional
visualizationVisualizationVisualizationOptions-optional
thresholdsList thresholdsset

List of defined thresholds for the chart

required
yAxesY axeslist

You can control how each Y axis of your graph are displayed

required
xAxisX axisXAxis

You can control how X axis of your graph are displayed

optional
stackedStacked chartboolean

When true, series on chart are stacked.

optional
connectGapsConnect gapsboolean

When true, gaps in charts will be connected even if there is truly no data

optional
The ChartDefinition object
PropertyLabelTypeDescriptionRequired
displayNameDisplay nametext-required
detailsMessageDetails messagetext

The message displayed when chart-group choice of charts and aggregation is fixed

optional
conditionsList of conditionsset

All conditions from the list need to be fulfilled for the chart to be visible

required
visualizationTypeVisualization Typeenum-required
graphChartConfig-GraphChartConfig-required
pieChartConfig-PieChartConfig-required
singleValueConfig-SingleValueConfig-required