Skip to content

Commit

Permalink
Dashboards - changing pie_chart and horizontal_bar_chart group-names …
Browse files Browse the repository at this point in the history
…to optional (#248)

* patch - changing group_names to Optional
  • Loading branch information
OrNovo authored Jul 25, 2024
1 parent a8b0b4d commit cea58b3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -607,4 +607,10 @@ Deprecation: `coralogix_sli` deprecated in favor of `coralogix_slo`
New Features:
#### resource/coralogix_dashboard
* added support for more than one `section`.
* added support for `query` option in `multi_select` variables.
* added support for `query` option in `multi_select` variables.


## Release 1.16.4
Bug fixing:
#### resource/coralogix_dashboard
* changing `pie_chart` and `horizontal_bar_chart` `query.logs.group_names` to Optional.
4 changes: 2 additions & 2 deletions coralogix/resource_coralogix_dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -1687,7 +1687,7 @@ func dashboardSchemaAttributes() map[string]schema.Attribute {
"filters": logsFiltersSchema(),
"group_names": schema.ListAttribute{
ElementType: types.StringType,
Required: true,
Optional: true,
Validators: []validator.List{
listvalidator.SizeAtLeast(1),
},
Expand Down Expand Up @@ -2112,7 +2112,7 @@ func dashboardSchemaAttributes() map[string]schema.Attribute {
"filters": logsFiltersSchema(),
"group_names": schema.ListAttribute{
ElementType: types.StringType,
Required: true,
Optional: true,
Validators: []validator.List{
listvalidator.SizeAtLeast(1),
},
Expand Down
6 changes: 3 additions & 3 deletions docs/resources/dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -2159,7 +2159,7 @@ Optional:
- `scale_type` (String)
- `sort_by` (String)
- `stack_definition` (Attributes) (see [below for nested schema](#nestedatt--layout--sections--rows--id--definition--pie_chart--stack_definition))
- `unit` (String) The unit of the chart. Can be one of unspecified, milliseconds, seconds, kbytes, mbytes, gbytes, mibytes, gibytes, usd_cents, bytes_iec, euro, microseconds, bytes, kibytes, euro_cents, usd.
- `unit` (String) The unit of the chart. Can be one of kbytes, mibytes, seconds, mbytes, kibytes, gibytes, usd, unspecified, bytes, euro, microseconds, milliseconds, gbytes, bytes_iec, euro_cents, usd_cents.
- `y_axis_view_by` (String)

<a id="nestedatt--layout--sections--rows--id--definition--pie_chart--query"></a>
Expand All @@ -2177,11 +2177,11 @@ Optional:
Required:

- `aggregation` (Attributes) (see [below for nested schema](#nestedatt--layout--sections--rows--id--definition--pie_chart--y_axis_view_by--spans--aggregation))
- `group_names` (List of String)

Optional:

- `filters` (Attributes List) (see [below for nested schema](#nestedatt--layout--sections--rows--id--definition--pie_chart--y_axis_view_by--spans--filters))
- `group_names` (List of String)
- `group_names_fields` (Attributes List) (see [below for nested schema](#nestedatt--layout--sections--rows--id--definition--pie_chart--y_axis_view_by--spans--group_names_fields))
- `lucene_query` (String)
- `stacked_group_name` (String)
Expand Down Expand Up @@ -2792,11 +2792,11 @@ Optional:
Required:

- `aggregation` (Attributes) (see [below for nested schema](#nestedatt--layout--sections--rows--id--definition--pie_chart--unit--spans--aggregation))
- `group_names` (List of String)

Optional:

- `filters` (Attributes List) (see [below for nested schema](#nestedatt--layout--sections--rows--id--definition--pie_chart--unit--spans--filters))
- `group_names` (List of String)
- `group_names_fields` (Attributes List) (see [below for nested schema](#nestedatt--layout--sections--rows--id--definition--pie_chart--unit--spans--group_names_fields))
- `lucene_query` (String)
- `stacked_group_name` (String)
Expand Down

0 comments on commit cea58b3

Please sign in to comment.