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
description = "Test Description"
}