github.com/turbot/steampipe@v1.7.0-rc.0.0.20240517123944-7cef272d4458/tests/manual_testing/node_reuse/slow_dashboard/dashboard.sp (about)

     1  dashboard "slow" {
     2    input "i1" {
     3      sql = <<-EOQ
     4            select arn as label, arn as value from aws_account
     5          EOQ
     6      placeholder = "enter a val"
     7    }
     8  
     9  
    10    title         = "Many Withs"
    11    with "n1" {
    12     query = query.q1
    13    }
    14    with "n2" {
    15      sql = <<-EOQ
    16            select $1
    17          EOQ
    18      args = [self.input.i1.value]
    19    }
    20  
    21    graph {
    22      title = "Relationships"
    23      width = 12
    24      type  = "graph"
    25  
    26  
    27      node "n1" {
    28        sql = <<-EOQ
    29      select
    30        $1 as id,
    31        $1 as title,
    32      pg_sleep(5)
    33  EOQ
    34        args = [ with.n1.rows[0]]
    35      }
    36  
    37    }
    38  
    39  }
    40  
    41  query "q1"{
    42    sql = <<-EOQ
    43            select 'n1'
    44          EOQ
    45  }