terraform-provider-ibm
terraform-provider-ibm copied to clipboard
How to set y_axis_view_by for ibm_logs_dashboard?
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform CLI and Terraform IBM Provider Version
Provider version : 1.69.2 Terraform Version : v1.9.2
Affected Resource(s)
- ibm_logs_dashboard
Terraform Configuration Files
resource "ibm_logs_dashboard" "dashboard_access_resource_details" {
instance_id = ibm_resource_instance.cloud_logs_instance.guid
region = ibm_resource_instance.cloud_logs_instance.location
name = "Resources-Detail"
two_minutes {}
relative_time_frame = "1209600s"
layout {
sections {
id {
value = "a998262e-119a-165c-b0a5-3a2c109c122d"
}
rows {
id {
value = "8873c333-ff35-49d2-499f-4f89e92ee13d"
}
widgets {
id {
value = "d7b8e40f-900d-d4a9-5b6f-a5f139cced0b"
}
title = "Access Details"
definition {
horizontal_bar_chart {
query {
logs {
lucene_query {
value = "app:codeengine"
}
aggregation {
count {}
}
group_names_fields {
keypath = [ "message", "path" ]
scope = "user_data"
}
}
}
max_bars_per_chart = 25
stack_definition {
max_slices_per_bar = 30
}
scale_type = "linear"
colors_by {
aggregation {}
}
y_axis_view_by {
value {}
}
unit = "unspecified"
display_on_bar = true
sort_by = "value"
color_scheme = "classic"
data_mode_type = "high_unspecified"
}
}
}
}
}
}
}
Debug Output
https://gist.github.com/McSurf84/b170ce9c90ad082acccdcec34aaad7b6
Expected Behavior
The dashboard will be created and the y_axis_view_by
parameter is set to value.
Actual Behavior
I created a dashboard in IBM Cloud logs but I´m not able to set the y_axis_view_by
parameter to value
. The documentation says the value shoud be a list, the generate plan
command accepts it either. But when the plan is applied, it fails (see Debug output).
When I remove the y_axis_view_by
parameter everything works fine. After setting the value manually in the IBM Cloud Logs UI and executing the generate plan
job, it shows the change of removing the exact parameter as shown in the code snippet above.
Steps to Reproduce
-
terraform apply