DashboardCardState
A card within a dashboard — one metric, chart, table, block of markdown, or embedded custom app. Cards display; they take no actions.
Fields
Unique identifier
Parent dashboard ID
Card display title
Card type determining renderer
Possible values (8)
CUSTOM_APPEmbeds a custom app
RESOURCE_TABLEDisplays a lightweight table of recent records
MARKDOWNDisplays rich text / markdown content
METRICDisplays a single metric value with optional query
METRIC_CHARTTime-bucketed line/bar chart powered by aggregateMetricPoints
METRIC_HISTOGRAMValue distribution histogram powered by metricHistogram
METRIC_GAUGECurrent value gauge with trend projection powered by metricProjection
METRIC_COMPARISONMulti-metric overlay chart powered by compareMetrics
Card-type-specific configuration (JSON)
Grid layout position and size
Sort order for card display
Creation timestamp (ISO8601)
Last update timestamp (ISO8601)
Exact type SDL
"""
A card within a dashboard — one metric, chart, table, block of markdown, or embedded custom app. Cards display; they take no actions.
"""
type DashboardCardState @iac_resource(name: "dashboard_card") @iac_ops(create: "createDashboardCard", read: "getDashboardCard", update: "updateDashboardCard", delete: "deleteDashboardCard") {
"""Unique identifier"""
id: DashboardCardID! @iac_identity(assignedBy: SERVER) @iac_computed
"""Parent dashboard ID"""
dashboardId: DashboardID! @iac_ref(resource: "dashboard") @iac_createOnly
"""Card display title"""
title: String!
"""Card type determining renderer"""
cardType: DashboardCardType!
"""Card-type-specific configuration (JSON)"""
config: JSON!
"""Grid layout position and size"""
position: DashboardCardPosition!
"""Sort order for card display"""
sortOrder: Int!
"""Creation timestamp (ISO8601)"""
createdAt: String! @iac_computed
"""Last update timestamp (ISO8601)"""
updatedAt: String! @iac_computed
}