Skip to main content
Version: Latest Version (2.9.1)

highbond_strategy_risk_metric (Resource)

Schema

Required

metric_idString The metric's ID inside the Results application.
strategy_risk_idNumber The ID of the Strategy risk.

Optional

descriptionString The description of the strategy risk metric.
force_updatesBoolean Allows overriding top-level 'create_only' option.
idString The ID of this resource.

Read-Only

created_atString The timestamp identifying when the metric was created.
metric_uriString The metric's URI inside the Results application.
nameString The name of the metric.
updated_atString The timestamp identifying when the metric was last updated.

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"
}