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#
| Property | Type | Required | Description |
|---|---|---|---|
chartType | string | yes | The 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'. |
dashboardId | string | yes | The ID of the dashboard this chart belongs to. |
description | string | no | The description of this chart. |
h | number | no | The height of this chart in grid units. |
name | string | no | The name of this chart. |
queries | DashboardChartQuery (input)[] | yes | The queries for this chart. At least one query is required. |
settings | string | no | Chart settings as a JSON string. Settings vary by chart type and include options like unit, decimal_places, legend, stacking, etc. |
w | number | no | The width of this chart in grid units (1-12). |
x | number | no | The horizontal position of this chart in the dashboard grid (0-11). |
y | number | no | The vertical position of this chart in the dashboard grid. |
Outputs#
Computed outputs are produced by the provider. They are not constructor arguments.
| Property | Type | Computed | Description |
|---|---|---|---|
chartType | string | no | The 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'. |
createdAt | string | yes | The time when this chart was created. |
dashboardId | string | no | The ID of the dashboard this chart belongs to. |
description | string | no | The description of this chart. |
h | number | no | The height of this chart in grid units. |
name | string | no | The name of this chart. |
queries | DashboardChartQuery (output)[] | no | The queries for this chart. At least one query is required. |
settings | string | no | Chart settings as a JSON string. Settings vary by chart type and include options like unit, decimal_places, legend, stacking, etc. |
updatedAt | string | yes | The time when this chart was updated. |
w | number | no | The width of this chart in grid units (1-12). |
x | number | no | The horizontal position of this chart in the dashboard grid (0-11). |
y | number | no | The vertical position of this chart in the dashboard grid. |
DashboardChartQuery (input)#
Input object DashboardChartQuery. Fields below belong to this object, not to the parent.
| Property | Type | Required | Description |
|---|---|---|---|
id | number | no | The ID of this query (read-only). |
name | string | no | The name of the query. |
queryType | string | yes | The type of query: 'sql_expression', 'tail_query', or 'static_text'. Note: 'pql_expression', 'query_builder', and 'funnel_query' are read-only. |
sourceVariable | string | no | The source variable reference (default: 'source'). |
sqlQuery | string | no | The SQL query string. Required when queryType is 'sql_expression'. |
staticText | string | no | The static text content (markdown). Required when queryType is 'static_text'. |
whereCondition | string | no | The WHERE condition for filtering. Required when queryType is 'tail_query'. |
DashboardChartQuery (output)#
Output object DashboardChartQuery. Fields below belong to this object.
| Property | Type | Always present | Description |
|---|---|---|---|
id | number | yes | The ID of this query (read-only). |
name | string | yes | The name of the query. |
queryType | string | yes | The type of query: 'sql_expression', 'tail_query', or 'static_text'. Note: 'pql_expression', 'query_builder', and 'funnel_query' are read-only. |
sourceVariable | string | yes | The source variable reference (default: 'source'). |
sqlQuery | string | yes | The SQL query string. Required when queryType is 'sql_expression'. |
staticText | string | yes | The static text content (markdown). Required when queryType is 'static_text'. |
whereCondition | string | yes | The WHERE condition for filtering. Required when queryType is 'tail_query'. |