mirror of
https://github.com/turbot/steampipe.git
synced 2026-03-21 16:00:13 -04:00
46 lines
618 B
HCL
46 lines
618 B
HCL
dashboard "slow" {
|
|
input "i1" {
|
|
sql = <<-EOQ
|
|
select arn as label, arn as value from aws_account
|
|
EOQ
|
|
placeholder = "enter a val"
|
|
}
|
|
|
|
|
|
title = "Many Withs"
|
|
with "n1" {
|
|
query = query.q1
|
|
}
|
|
with "n2" {
|
|
sql = <<-EOQ
|
|
select $1
|
|
EOQ
|
|
args = [self.input.i1.value]
|
|
}
|
|
|
|
graph {
|
|
title = "Relationships"
|
|
width = 12
|
|
type = "graph"
|
|
|
|
|
|
node "n1" {
|
|
sql = <<-EOQ
|
|
select
|
|
$1 as id,
|
|
$1 as title,
|
|
pg_sleep(5)
|
|
EOQ
|
|
args = [ with.n1.rows[0]]
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
query "q1"{
|
|
sql = <<-EOQ
|
|
select 'n1'
|
|
EOQ
|
|
}
|