highbond_strategy_risk_metric (Resource)

Example Usage

resource "highbond_collection" "main" {
  name        = "Test collection"
  description = "Test collection description"
}

resource "highbond_analysis" "main" {
  collection_id = highbond_collection.main.id
  name          = "Test analysis"
  description   = "Test analysis description"
}

resource "highbond_table" "main" {
  analysis_id = highbond_analysis.main.id
  name        = "Test table"
  description = "test table description"
  type        = "data_analytic"
}

resource "highbond_metric" "main" {
  name            = "test metric "
  table_id        = highbond_table.main.id
  base_color      = "#3F3D3C"
  func            = "uniques"
  interval        = "month"
  metric_type     = "kpi"
  show_sparkline  = true
  view_thresholds = true
  field_name      = "metadata.status"
  time_field_name = "metadata.publish_date"
  config = jsonencode({
    "field_format_map"        = {},
    "conditional_formats_map" = {}
  })
  filter_config = jsonencode({
    "filtersOpen" = false,
    "params"      = {}
  })
  func_argument = jsonencode({})
}
resource "highbond_strategy_risk" "testRisk" {
  title = "Test Risk"
}

resource "highbond_strategy_risk_metric" "riskmetric" {
  strategy_risk_id = highbond_strategy_risk.testRisk.id
  metric_id        = highbond_metric.main.id // Metric ID cannot be updated
  description      = "Test Description"
}

Schema

Required

  • metric_id (String) The metric's ID inside the Results application.
  • strategy_risk_id (Number) The ID of the Strategy risk.

Optional

  • description (String) The description of the strategy risk metric.
  • force_updates (Boolean) Allows overriding top-level 'create_only' option.

Read-Only

  • created_at (String) The timestamp identifying when the metric was created.
  • id (String) The ID of this resource.
  • metric_uri (String) The metric's URI inside the Results application.
  • name (String) The name of the metric.
  • updated_at (String) The timestamp identifying when the metric was last updated.