Skip to main content

Dashboard

Resource Dashboard in pulumi-logtail.
4 min read

Resource Dashboard in pulumi-logtail.

Pulumi type: logtail:index/dashboard:Dashboard.

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
dashboardGroupIdnumbernoThe ID of the dashboard group this dashboard belongs to. Use 0 to remove from group.
datastringnoThe dashboard configuration data as a JSON string. When set, the dashboard is created via the import API and any change forces re-creation. Cannot be combined with individual fields like refresh_interval, date_range_from, chart and variable blocks, etc.
dateRangeFromstringnoThe start of the date range (e.g., 'now-3h', 'now-24h').
dateRangeTostringnoThe end of the date range (e.g., 'now').
namestringnoThe name of the dashboard.
refreshIntervalnumbernoThe auto-refresh interval in seconds.
sourceEligibilitySqlstringnoSQL expression to filter eligible sources.
teamNamestringnoThe team name to associate with the dashboard when using a global API token. You can't update this value later.
variablesDashboardVariable (input)[]noVariables for this dashboard. Default variables (time, start_time, end_time, source) are auto-created.

Outputs#

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

PropertyTypeComputedDescription
createdAtstringyesThe time when this dashboard was created.
dashboardGroupIdnumbernoThe ID of the dashboard group this dashboard belongs to. Use 0 to remove from group.
datastringnoThe dashboard configuration data as a JSON string. When set, the dashboard is created via the import API and any change forces re-creation. Cannot be combined with individual fields like refresh_interval, date_range_from, chart and variable blocks, etc.
dateRangeFromstringnoThe start of the date range (e.g., 'now-3h', 'now-24h').
dateRangeTostringnoThe end of the date range (e.g., 'now').
namestringnoThe name of the dashboard.
refreshIntervalnumbernoThe auto-refresh interval in seconds.
sourceEligibilitySqlstringnoSQL expression to filter eligible sources.
teamIdnumberyesThe team ID of the dashboard.
teamNamestringnoThe team name to associate with the dashboard when using a global API token. You can't update this value later.
updatedAtstringyesThe time when this dashboard was last updated.
variablesDashboardVariable (output)[]noVariables for this dashboard. Default variables (time, start_time, end_time, source) are auto-created.

DashboardVariable (input)#

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

PropertyTypeRequiredDescription
defaultValuesstring[]noFor 'string', 'number', and 'boolean' variables: fallback value used when values is empty. For 'select_value' variables: the predefined options shown in the picker. Unused for other types.
namestringyesThe name of the variable (used as {{name}} in queries).
sqlDefinitionstringnoSQL definition for 'select_with_sql' or 'multi_select_with_sql' type variables.
valuesstring[]noThe selected values. For 'source' variables these are the source IDs the variable resolves to (e.g. logtail_source.web.id) - this is the field that selects the source. For other types it is the current picker selection or input.
variableTypestringyesThe type of variable: 'source', 'string', 'number', 'date', 'datetime', 'boolean', 'sql_expression', 'select_value', 'select_with_sql', or 'multi_select_with_sql'.

DashboardVariable (output)#

Output object DashboardVariable. Fields below belong to this object.

PropertyTypeAlways presentDescription
defaultValuesstring[]yesFor 'string', 'number', and 'boolean' variables: fallback value used when values is empty. For 'select_value' variables: the predefined options shown in the picker. Unused for other types.
namestringyesThe name of the variable (used as {{name}} in queries).
sqlDefinitionstringyesSQL definition for 'select_with_sql' or 'multi_select_with_sql' type variables.
valuesstring[]yesThe selected values. For 'source' variables these are the source IDs the variable resolves to (e.g. logtail_source.web.id) - this is the field that selects the source. For other types it is the current picker selection or input.
variableTypestringyesThe type of variable: 'source', 'string', 'number', 'date', 'datetime', 'boolean', 'sql_expression', 'select_value', 'select_with_sql', or 'multi_select_with_sql'.