Skip to main content

DashboardChart

Resource DashboardChart in pulumi-logtail.
4 min read

Resource DashboardChart in pulumi-logtail.

Pulumi type: logtail:index/dashboardChart:DashboardChart.

name is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

Example#

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

Arguments#

PropertyTypeRequiredDescription
chartTypestringyesThe type of chart: 'line_chart', 'bar_chart', 'pie_chart', 'number_chart', 'table_chart', 'tail_chart', 'static_text_chart', 'scatter_chart', 'gauge_chart', 'heatmap_chart', 'map_chart', 'text_chart', 'funnel_chart', or 'anomalies_chart'.
dashboardIdstringyesThe ID of the dashboard this chart belongs to.
descriptionstringnoThe description of this chart.
hnumbernoThe height of this chart in grid units.
namestringnoThe name of this chart.
queriesDashboardChartQuery (input)[]yesThe queries for this chart. At least one query is required.
settingsstringnoChart settings as a JSON string. Settings vary by chart type and include options like unit, decimal_places, legend, stacking, etc.
wnumbernoThe width of this chart in grid units (1-12).
xnumbernoThe horizontal position of this chart in the dashboard grid (0-11).
ynumbernoThe vertical position of this chart in the dashboard grid.

Outputs#

Computed outputs are produced by the provider. They are not constructor arguments.

PropertyTypeComputedDescription
chartTypestringnoThe type of chart: 'line_chart', 'bar_chart', 'pie_chart', 'number_chart', 'table_chart', 'tail_chart', 'static_text_chart', 'scatter_chart', 'gauge_chart', 'heatmap_chart', 'map_chart', 'text_chart', 'funnel_chart', or 'anomalies_chart'.
createdAtstringyesThe time when this chart was created.
dashboardIdstringnoThe ID of the dashboard this chart belongs to.
descriptionstringnoThe description of this chart.
hnumbernoThe height of this chart in grid units.
namestringnoThe name of this chart.
queriesDashboardChartQuery (output)[]noThe queries for this chart. At least one query is required.
settingsstringnoChart settings as a JSON string. Settings vary by chart type and include options like unit, decimal_places, legend, stacking, etc.
updatedAtstringyesThe time when this chart was updated.
wnumbernoThe width of this chart in grid units (1-12).
xnumbernoThe horizontal position of this chart in the dashboard grid (0-11).
ynumbernoThe vertical position of this chart in the dashboard grid.

DashboardChartQuery (input)#

Input object DashboardChartQuery. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
idnumbernoThe ID of this query (read-only).
namestringnoThe name of the query.
queryTypestringyesThe type of query: 'sql_expression', 'tail_query', or 'static_text'. Note: 'pql_expression', 'query_builder', and 'funnel_query' are read-only.
sourceVariablestringnoThe source variable reference (default: 'source').
sqlQuerystringnoThe SQL query string. Required when queryType is 'sql_expression'.
staticTextstringnoThe static text content (markdown). Required when queryType is 'static_text'.
whereConditionstringnoThe WHERE condition for filtering. Required when queryType is 'tail_query'.

DashboardChartQuery (output)#

Output object DashboardChartQuery. Fields below belong to this object.

PropertyTypeAlways presentDescription
idnumberyesThe ID of this query (read-only).
namestringyesThe name of the query.
queryTypestringyesThe type of query: 'sql_expression', 'tail_query', or 'static_text'. Note: 'pql_expression', 'query_builder', and 'funnel_query' are read-only.
sourceVariablestringyesThe source variable reference (default: 'source').
sqlQuerystringyesThe SQL query string. Required when queryType is 'sql_expression'.
staticTextstringyesThe static text content (markdown). Required when queryType is 'static_text'.
whereConditionstringyesThe WHERE condition for filtering. Required when queryType is 'tail_query'.