coralogix / terraform-provider-coralogix

Terraform provider for Coralogix
https://registry.terraform.io/providers/coralogix/coralogix
Apache License 2.0
9 stars 6 forks source link

Add features for Dashboard sections like Coralogix UI #242

Closed tifennlegoff closed 1 week ago

tifennlegoff commented 3 weeks ago

Description

When we're modify a dashboard on Coralogix UI, we can add Section, drag&drop graphs inside, add name and choose if we want to collapse it or not. Is it possible to do the same thing with Terraform?

New or Affected Resource(s)

Potential Terraform Configuration

Configuration could looks like this

resource "coralogix_dashboard" "my_dashboard" {
...
  layout = {
    sections = [
      {
        name      = "My section name"
        collapsed = false
        rows      = [
          {
...

With a structure like this on coralogix/resource_coralogix_dashboard.go

type SectionModel struct {
    ID        types.String `tfsdk:"id"`
    Rows      types.List   `tfsdk:"rows"` //RowModel
    Name      types.String `tfsdk:"name"`
    Collapsed types.Bool   `tfsdk:"collapsed"`
}

References

Community Note

tifennlegoff commented 3 weeks ago

Is it possible to set description and color like with UI too? It could looks like

resource "coralogix_dashboard" "my_dashboard" {
...
  layout = {
    sections = [
      {
        name        = "My section name"
        description = "My description"
        color       = "green"
        collapsed   = false
        rows        = [
          {
...
celaus commented 2 weeks ago

Hi, #243 includes these features

tifennlegoff commented 2 weeks ago

Hi @celaus! Great, thanks a lot!