resource "datadog_dashboard_json" "aoma_txmgr_health_overview_dashboard_json" {
  dashboard = jsonencode({
    title       = "AOMA TxMgr Health Overview"
    description = "AOMA TxMgr Health Overview"
    widgets = [
      {
        id = 1741546052261416
        definition = {
          title            = "System Resource Overview"
          background_color = "pink"
          show_title       = true
          type             = "group"
          layout_type      = "ordered"

          widgets = [
            {
              id = 433639257143918
              definition = {
                title       = "TxMgr instance 1 - CPU"
                title_size  = "16"
                title_align = "left"
                type        = "query_value"

                requests = [
                  {
                    formulas = [{ formula = "query1" }]
                    queries = [
                      {
                        query       = "avg:system.cpu.user{(host:aomap-txmgr-ecs-01.smeaomaprod.net OR host:i-07a020445e85d0194) AND $environment}"
                        data_source = "metrics"
                        name        = "query1"
                        aggregator  = "last"
                      }
                    ]
                    response_format = "scalar"
                    conditional_formats = [
                      { comparator = "<", value = 50, palette = "green_on_white" },
                      { comparator = "<", value = 90, palette = "yellow_on_white" },
                      { comparator = ">", value = 90, palette = "red_on_white" },
                    ]
                  }
                ]

                autoscale = true
                precision = 2
                timeseries_background = {
                  yaxis = { include_zero = true }
                  type  = "area"
                }
              }
              layout = { x = 0, y = 0, width = 3, height = 1 }
            },

            {
              id = 5015997829852870
              definition = {
                title       = "TxMgr instance 2 - CPU"
                title_size  = "16"
                title_align = "left"
                type        = "query_value"

                requests = [
                  {
                    formulas = [{ formula = "query1" }]
                    queries = [
                      {
                        query       = "avg:system.cpu.user{(host:aomap-txmgr-ecs-02.smeaomaprod.net or host:i-0b6eb2228e9dd3eea ) AND $environment}"
                        data_source = "metrics"
                        name        = "query1"
                        aggregator  = "last"
                      }
                    ]
                    response_format = "scalar"
                    conditional_formats = [
                      { comparator = "<", value = 50, palette = "green_on_white" },
                      { comparator = "<", value = 90, palette = "yellow_on_white" },
                      { comparator = ">", value = 90, palette = "red_on_white" },
                    ]
                  }
                ]

                autoscale             = true
                precision             = 2
                timeseries_background = { type = "area" }
              }
              layout = { x = 3, y = 0, width = 3, height = 1 }
            },

            {
              id = 1647000392901098
              definition = {
                title       = "TxMgr instance 3 - CPU"
                title_size  = "16"
                title_align = "left"
                type        = "query_value"

                requests = [
                  {
                    formulas = [{ formula = "query1" }]
                    queries = [
                      {
                        query       = "avg:system.cpu.user{(host:aomap-txmgr-ecs-03.smeaomaprod.net OR host:i-013384ba51c2b1b1c) AND $environment}"
                        data_source = "metrics"
                        name        = "query1"
                        aggregator  = "last"
                      }
                    ]
                    response_format = "scalar"
                    conditional_formats = [
                      { comparator = "<", value = 50, palette = "green_on_white" },
                      { comparator = "<", value = 90, palette = "yellow_on_white" },
                      { comparator = ">", value = 90, palette = "red_on_white" },
                    ]
                  }
                ]

                autoscale             = true
                precision             = 2
                timeseries_background = { type = "area" }
              }
              layout = { x = 6, y = 0, width = 3, height = 1 }
            },

            {
              id = 6300802477438282
              definition = {
                title       = "TxMgr instance 4 - CPU"
                title_size  = "16"
                title_align = "left"
                type        = "query_value"

                requests = [
                  {
                    formulas = [{ formula = "query1" }]
                    queries = [
                      {
                        query       = "avg:system.cpu.user{(host:aomap-txmgr-ecs-04.smeaomaprod.net OR host:i-06c6efd5af232a080) AND $environment}"
                        data_source = "metrics"
                        name        = "query1"
                        aggregator  = "last"
                      }
                    ]
                    response_format = "scalar"
                    conditional_formats = [
                      { comparator = "<", value = 50, palette = "green_on_white" },
                      { comparator = "<", value = 90, palette = "yellow_on_white" },
                      { comparator = ">", value = 90, palette = "red_on_white" },
                    ]
                  }
                ]

                autoscale             = true
                precision             = 2
                timeseries_background = { type = "area" }
              }
              layout = { x = 9, y = 0, width = 3, height = 1 }
            },

            {
              id = 5459088409814508
              definition = {
                title       = "TxMgr instance 1 - RAM"
                title_size  = "16"
                title_align = "left"
                type        = "query_value"

                requests = [
                  {
                    formulas = [
                      {
                        number_format = {
                          unit = { type = "canonical_unit", unit_name = "percent" }
                        }
                        formula = "((query1 - query3) * 100 / query2)"
                      }
                    ]
                    queries = [
                      {
                        data_source = "metrics"
                        name        = "query1"
                        query       = "avg:system.mem.used{(host:aomap-txmgr-ecs-01.smeaomaprod.net OR host:i-07a020445e85d0194 ) AND $environment}"
                        aggregator  = "last"
                      },
                      {
                        data_source = "metrics"
                        name        = "query3"
                        query       = "avg:system.mem.cached{(host:aomap-txmgr-ecs-01.smeaomaprod.net OR host:i-07a020445e85d0194 ) AND $environment}"
                        aggregator  = "last"
                      },
                      {
                        data_source = "metrics"
                        name        = "query2"
                        query       = "avg:system.mem.total{(host:aomap-txmgr-ecs-01.smeaomaprod.net OR host:i-07a020445e85d0194 ) AND $environment}"
                        aggregator  = "last"
                      },
                    ]
                    response_format = "scalar"
                    conditional_formats = [
                      { comparator = "<", value = 50, palette = "green_on_white" },
                      { comparator = "<", value = 90, palette = "yellow_on_white" },
                      { comparator = ">", value = 90, palette = "red_on_white" },
                    ]
                  }
                ]

                autoscale             = true
                precision             = 2
                timeseries_background = { type = "area" }
              }
              layout = { x = 0, y = 1, width = 3, height = 1 }
            },

            {
              id = 7629760863163630
              definition = {
                title       = "TxMgr instance 2 - RAM"
                title_size  = "16"
                title_align = "left"
                type        = "query_value"

                requests = [
                  {
                    formulas = [
                      {
                        number_format = {
                          unit = { type = "canonical_unit", unit_name = "percent" }
                        }
                        formula = "((query1 - query3) * 100 / query2)"
                      }
                    ]
                    queries = [
                      {
                        data_source = "metrics"
                        name        = "query1"
                        query       = "avg:system.mem.used{(host:aomap-txmgr-ecs-02.smeaomaprod.net OR host:i-0b6eb2228e9dd3eea ) AND $environment}"
                        aggregator  = "last"
                      },
                      {
                        data_source = "metrics"
                        name        = "query3"
                        query       = "avg:system.mem.cached{(host:aomap-txmgr-ecs-02.smeaomaprod.net OR host:i-0b6eb2228e9dd3eea ) AND $environment}"
                        aggregator  = "last"
                      },
                      {
                        data_source = "metrics"
                        name        = "query2"
                        query       = "avg:system.mem.total{(host:aomap-txmgr-ecs-02.smeaomaprod.net OR host:i-0b6eb2228e9dd3eea ) AND $environment}"
                        aggregator  = "last"
                      },
                    ]
                    response_format = "scalar"
                    conditional_formats = [
                      { comparator = "<", value = 50, palette = "green_on_white" },
                      { comparator = "<", value = 90, palette = "yellow_on_white" },
                      { comparator = ">", value = 90, palette = "red_on_white" },
                    ]
                  }
                ]

                autoscale             = true
                precision             = 2
                timeseries_background = { type = "area" }
              }
              layout = { x = 3, y = 1, width = 3, height = 1 }
            },

            {
              id = 7056477589218056
              definition = {
                title       = "TxMgr instance 3 - RAM"
                title_size  = "16"
                title_align = "left"
                type        = "query_value"

                requests = [
                  {
                    formulas = [
                      {
                        number_format = {
                          unit = { type = "canonical_unit", unit_name = "percent" }
                        }
                        formula = "((query1 - query3) * 100 / query2)"
                      }
                    ]
                    queries = [
                      {
                        data_source = "metrics"
                        name        = "query1"
                        query       = "avg:system.mem.used{(host:aomap-txmgr-ecs-03.smeaomaprod.net OR host:i-013384ba51c2b1b1c) AND $environment}"
                        aggregator  = "last"
                      },
                      {
                        data_source = "metrics"
                        name        = "query3"
                        query       = "avg:system.mem.cached{(host:aomap-txmgr-ecs-03.smeaomaprod.net OR host:i-013384ba51c2b1b1c) AND $environment}"
                        aggregator  = "last"
                      },
                      {
                        data_source = "metrics"
                        name        = "query2"
                        query       = "avg:system.mem.total{(host:aomap-txmgr-ecs-03.smeaomaprod.net OR host:i-013384ba51c2b1b1c) AND $environment}"
                        aggregator  = "last"
                      },
                    ]
                    response_format = "scalar"
                    conditional_formats = [
                      { comparator = "<", value = 50, palette = "green_on_white" },
                      { comparator = "<", value = 90, palette = "yellow_on_white" },
                      { comparator = ">", value = 90, palette = "red_on_white" },
                    ]
                  }
                ]

                autoscale             = true
                precision             = 2
                timeseries_background = { type = "area" }
              }
              layout = { x = 6, y = 1, width = 3, height = 1 }
            },

            {
              id = 573150015508920
              definition = {
                title       = "TxMgr instance 4 - RAM"
                title_size  = "16"
                title_align = "left"
                type        = "query_value"

                requests = [
                  {
                    formulas = [
                      {
                        number_format = {
                          unit = { type = "canonical_unit", unit_name = "percent" }
                        }
                        formula = "((query1 - query3) * 100 / query2)"
                      }
                    ]
                    queries = [
                      {
                        data_source = "metrics"
                        name        = "query1"
                        query       = "avg:system.mem.used{(host:aomap-txmgr-ecs-04.smeaomaprod.net OR host:i-06c6efd5af232a080) AND $environment}"
                        aggregator  = "last"
                      },
                      {
                        data_source = "metrics"
                        name        = "query3"
                        query       = "avg:system.mem.cached{(host:aomap-txmgr-ecs-04.smeaomaprod.net OR host:i-06c6efd5af232a080) AND $environment}"
                        aggregator  = "last"
                      },
                      {
                        data_source = "metrics"
                        name        = "query2"
                        query       = "avg:system.mem.total{(host:aomap-txmgr-ecs-04.smeaomaprod.net OR host:i-06c6efd5af232a080) AND $environment}"
                        aggregator  = "last"
                      },
                    ]
                    response_format = "scalar"
                    conditional_formats = [
                      { comparator = "<", value = 50, palette = "green_on_white" },
                      { comparator = "<", value = 90, palette = "yellow_on_white" },
                      { comparator = ">", value = 90, palette = "red_on_white" },
                    ]
                  }
                ]

                autoscale             = true
                precision             = 2
                timeseries_background = { type = "area" }
              }
              layout = { x = 9, y = 1, width = 3, height = 1 }
            },

            # --- the two timeseries widgets in System Resource Overview ---
            {
              id = 1079434172898552
              definition = {
                title          = "System CPU"
                title_size     = "16"
                title_align    = "left"
                show_legend    = true
                legend_layout  = "auto"
                legend_columns = ["avg", "min", "max", "value", "sum"]
                type           = "timeseries"

                requests = [
                  {
                    formulas = [
                      { alias = "ecs-01", formula = "query1" },
                      { alias = "ecs-02", formula = "query2" },
                      { alias = "ecs-03", formula = "query3" },
                      { alias = "ecs-04", formula = "query4" },
                    ]
                    queries = [
                      { query = "avg:system.cpu.user{(host:aomap-txmgr-ecs-01.smeaomaprod.net OR host:i-07a020445e85d0194) AND $environment}", data_source = "metrics", name = "query1" },
                      { query = "avg:system.cpu.user{(host:aomap-txmgr-ecs-02.smeaomaprod.net OR host:i-0b6eb2228e9dd3eea) AND $environment}", data_source = "metrics", name = "query2" },
                      { query = "avg:system.cpu.user{(host:aomap-txmgr-ecs-03.smeaomaprod.net OR host:i-013384ba51c2b1b1c) AND $environment}", data_source = "metrics", name = "query3" },
                      { query = "avg:system.cpu.user{(host:aomap-txmgr-ecs-04.smeaomaprod.net OR host:i-06c6efd5af232a080) AND $environment}", data_source = "metrics", name = "query4" },
                    ]
                    response_format = "timeseries"
                    style = {
                      palette    = "dog_classic"
                      line_type  = "solid"
                      line_width = "normal"
                    }
                    display_type = "line"
                  }
                ]

                yaxis = {
                  include_zero = true
                  scale        = "linear"
                  label        = ""
                  min          = "auto"
                  max          = "auto"
                }
                markers = []
              }
              layout = { x = 0, y = 2, width = 6, height = 3 }
            },

            {
              id = 2040719465986196
              definition = {
                title          = "Pct of Memory Usage"
                title_size     = "16"
                title_align    = "left"
                show_legend    = true
                legend_layout  = "auto"
                legend_columns = ["avg", "min", "max", "value", "sum"]
                type           = "timeseries"

                requests = [
                  {
                    response_format = "timeseries"
                    style = {
                      palette    = "dog_classic"
                      order_by   = "values"
                      line_type  = "solid"
                      line_width = "normal"
                    }
                    display_type = "line"

                    # ecs-01
                    queries = [
                      { data_source = "metrics", name = "query1", query = "avg:system.mem.used{(host:aomap-txmgr-ecs-01.smeaomaprod.net or host:i-07a020445e85d0194) AND $environment}" },
                      { data_source = "metrics", name = "query3", query = "avg:system.mem.cached{(host:aomap-txmgr-ecs-01.smeaomaprod.net or host:i-07a020445e85d0194) AND $environment}" },
                      { data_source = "metrics", name = "query2", query = "avg:system.mem.total{(host:aomap-txmgr-ecs-01.smeaomaprod.net or host:i-07a020445e85d0194) AND $environment}" },
                    ]
                    formulas = [{ alias = "ecs-01", formula = "((query1 - query3) * 100 / query2)" }]
                  },

                  # ecs-02
                  {
                    response_format = "timeseries"
                    queries = [
                      { data_source = "metrics", name = "query0", query = "avg:system.mem.used{(host:aomap-txmgr-ecs-02.smeaomaprod.net or host:i-0b6eb2228e9dd3eea) AND $environment}" },
                      { data_source = "metrics", name = "query1", query = "avg:system.mem.cached{(host:aomap-txmgr-ecs-02.smeaomaprod.net or host:i-0b6eb2228e9dd3eea) AND $environment}" },
                      { data_source = "metrics", name = "query2", query = "avg:system.mem.total{(host:aomap-txmgr-ecs-02.smeaomaprod.net or host:i-0b6eb2228e9dd3eea) AND $environment}" },
                    ]
                    formulas     = [{ alias = "ecs-02", formula = "((query0 - query1) * 100 / query2)" }]
                    style        = { palette = "dog_classic", line_type = "solid", line_width = "normal" }
                    display_type = "line"
                  },

                  # ecs-03
                  {
                    response_format = "timeseries"
                    queries = [
                      { data_source = "metrics", name = "query0", query = "avg:system.mem.used{(host:aomap-txmgr-ecs-03.smeaomaprod.net or host:i-013384ba51c2b1b1c) AND $environment}" },
                      { data_source = "metrics", name = "query1", query = "avg:system.mem.cached{(host:aomap-txmgr-ecs-03.smeaomaprod.net or host:i-013384ba51c2b1b1c) AND $environment}" },
                      { data_source = "metrics", name = "query2", query = "avg:system.mem.total{(host:aomap-txmgr-ecs-03.smeaomaprod.net or host:i-013384ba51c2b1b1c) AND $environment}" },
                    ]
                    formulas     = [{ alias = "ecs-03", formula = "((query0 - query1) * 100 / query2)" }]
                    style        = { palette = "dog_classic", line_type = "solid", line_width = "normal" }
                    display_type = "line"
                  },

                  # ecs-04
                  {
                    response_format = "timeseries"
                    queries = [
                      { data_source = "metrics", name = "query0", query = "avg:system.mem.used{(host:aomap-txmgr-ecs-04.smeaomaprod.net or host:i-06c6efd5af232a080) AND $environment}" },
                      { data_source = "metrics", name = "query1", query = "avg:system.mem.cached{(host:aomap-txmgr-ecs-04.smeaomaprod.net or host:i-06c6efd5af232a080) AND $environment}" },
                      { data_source = "metrics", name = "query2", query = "avg:system.mem.total{(host:aomap-txmgr-ecs-04.smeaomaprod.net or host:i-06c6efd5af232a080) AND $environment}" },
                    ]
                    formulas     = [{ alias = "ecs-04", formula = "((query0 - query1) * 100 / query2)" }]
                    style        = { palette = "dog_classic", line_type = "solid", line_width = "normal" }
                    display_type = "line"
                  },
                ]
              }
              layout = { x = 6, y = 2, width = 6, height = 3 }
            },
          ]
        }
        layout = { x = 0, y = 0, width = 12, height = 6 }
      },

      # --- Lambda Overview ---
      {
        id = 5509110931797011
        definition = {
          title            = "Lambda Overview"
          background_color = "pink"
          show_title       = true
          type             = "group"
          layout_type      = "ordered"

          widgets = [
            {
              id = 3340287999724058
              definition = {
                title       = "# Invocations"
                title_size  = "16"
                title_align = "left"
                type        = "query_value"

                requests = [
                  {
                    response_format = "scalar"
                    queries = [
                      {
                        data_source = "metrics"
                        name        = "query1"
                        query       = "sum:aws.lambda.invocations{(functionname:aomap-rdx-data-reprocessor AND env:$environment.value )} by {functionname}.as_count()"
                        aggregator  = "sum"
                      }
                    ]
                    formulas = [{ formula = "query1" }]
                  }
                ]

                autoscale             = true
                precision             = 2
                timeseries_background = { type = "bars" }
              }
              layout = { x = 0, y = 0, width = 2, height = 2 }
            },

            {
              id = 8061181961533646
              definition = {
                title       = "p95 Latency"
                title_size  = "16"
                title_align = "left"
                type        = "query_value"

                requests = [
                  {
                    response_format = "scalar"
                    queries = [
                      {
                        data_source  = "apm_metrics"
                        name         = "query1"
                        stat         = "latency_p95"
                        service      = "aomap-rdx-data-reprocessor"
                        query_filter = "env:$environment.value"
                      }
                    ]
                    formulas = [
                      {
                        number_format = {
                          unit = { type = "canonical_unit", unit_name = "second" }
                        }
                        formula = "query1"
                      }
                    ]
                  }
                ]

                autoscale = true
                precision = 2
                timeseries_background = {
                  yaxis = { include_zero = true }
                  type  = "area"
                }
              }
              layout = { x = 2, y = 0, width = 2, height = 2 }
            },

            {
              id = 8807776965058243
              definition = {
                title          = "p95 execution time"
                title_size     = "16"
                title_align    = "left"
                show_legend    = true
                legend_layout  = "auto"
                legend_columns = ["avg", "min", "max", "value", "sum"]
                type           = "timeseries"

                requests = [
                  {
                    response_format = "timeseries"
                    queries = [
                      {
                        data_source = "metrics"
                        name        = "query1"
                        query       = "avg:aws.lambda.duration.p95{functionname:aomap-rdx-data-reprocessor , env:$environment.value} by {functionname}"
                      }
                    ]
                    formulas = [{ formula = "query1" }]
                    style = {
                      palette    = "dog_classic"
                      order_by   = "values"
                      line_type  = "solid"
                      line_width = "normal"
                    }
                    display_type = "line"
                  }
                ]
              }
              layout = { x = 4, y = 0, width = 3, height = 2 }
            },

            {
              id = 6823019833279466
              definition = {
                title       = "Errors"
                title_size  = "16"
                title_align = "left"
                type        = "query_value"

                requests = [
                  {
                    response_format = "scalar"
                    queries = [
                      {
                        data_source = "metrics"
                        name        = "query1"
                        query       = "sum:aws.lambda.errors{functionname:aomap-rdx-data-reprocessor , env:$environment.value} by {functionname}.as_count()"
                        aggregator  = "sum"
                      }
                    ]
                    formulas = [{ formula = "query1" }]
                  }
                ]

                autoscale             = false
                precision             = 0
                timeseries_background = { type = "bars" }
              }
              layout = { x = 7, y = 0, width = 1, height = 2 }
            },
          ]
        }
        layout = { x = 0, y = 6, width = 8, height = 3 }
      },

      # --- S3 Overview ---
      {
        id = 3713250668413884
        definition = {
          title            = "S3 Overview"
          background_color = "pink"
          show_title       = true
          type             = "group"
          layout_type      = "ordered"

          widgets = [
            {
              id = 1965412965187639
              definition = {
                title       = "Bucket Size"
                title_size  = "16"
                title_align = "left"
                type        = "query_value"

                requests = [
                  {
                    response_format = "scalar"
                    queries = [
                      {
                        data_source = "metrics"
                        name        = "query1"
                        query       = "sum:aws.s3.bucket_size_bytes{bucketname:sme-aoma-txmgr-metadata-import-prod-processed,$environment}"
                        aggregator  = "avg"
                      }
                    ]
                    formulas = [{ formula = "query1" }]
                  }
                ]

                autoscale             = true
                precision             = 2
                timeseries_background = { type = "bars" }
              }
              layout = { x = 0, y = 0, width = 2, height = 2 }
            },

            {
              id = 8670093124204307
              definition = {
                title       = "# Objects"
                title_size  = "16"
                title_align = "left"
                type        = "query_value"

                requests = [
                  {
                    response_format = "scalar"
                    queries = [
                      {
                        data_source = "metrics"
                        name        = "query1"
                        query       = "sum:aws.s3.number_of_objects{bucketname:sme-aoma-txmgr-metadata-import-prod-processed,$environment}"
                        aggregator  = "avg"
                      }
                    ]
                    formulas = [{ formula = "query1" }]
                  }
                ]

                autoscale             = true
                precision             = 2
                timeseries_background = { type = "bars" }
              }
              layout = { x = 2, y = 0, width = 2, height = 2 }
            },
          ]
        }
        layout = { x = 8, y = 6, width = 4, height = 3 }
      },

      # --- Hosts Overview --- 
      {
        id = 8223596192909889
        definition = {
          title            = "Hosts Overview"
          background_color = "pink"
          show_title       = true
          type             = "group"
          layout_type      = "ordered"

          widgets = [
            {
              id = 7594056896508664
              definition = {
                title = "System uptime"
                type  = "query_value"
                requests = [
                  {
                    response_format = "scalar"
                    queries = [
                      {
                        data_source = "metrics"
                        name        = "query1"
                        query       = "avg:system.uptime{(host:aomap-txmgr-ecs-01.smeaomaprod.net OR host:aomap-txmgr-ecs-02.smeaomaprod.net OR host:aomap-txmgr-ecs-03.smeaomaprod.net OR host:aomap-txmgr-ecs-04.smeaomaprod.net or host:i-07a020445e85d0194 or host:i-0b6eb2228e9dd3eea or host:i-013384ba51c2b1b1c or host:i-06c6efd5af232a080) AND $environment}"
                        aggregator  = "last"
                      }
                    ]
                    formulas = [{ formula = "query1" }]
                  }
                ]
                autoscale = true
                precision = 1
              }
              layout = { x = 0, y = 0, width = 2, height = 2 }
            },
            {
              "id" : 5596365466230161,
              "definition" : {
                "title" : "CPU usage breakdown (%)",
                "show_legend" : false,
                "legend_layout" : "auto",
                "legend_columns" : [
                  "avg",
                  "min",
                  "max",
                  "value",
                  "sum"
                ],
                "type" : "timeseries",
                "requests" : [
                  {
                    "formulas" : [
                      {
                        "alias" : "% time the CPU spent in an idle state",
                        "formula" : "query1"
                      },
                      {
                        "alias" : "% time the CPU spent running the kernel",
                        "formula" : "query2"
                      },
                      {
                        "alias" : "% time the CPU spent waiting for IO operations to complete",
                        "formula" : "query3"
                      },
                      {
                        "alias" : "% time the CPU spent running user space processes",
                        "formula" : "query4"
                      },
                      {
                        "alias" : "% time the virtual CPU spent waiting for the hypervisor to service another virtual CPU",
                        "formula" : "query5"
                      },
                      {
                        "alias" : "% time the CPU spent running the virtual processor",
                        "formula" : "query6"
                      }
                    ],
                    "response_format" : "timeseries",
                    "queries" : [
                      {
                        "query" : "avg:system.cpu.idle{(host:aomap-txmgr-ecs-01.smeaomaprod.net OR host:aomap-txmgr-ecs-02.smeaomaprod.net OR host:aomap-txmgr-ecs-03.smeaomaprod.net OR host:aomap-txmgr-ecs-04.smeaomaprod.net or host:i-07a020445e85d0194 or host:i-0b6eb2228e9dd3eea or host:i-013384ba51c2b1b1c or host:i-06c6efd5af232a080) AND $environment}",
                        "data_source" : "metrics",
                        "name" : "query1"
                      },
                      {
                        "query" : "avg:system.cpu.system{(host:aomap-txmgr-ecs-01.smeaomaprod.net OR host:aomap-txmgr-ecs-02.smeaomaprod.net OR host:aomap-txmgr-ecs-03.smeaomaprod.net OR host:aomap-txmgr-ecs-04.smeaomaprod.net or host:i-07a020445e85d0194 or host:i-0b6eb2228e9dd3eea or host:i-013384ba51c2b1b1c or host:i-06c6efd5af232a080) AND $environment}",
                        "data_source" : "metrics",
                        "name" : "query2"
                      },
                      {
                        "query" : "avg:system.cpu.iowait{(host:aomap-txmgr-ecs-01.smeaomaprod.net OR host:aomap-txmgr-ecs-02.smeaomaprod.net OR host:aomap-txmgr-ecs-03.smeaomaprod.net OR host:aomap-txmgr-ecs-04.smeaomaprod.net or host:i-07a020445e85d0194 or host:i-0b6eb2228e9dd3eea or host:i-013384ba51c2b1b1c or host:i-06c6efd5af232a080) AND $environment}",
                        "data_source" : "metrics",
                        "name" : "query3"
                      },
                      {
                        "query" : "avg:system.cpu.user{(host:aomap-txmgr-ecs-01.smeaomaprod.net OR host:aomap-txmgr-ecs-02.smeaomaprod.net OR host:aomap-txmgr-ecs-03.smeaomaprod.net OR host:aomap-txmgr-ecs-04.smeaomaprod.net or host:i-07a020445e85d0194 or host:i-0b6eb2228e9dd3eea or host:i-013384ba51c2b1b1c or host:i-06c6efd5af232a080) AND $environment}",
                        "data_source" : "metrics",
                        "name" : "query4"
                      },
                      {
                        "query" : "avg:system.cpu.stolen{(host:aomap-txmgr-ecs-01.smeaomaprod.net OR host:aomap-txmgr-ecs-02.smeaomaprod.net OR host:aomap-txmgr-ecs-03.smeaomaprod.net OR host:aomap-txmgr-ecs-04.smeaomaprod.net or host:i-07a020445e85d0194 or host:i-0b6eb2228e9dd3eea or host:i-013384ba51c2b1b1c or host:i-06c6efd5af232a080)AND $environment}",
                        "data_source" : "metrics",
                        "name" : "query5"
                      },
                      {
                        "query" : "avg:system.cpu.guest{(host:aomap-txmgr-ecs-01.smeaomaprod.net OR host:aomap-txmgr-ecs-02.smeaomaprod.net OR host:aomap-txmgr-ecs-03.smeaomaprod.net OR host:aomap-txmgr-ecs-04.smeaomaprod.net or host:i-07a020445e85d0194 or host:i-0b6eb2228e9dd3eea or host:i-013384ba51c2b1b1c or host:i-06c6efd5af232a080) AND $environment}",
                        "data_source" : "metrics",
                        "name" : "query6"
                      }
                    ],
                    "style" : {
                      "palette" : "cool",
                      "line_type" : "solid",
                      "line_width" : "normal"
                    },
                    "display_type" : "area"
                  }
                ],
                "yaxis" : {
                  "include_zero" : true,
                  "scale" : "linear",
                  "label" : "",
                  "min" : "auto",
                  "max" : "auto"
                }
              },
              "layout" : {
                "x" : 2,
                "y" : 0,
                "width" : 4,
                "height" : 4
              }
            },
            {
              "id" : 8095850476999400,
              "definition" : {
                "title" : "Number of times the Agent was started",
                "type" : "query_value",
                "requests" : [
                  {
                    "response_format" : "scalar",
                    "queries" : [
                      {
                        "data_source" : "metrics",
                        "name" : "query1",
                        "query" : "sum:datadog.agent.started{host:aomap-txmgr-ecs-01.smeaomaprod.net OR host:aomap-txmgr-ecs-02.smeaomaprod.net OR host:aomap-txmgr-ecs-03.smeaomaprod.net OR host:aomap-txmgr-ecs-04.smeaomaprod.net}.as_count()",
                        "aggregator" : "sum"
                      }
                    ]
                  }
                ],
                "autoscale" : true,
                "custom_unit" : "",
                "precision" : 2
              },
              "layout" : {
                "x" : 6,
                "y" : 0,
                "width" : 6,
                "height" : 2
              }
            },
            {
              "id" : 7522298789038818,
              "definition" : {
                "title" : "RAM  breakdown",
                "show_legend" : false,
                "legend_layout" : "auto",
                "legend_columns" : [
                  "avg",
                  "min",
                  "max",
                  "value",
                  "sum"
                ],
                "type" : "timeseries",
                "requests" : [
                  {
                    "formulas" : [
                      {
                        "formula" : "query2",
                        "alias" : "RAM total"
                      }
                    ],
                    "response_format" : "timeseries",
                    "on_right_yaxis" : false,
                    "queries" : [
                      {
                        "query" : "sum:system.mem.total{host:aomap-txmgr-ecs-01.smeaomaprod.net OR host:aomap-txmgr-ecs-02.smeaomaprod.net OR host:aomap-txmgr-ecs-03.smeaomaprod.net OR host:aomap-txmgr-ecs-04.smeaomaprod.net}",
                        "data_source" : "metrics",
                        "name" : "query2"
                      }
                    ],
                    "style" : {
                      "palette" : "cool",
                      "line_type" : "solid",
                      "line_width" : "normal"
                    },
                    "display_type" : "area"
                  },
                  {
                    "formulas" : [
                      {
                        "formula" : "query0",
                        "alias" : "RAM used"
                      }
                    ],
                    "response_format" : "timeseries",
                    "on_right_yaxis" : false,
                    "queries" : [
                      {
                        "query" : "sum:system.mem.used{*}",
                        "data_source" : "metrics",
                        "name" : "query0"
                      }
                    ],
                    "style" : {
                      "palette" : "purple",
                      "line_type" : "solid",
                      "line_width" : "normal"
                    },
                    "display_type" : "area"
                  }
                ],
                "yaxis" : {
                  "include_zero" : true,
                  "scale" : "linear",
                  "label" : "",
                  "min" : "auto",
                  "max" : "auto"
                },
                "markers" : []
              },
              "layout" : {
                "x" : 0,
                "y" : 2,
                "width" : 2,
                "height" : 2
              }
            },
            {
              "id" : 5588748536473296,
              "definition" : {
                "title" : "Network traffic (bytes per sec)",
                "show_legend" : false,
                "legend_layout" : "auto",
                "legend_columns" : [
                  "avg",
                  "min",
                  "max",
                  "value",
                  "sum"
                ],
                "type" : "timeseries",
                "requests" : [
                  {
                    "formulas" : [
                      {
                        "alias" : "Network bytes received",
                        "formula" : "query1"
                      }
                    ],
                    "response_format" : "timeseries",
                    "queries" : [
                      {
                        "query" : "sum:system.net.bytes_rcvd{(host:aomap-txmgr-ecs-01.smeaomaprod.net OR host:aomap-txmgr-ecs-02.smeaomaprod.net OR host:aomap-txmgr-ecs-03.smeaomaprod.net OR host:aomap-txmgr-ecs-04.smeaomaprod.net or host:i-07a020445e85d0194 or host:i-0b6eb2228e9dd3eea or host:i-013384ba51c2b1b1c or host:i-06c6efd5af232a080) AND $environment}",
                        "data_source" : "metrics",
                        "name" : "query1"
                      }
                    ],
                    "style" : {
                      "palette" : "dog_classic",
                      "line_type" : "solid",
                      "line_width" : "normal"
                    },
                    "display_type" : "bars"
                  },
                  {
                    "formulas" : [
                      {
                        "alias" : "Network bytes sent",
                        "formula" : "0 - query1"
                      }
                    ],
                    "response_format" : "timeseries",
                    "queries" : [
                      {
                        "query" : "sum:system.net.bytes_sent{(host:aomap-txmgr-ecs-01.smeaomaprod.net OR host:aomap-txmgr-ecs-02.smeaomaprod.net OR host:aomap-txmgr-ecs-03.smeaomaprod.net OR host:aomap-txmgr-ecs-04.smeaomaprod.net or host:i-07a020445e85d0194 or host:i-0b6eb2228e9dd3eea or host:i-013384ba51c2b1b1c or host:i-06c6efd5af232a080) AND $environment}",
                        "data_source" : "metrics",
                        "name" : "query1"
                      }
                    ],
                    "style" : {
                      "palette" : "warm",
                      "line_type" : "solid",
                      "line_width" : "normal"
                    },
                    "display_type" : "bars"
                  }
                ],
                "yaxis" : {
                  "include_zero" : true,
                  "scale" : "linear",
                  "label" : "",
                  "min" : "auto",
                  "max" : "auto"
                }
              },
              "layout" : {
                "x" : 6,
                "y" : 2,
                "width" : 6,
                "height" : 2
              }
            },
            {
              "id" : 2414494313667949,
              "definition" : {
                "title" : "Available Swap",
                "show_legend" : false,
                "legend_layout" : "auto",
                "legend_columns" : [
                  "avg",
                  "min",
                  "max",
                  "value",
                  "sum"
                ],
                "type" : "timeseries",
                "requests" : [
                  {
                    "formulas" : [
                      {
                        "alias" : "% of swap free",
                        "formula" : "query1 * 100"
                      }
                    ],
                    "response_format" : "timeseries",
                    "queries" : [
                      {
                        "query" : "avg:system.swap.pct_free{(host:aomap-txmgr-ecs-01.smeaomaprod.net OR host:aomap-txmgr-ecs-02.smeaomaprod.net OR host:aomap-txmgr-ecs-03.smeaomaprod.net OR host:aomap-txmgr-ecs-04.smeaomaprod.net or host:i-07a020445e85d0194 or host:i-0b6eb2228e9dd3eea or host:i-013384ba51c2b1b1c or host:i-06c6efd5af232a080) AND $environment}",
                        "data_source" : "metrics",
                        "name" : "query1"
                      }
                    ],
                    "style" : {
                      "palette" : "grey",
                      "line_type" : "solid",
                      "line_width" : "normal"
                    },
                    "display_type" : "area"
                  }
                ],
                "yaxis" : {
                  "include_zero" : true,
                  "scale" : "linear",
                  "label" : "",
                  "min" : "auto",
                  "max" : "auto"
                }
              },
              "layout" : {
                "x" : 0,
                "y" : 4,
                "width" : 4,
                "height" : 2
              }
            },
            {
              "id" : 6261630051541673,
              "definition" : {
                "title" : "Current Agent NTP offset",
                "show_legend" : false,
                "legend_layout" : "auto",
                "legend_columns" : [
                  "avg",
                  "min",
                  "max",
                  "value",
                  "sum"
                ],
                "type" : "timeseries",
                "requests" : [
                  {
                    "formulas" : [
                      {
                        "alias" : "Agent NTP offset",
                        "formula" : "query1"
                      }
                    ],
                    "response_format" : "timeseries",
                    "queries" : [
                      {
                        "query" : "avg:ntp.offset{(host:aomap-txmgr-ecs-01.smeaomaprod.net OR host:aomap-txmgr-ecs-02.smeaomaprod.net OR host:aomap-txmgr-ecs-03.smeaomaprod.net OR host:aomap-txmgr-ecs-04.smeaomaprod.net or host:i-07a020445e85d0194 or host:i-0b6eb2228e9dd3eea or host:i-013384ba51c2b1b1c or host:i-06c6efd5af232a080) AND $environment}",
                        "data_source" : "metrics",
                        "name" : "query1"
                      }
                    ],
                    "style" : {
                      "palette" : "dog_classic",
                      "line_type" : "solid",
                      "line_width" : "normal"
                    },
                    "display_type" : "line"
                  }
                ],
                "yaxis" : {
                  "include_zero" : true,
                  "scale" : "linear",
                  "label" : "",
                  "min" : "auto",
                  "max" : "auto"
                },
                "markers" : [
                  {
                    "label" : " Offset +1s ",
                    "value" : "0 < y < 1",
                    "display_type" : "ok dashed"
                  },
                  {
                    "value" : "1 < y < 3",
                    "display_type" : "warning dashed"
                  },
                  {
                    "label" : " Offset +3s ",
                    "value" : "y > 3",
                    "display_type" : "error dashed"
                  },
                  {
                    "label" : " Offset -1s ",
                    "value" : "-1 < y < 0",
                    "display_type" : "ok dashed"
                  },
                  {
                    "value" : "-3 < y < -1",
                    "display_type" : "warning dashed"
                  },
                  {
                    "label" : " Offset -3s ",
                    "value" : "y < -3",
                    "display_type" : "error dashed"
                  }
                ]
              },
              "layout" : {
                "x" : 4,
                "y" : 4,
                "width" : 4,
                "height" : 2
              }
            },
            {
              "id" : 1910936857304002,
              "definition" : {
                "title" : "Amount of free and used disk space per device",
                "type" : "query_table",
                "requests" : [
                  {
                    "response_format" : "scalar",
                    "queries" : [
                      {
                        "data_source" : "metrics",
                        "name" : "query1",
                        "query" : "avg:system.disk.free{(host:aomap-txmgr-ecs-01.smeaomaprod.net OR host:aomap-txmgr-ecs-02.smeaomaprod.net OR host:aomap-txmgr-ecs-03.smeaomaprod.net OR host:aomap-txmgr-ecs-04.smeaomaprod.net or host:i-07a020445e85d0194 or host:i-0b6eb2228e9dd3eea or host:i-013384ba51c2b1b1c or host:i-06c6efd5af232a080) AND $environment} by {device}",
                        "aggregator" : "last"
                      },
                      {
                        "data_source" : "metrics",
                        "name" : "query2",
                        "query" : "avg:system.disk.used{(host:aomap-txmgr-ecs-01.smeaomaprod.net OR host:aomap-txmgr-ecs-02.smeaomaprod.net OR host:aomap-txmgr-ecs-03.smeaomaprod.net OR host:aomap-txmgr-ecs-04.smeaomaprod.net or host:i-07a020445e85d0194 or host:i-0b6eb2228e9dd3eea or host:i-013384ba51c2b1b1c or host:i-06c6efd5af232a080) AND $environment} by {device}",
                        "aggregator" : "last"
                      }
                    ],
                    "sort" : {
                      "count" : 50,
                      "order_by" : [
                        {
                          "type" : "formula",
                          "index" : 0,
                          "order" : "desc"
                        }
                      ]
                    },
                    "formulas" : [
                      {
                        "alias" : "Free disk space",
                        "formula" : "query1"
                      },
                      {
                        "alias" : "Used disk space",
                        "formula" : "query2"
                      }
                    ]
                  }
                ]
              },
              "layout" : {
                "x" : 0,
                "y" : 6,
                "width" : 4,
                "height" : 4
              }
            }
          ]
        }
        layout = { x = 0, y = 9, width = 12, height = 11 }
      },

      # --- Amazon AMQ Broker --- 
      {
        id = 3192500438339539
        definition = {
          title            = "Amazon AMQ Broker"
          background_color = "pink"
          show_title       = true
          type             = "group"
          layout_type      = "ordered"

          widgets = [
            {
              "id" : 7321969949183888,
              "definition" : {
                "title" : "Regular queue size",
                "title_size" : "16",
                "title_align" : "left",
                "show_legend" : true,
                "legend_layout" : "auto",
                "legend_columns" : [
                  "avg",
                  "min",
                  "max",
                  "value",
                  "sum"
                ],
                "type" : "timeseries",
                "requests" : [
                  {
                    "response_format" : "timeseries",
                    "queries" : [
                      {
                        "data_source" : "metrics",
                        "name" : "query1",
                        "query" : "max:aws.amazonmq.queue_size{queue:metadataimportxml and (broker:aoma-core-prod-txmgr-mq01-2 or broker:aoma-core-prod-txmgr-mq01-1 )} by {queue,broker}"
                      }
                    ],
                    "formulas" : [
                      {
                        "formula" : "query1"
                      }
                    ],
                    "style" : {
                      "palette" : "dog_classic",
                      "order_by" : "values",
                      "line_type" : "solid",
                      "line_width" : "normal"
                    },
                    "display_type" : "line"
                  }
                ]
              },
              "layout" : {
                "x" : 0,
                "y" : 0,
                "width" : 3,
                "height" : 3
              }
            },
            {
              "id" : 892840127556647,
              "definition" : {
                "title" : "Priority queue size",
                "title_size" : "16",
                "title_align" : "left",
                "show_legend" : true,
                "legend_layout" : "auto",
                "legend_columns" : [
                  "avg",
                  "min",
                  "max",
                  "value",
                  "sum"
                ],
                "type" : "timeseries",
                "requests" : [
                  {
                    "response_format" : "timeseries",
                    "queries" : [
                      {
                        "data_source" : "metrics",
                        "name" : "query1",
                        "query" : "max:aws.amazonmq.queue_size{queue:prioritymetadataimportxml and (broker:aoma-core-prod-txmgr-mq01-1 or broker:aoma-core-prod-txmgr-mq01-2 )} by {queue,broker}"
                      }
                    ],
                    "formulas" : [
                      {
                        "formula" : "query1"
                      }
                    ],
                    "style" : {
                      "palette" : "dog_classic",
                      "order_by" : "values",
                      "line_type" : "solid",
                      "line_width" : "normal"
                    },
                    "display_type" : "line"
                  }
                ]
              },
              "layout" : {
                "x" : 3,
                "y" : 0,
                "width" : 3,
                "height" : 3
              }
            },
            {
              "id" : 8091031053861606,
              "definition" : {
                "title" : "Large track listing queue size",
                "title_size" : "16",
                "title_align" : "left",
                "show_legend" : true,
                "legend_layout" : "auto",
                "legend_columns" : [
                  "avg",
                  "min",
                  "max",
                  "value",
                  "sum"
                ],
                "type" : "timeseries",
                "requests" : [
                  {
                    "response_format" : "timeseries",
                    "queries" : [
                      {
                        "data_source" : "metrics",
                        "name" : "query1",
                        "query" : "max:aws.amazonmq.queue_size{queue:metadataimportlargetracklistingxml and (broker:aoma-core-prod-txmgr-mq01-1 or broker:aoma-core-prod-txmgr-mq01-2 )} by {queue,broker}"
                      }
                    ],
                    "formulas" : [
                      {
                        "formula" : "query1"
                      }
                    ],
                    "style" : {
                      "palette" : "dog_classic",
                      "order_by" : "values",
                      "line_type" : "solid",
                      "line_width" : "normal"
                    },
                    "display_type" : "line"
                  }
                ]
              },
              "layout" : {
                "x" : 6,
                "y" : 0,
                "width" : 3,
                "height" : 3
              }
            },
            {
              "id" : 3115337007273639,
              "definition" : {
                "title" : "Retry queue size",
                "title_size" : "16",
                "title_align" : "left",
                "show_legend" : true,
                "legend_layout" : "auto",
                "legend_columns" : [
                  "avg",
                  "min",
                  "max",
                  "value",
                  "sum"
                ],
                "type" : "timeseries",
                "requests" : [
                  {
                    "response_format" : "timeseries",
                    "queries" : [
                      {
                        "data_source" : "metrics",
                        "name" : "query1",
                        "query" : "max:aws.amazonmq.queue_size{queue:metadataimportretryxml and (broker:aoma-core-prod-txmgr-mq01-2 or broker:aoma-core-prod-txmgr-mq01-1 )} by {queue,broker}"
                      }
                    ],
                    "formulas" : [
                      {
                        "formula" : "query1"
                      }
                    ],
                    "style" : {
                      "palette" : "dog_classic",
                      "order_by" : "values",
                      "line_type" : "solid",
                      "line_width" : "normal"
                    },
                    "display_type" : "line"
                  }
                ]
              },
              "layout" : {
                "x" : 9,
                "y" : 0,
                "width" : 3,
                "height" : 3
              }
            },
            {
              "id" : 6721358638707617,
              "definition" : {
                "title" : "Enqueue/dequeue per queues",
                "title_size" : "16",
                "title_align" : "left",
                "show_legend" : false,
                "legend_layout" : "auto",
                "legend_columns" : [
                  "avg",
                  "min",
                  "max",
                  "value",
                  "sum"
                ],
                "type" : "timeseries",
                "requests" : [
                  {
                    "formulas" : [
                      {
                        "alias" : "Enqueued",
                        "formula" : "query1"
                      }
                    ],
                    "queries" : [
                      {
                        "data_source" : "metrics",
                        "name" : "query1",
                        "query" : "sum:aws.amazonmq.enqueue_count{(queue:prioritymetadataimportxml OR queue:metadataimportshadowxml OR queue:metadataimportxml OR queue:metadataimportretryxml OR queue:metadataimportlargetracklistingxml ) AND (broker:aoma-core-prod-txmgr-mq01-1 OR broker:aoma-core-prod-txmgr-mq01-2 )} by {queue}.as_count()"
                      }
                    ],
                    "response_format" : "timeseries",
                    "style" : {
                      "palette" : "dog_classic",
                      "order_by" : "values",
                      "line_type" : "solid",
                      "line_width" : "normal"
                    },
                    "display_type" : "line"
                  },
                  {
                    "response_format" : "timeseries",
                    "queries" : [
                      {
                        "data_source" : "metrics",
                        "name" : "query0",
                        "query" : "sum:aws.amazonmq.dequeue_count{(queue:prioritymetadataimportxml OR queue:metadataimportshadowxml OR queue:metadataimportxml OR queue:metadataimportretryxml OR queue:metadataimportlargetracklistingxml ) AND (broker:aoma-core-prod-txmgr-mq01-1 OR broker:aoma-core-prod-txmgr-mq01-2 )} by {queue}.as_count()"
                      }
                    ],
                    "formulas" : [
                      {
                        "alias" : "Dequeued",
                        "formula" : "query0"
                      }
                    ],
                    "style" : {
                      "palette" : "dog_classic",
                      "line_type" : "solid",
                      "line_width" : "normal"
                    },
                    "display_type" : "line"
                  }
                ],
                "yaxis" : {
                  "scale" : "linear",
                  "include_zero" : true,
                  "min" : "auto",
                  "max" : "auto"
                }
              },
              "layout" : {
                "x" : 0,
                "y" : 3,
                "width" : 6,
                "height" : 3
              }
            },
            {
              "id" : 290739350030623,
              "definition" : {
                "title" : "Heap usage",
                "title_size" : "16",
                "title_align" : "left",
                "show_legend" : true,
                "legend_layout" : "auto",
                "legend_columns" : [
                  "avg",
                  "min",
                  "max",
                  "value",
                  "sum"
                ],
                "type" : "timeseries",
                "requests" : [
                  {
                    "response_format" : "timeseries",
                    "queries" : [
                      {
                        "data_source" : "metrics",
                        "name" : "query1",
                        "query" : "avg:aws.amazonmq.heap_usage{broker:aoma-core-prod-txmgr-mq01-1 OR broker:aoma-core-prod-txmgr-mq01-2}"
                      }
                    ],
                    "formulas" : [
                      {
                        "formula" : "query1"
                      }
                    ],
                    "style" : {
                      "palette" : "dog_classic",
                      "order_by" : "values",
                      "line_type" : "solid",
                      "line_width" : "normal"
                    },
                    "display_type" : "line"
                  }
                ]
              },
              "layout" : {
                "x" : 6,
                "y" : 3,
                "width" : 3,
                "height" : 3
              }
            },
            {
              "id" : 1987583550289198,
              "definition" : {
                "title" : "CPU Utilization",
                "title_size" : "16",
                "title_align" : "left",
                "show_legend" : true,
                "legend_layout" : "auto",
                "legend_columns" : [
                  "avg",
                  "min",
                  "max",
                  "value",
                  "sum"
                ],
                "type" : "timeseries",
                "requests" : [
                  {
                    "response_format" : "timeseries",
                    "queries" : [
                      {
                        "data_source" : "metrics",
                        "name" : "query1",
                        "query" : "avg:aws.amazonmq.cpu_utilization{broker:aoma-core-prod-txmgr-mq01-1 OR broker:aoma-core-prod-txmgr-mq01-2}"
                      }
                    ],
                    "formulas" : [
                      {
                        "formula" : "query1"
                      }
                    ],
                    "style" : {
                      "palette" : "dog_classic",
                      "order_by" : "values",
                      "line_type" : "solid",
                      "line_width" : "normal"
                    },
                    "display_type" : "line"
                  }
                ]
              },
              "layout" : {
                "x" : 9,
                "y" : 3,
                "width" : 3,
                "height" : 3
              }
            }
          ]
        }
        layout = {
          x               = 0
          y               = 40
          width           = 12
          height          = 7
          is_column_break = true
        }
      },
    ]

    template_variables = [
      {
        name             = "environment"
        prefix           = "environment"
        available_values = []
        default          = "*"
      }
    ]

    layout_type        = "ordered"
    notify_list        = []
    pause_auto_refresh = false
    reflow_type        = "fixed"
    tags = [
      "team:metadata-import-team"
    ]
  })
}