Skip to main content

DashboardLayout

Resource DashboardLayout in pulumi-posthog.
3 min read

Resource DashboardLayout in pulumi-posthog.

Pulumi type: posthog:index/dashboardLayout:DashboardLayout.

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
dashboardIdnumberyesPostHog dashboard ID.
projectIdstringnoProject ID (environment) for this resource. Overrides the provider-level project_id.
tilesDashboardLayoutTile (input)[]yesOrdered list of tiles to manage on the dashboard.

Outputs#

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

PropertyTypeComputedDescription
dashboardIdnumbernoPostHog dashboard ID.
dashboardLayoutIdnumberyesResource ID (same value as dashboard_id).
projectIdstringnoProject ID (environment) for this resource. Overrides the provider-level project_id.
tilesDashboardLayoutTile (output)[]noOrdered list of tiles to manage on the dashboard.

DashboardLayoutTile (input)#

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

PropertyTypeRequiredDescription
colorstringnoBackground color of the tile. Valid values are defined by the PostHog API; see InsightColor in types.ts for the current list.
insightIdnumbernoID of the insight to display. Exactly one of insightId or textBody must be set.
layoutsJsonstringnoJSON object with breakpoint keys sm and/or xs, each containing position properties: x, y, w, h (required), and optionally minW, minH (e.g. {"sm":{"x":0,"y":0,"w":6,"h":5},"xs":{"x":0,"y":0,"w":1,"h":5}}). Semantic JSON equality is used to suppress phantom diffs.
showDescriptionbooleannoWhether to show the insight description on the tile. Omit the field to clear it back to the PostHog API default (null).
textBodystringnoMarkdown body for a text tile (max 4000 characters). Exactly one of insightId or textBody must be set.
tileIdnumbernoServer-assigned tile ID. Populated after the first apply.

DashboardLayoutTile (output)#

Output object DashboardLayoutTile. Fields below belong to this object.

PropertyTypeAlways presentDescription
colorstringnoBackground color of the tile. Valid values are defined by the PostHog API; see InsightColor in types.ts for the current list.
insightIdnumbernoID of the insight to display. Exactly one of insightId or textBody must be set.
layoutsJsonstringyesJSON object with breakpoint keys sm and/or xs, each containing position properties: x, y, w, h (required), and optionally minW, minH (e.g. {"sm":{"x":0,"y":0,"w":6,"h":5},"xs":{"x":0,"y":0,"w":1,"h":5}}). Semantic JSON equality is used to suppress phantom diffs.
showDescriptionbooleannoWhether to show the insight description on the tile. Omit the field to clear it back to the PostHog API default (null).
textBodystringnoMarkdown body for a text tile (max 4000 characters). Exactly one of insightId or textBody must be set.
tileIdnumberyesServer-assigned tile ID. Populated after the first apply.