Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set y_axis_view_by for ibm_logs_dashboard? #5684

Open
McSurf84 opened this issue Sep 25, 2024 · 0 comments
Open

How to set y_axis_view_by for ibm_logs_dashboard? #5684

McSurf84 opened this issue Sep 25, 2024 · 0 comments

Comments

@McSurf84
Copy link

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

  1. terraform apply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant