Skip to content

Commit

Permalink
feat: Add new fields on DataSource setting that allow create Replay o…
Browse files Browse the repository at this point in the history
…n SLO edit/creation - DataSource setting [PC-14402] (#333)

New fields (`triggered_by_slo_creation` and `triggered_by_slo_edit`) allow to configure the ability to create a Replay when creating/editing an SLO
---------

Co-authored-by: Marcin Ławniczak <[email protected]>
  • Loading branch information
dawidwisn and marcinlawnik authored Nov 13, 2024
1 parent 577a9a9 commit 3eaf840
Show file tree
Hide file tree
Showing 31 changed files with 623 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ NAMESPACE=nobl9
NAME=nobl9
BIN_DIR=./bin
BINARY=$(BIN_DIR)/terraform-provider-$(NAME)
VERSION=0.30.0
VERSION=0.31.0
BUILD_FLAGS="-X github.com/nobl9/terraform-provider-nobl9/nobl9.Version=$(VERSION)"
OS_ARCH?=linux_amd64

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ terraform {
required_providers {
nobl9 = {
source = "nobl9/nobl9"
version = "0.30.0"
version = "0.31.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ terraform {
required_providers {
nobl9 = {
source = "nobl9/nobl9"
version = "0.25.0"
version = "0.31.0"
}
}
}
Expand Down
23 changes: 23 additions & 0 deletions docs/resources/agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ Required:
- `default_duration` (Block List, Min: 1) Used by default for any SLOs connected to this data source. (see [below for nested schema](#nestedblock--historical_data_retrieval--default_duration))
- `max_duration` (Block List, Min: 1) Defines the maximum period for which data can be retrieved. (see [below for nested schema](#nestedblock--historical_data_retrieval--max_duration))

Optional:

- `triggered_by_slo_creation` (Block List) (Block List) Defines the timeframe Nobl9 will reach back to fetch historical data for SLOs based on this data source once they're created (see [below for nested schema](#nestedblock--historical_data_retrieval--triggered_by_slo_creation))
- `triggered_by_slo_edit` (Block List) (Block List) Defines the timeframe Nobl9 will reach back to fetch historical data for SLOs based on this data source after modifying their budget-sensitive fields (see [below for nested schema](#nestedblock--historical_data_retrieval--triggered_by_slo_edit))

<a id="nestedblock--historical_data_retrieval--default_duration"></a>
### Nested Schema for `historical_data_retrieval.default_duration`

Expand All @@ -191,6 +196,24 @@ Required:
- `value` (Number) Must be an integer greater than or equal to 0.


<a id="nestedblock--historical_data_retrieval--triggered_by_slo_creation"></a>
### Nested Schema for `historical_data_retrieval.triggered_by_slo_creation`

Required:

- `unit` (String) Must be one of Minute, Hour, or Day.
- `value` (Number) Must be an integer greater than or equal to 0.


<a id="nestedblock--historical_data_retrieval--triggered_by_slo_edit"></a>
### Nested Schema for `historical_data_retrieval.triggered_by_slo_edit`

Required:

- `unit` (String) Must be one of Minute, Hour, or Day.
- `value` (Number) Must be an integer greater than or equal to 0.



<a id="nestedblock--honeycomb_config"></a>
### Nested Schema for `honeycomb_config`
Expand Down
41 changes: 41 additions & 0 deletions docs/resources/direct_appdynamics.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,24 @@ resource "nobl9_direct_appdynamics" "test-appdynamics" {
client_name = "client name"
log_collection_enabled = true
release_channel = "stable"
historical_data_retrieval {
default_duration {
unit = "Day"
value = 0
}
max_duration {
unit = "Day"
value = 30
}
triggered_by_slo_creation {
unit = "Day"
value = 10
}
triggered_by_slo_edit {
unit = "Day"
value = 10
}
}
}
```

Expand Down Expand Up @@ -62,6 +80,11 @@ Required:
- `default_duration` (Block List, Min: 1) Used by default for any SLOs connected to this data source. (see [below for nested schema](#nestedblock--historical_data_retrieval--default_duration))
- `max_duration` (Block List, Min: 1) Defines the maximum period for which data can be retrieved. (see [below for nested schema](#nestedblock--historical_data_retrieval--max_duration))

Optional:

- `triggered_by_slo_creation` (Block List) (Block List) Defines the timeframe Nobl9 will reach back to fetch historical data for SLOs based on this data source once they're created (see [below for nested schema](#nestedblock--historical_data_retrieval--triggered_by_slo_creation))
- `triggered_by_slo_edit` (Block List) (Block List) Defines the timeframe Nobl9 will reach back to fetch historical data for SLOs based on this data source after modifying their budget-sensitive fields (see [below for nested schema](#nestedblock--historical_data_retrieval--triggered_by_slo_edit))

<a id="nestedblock--historical_data_retrieval--default_duration"></a>
### Nested Schema for `historical_data_retrieval.default_duration`

Expand All @@ -80,6 +103,24 @@ Required:
- `value` (Number) Must be an integer greater than or equal to 0.


<a id="nestedblock--historical_data_retrieval--triggered_by_slo_creation"></a>
### Nested Schema for `historical_data_retrieval.triggered_by_slo_creation`

Required:

- `unit` (String) Must be one of Minute, Hour, or Day.
- `value` (Number) Must be an integer greater than or equal to 0.


<a id="nestedblock--historical_data_retrieval--triggered_by_slo_edit"></a>
### Nested Schema for `historical_data_retrieval.triggered_by_slo_edit`

Required:

- `unit` (String) Must be one of Minute, Hour, or Day.
- `value` (Number) Must be an integer greater than or equal to 0.



<a id="nestedblock--query_delay"></a>
### Nested Schema for `query_delay`
Expand Down
31 changes: 31 additions & 0 deletions docs/resources/direct_azure_monitor.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ resource "nobl9_direct_azure_monitor" "test-azure-monitor" {
unit = "Day"
value = 30
}
triggered_by_slo_creation {
unit = "Day"
value = 10
}
triggered_by_slo_edit {
unit = "Day"
value = 10
}
}
query_delay {
unit = "Minute"
Expand Down Expand Up @@ -73,6 +81,11 @@ Required:
- `default_duration` (Block List, Min: 1) Used by default for any SLOs connected to this data source. (see [below for nested schema](#nestedblock--historical_data_retrieval--default_duration))
- `max_duration` (Block List, Min: 1) Defines the maximum period for which data can be retrieved. (see [below for nested schema](#nestedblock--historical_data_retrieval--max_duration))

Optional:

- `triggered_by_slo_creation` (Block List) (Block List) Defines the timeframe Nobl9 will reach back to fetch historical data for SLOs based on this data source once they're created (see [below for nested schema](#nestedblock--historical_data_retrieval--triggered_by_slo_creation))
- `triggered_by_slo_edit` (Block List) (Block List) Defines the timeframe Nobl9 will reach back to fetch historical data for SLOs based on this data source after modifying their budget-sensitive fields (see [below for nested schema](#nestedblock--historical_data_retrieval--triggered_by_slo_edit))

<a id="nestedblock--historical_data_retrieval--default_duration"></a>
### Nested Schema for `historical_data_retrieval.default_duration`

Expand All @@ -91,6 +104,24 @@ Required:
- `value` (Number) Must be an integer greater than or equal to 0.


<a id="nestedblock--historical_data_retrieval--triggered_by_slo_creation"></a>
### Nested Schema for `historical_data_retrieval.triggered_by_slo_creation`

Required:

- `unit` (String) Must be one of Minute, Hour, or Day.
- `value` (Number) Must be an integer greater than or equal to 0.


<a id="nestedblock--historical_data_retrieval--triggered_by_slo_edit"></a>
### Nested Schema for `historical_data_retrieval.triggered_by_slo_edit`

Required:

- `unit` (String) Must be one of Minute, Hour, or Day.
- `value` (Number) Must be an integer greater than or equal to 0.



<a id="nestedblock--query_delay"></a>
### Nested Schema for `query_delay`
Expand Down
31 changes: 31 additions & 0 deletions docs/resources/direct_cloudwatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ resource "nobl9_direct_cloudwatch" "test-cloudwatch" {
unit = "Day"
value = 15
}
triggered_by_slo_creation {
unit = "Day"
value = 10
}
triggered_by_slo_edit {
unit = "Day"
value = 10
}
}
}
```
Expand Down Expand Up @@ -64,6 +72,11 @@ Required:
- `default_duration` (Block List, Min: 1) Used by default for any SLOs connected to this data source. (see [below for nested schema](#nestedblock--historical_data_retrieval--default_duration))
- `max_duration` (Block List, Min: 1) Defines the maximum period for which data can be retrieved. (see [below for nested schema](#nestedblock--historical_data_retrieval--max_duration))

Optional:

- `triggered_by_slo_creation` (Block List) (Block List) Defines the timeframe Nobl9 will reach back to fetch historical data for SLOs based on this data source once they're created (see [below for nested schema](#nestedblock--historical_data_retrieval--triggered_by_slo_creation))
- `triggered_by_slo_edit` (Block List) (Block List) Defines the timeframe Nobl9 will reach back to fetch historical data for SLOs based on this data source after modifying their budget-sensitive fields (see [below for nested schema](#nestedblock--historical_data_retrieval--triggered_by_slo_edit))

<a id="nestedblock--historical_data_retrieval--default_duration"></a>
### Nested Schema for `historical_data_retrieval.default_duration`

Expand All @@ -82,6 +95,24 @@ Required:
- `value` (Number) Must be an integer greater than or equal to 0.


<a id="nestedblock--historical_data_retrieval--triggered_by_slo_creation"></a>
### Nested Schema for `historical_data_retrieval.triggered_by_slo_creation`

Required:

- `unit` (String) Must be one of Minute, Hour, or Day.
- `value` (Number) Must be an integer greater than or equal to 0.


<a id="nestedblock--historical_data_retrieval--triggered_by_slo_edit"></a>
### Nested Schema for `historical_data_retrieval.triggered_by_slo_edit`

Required:

- `unit` (String) Must be one of Minute, Hour, or Day.
- `value` (Number) Must be an integer greater than or equal to 0.



<a id="nestedblock--query_delay"></a>
### Nested Schema for `query_delay`
Expand Down
31 changes: 31 additions & 0 deletions docs/resources/direct_datadog.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ resource "nobl9_direct_datadog" "test-datadog" {
unit = "Day"
value = 30
}
triggered_by_slo_creation {
unit = "Day"
value = 10
}
triggered_by_slo_edit {
unit = "Day"
value = 10
}
}
}
```
Expand Down Expand Up @@ -74,6 +82,11 @@ Required:
- `default_duration` (Block List, Min: 1) Used by default for any SLOs connected to this data source. (see [below for nested schema](#nestedblock--historical_data_retrieval--default_duration))
- `max_duration` (Block List, Min: 1) Defines the maximum period for which data can be retrieved. (see [below for nested schema](#nestedblock--historical_data_retrieval--max_duration))

Optional:

- `triggered_by_slo_creation` (Block List) (Block List) Defines the timeframe Nobl9 will reach back to fetch historical data for SLOs based on this data source once they're created (see [below for nested schema](#nestedblock--historical_data_retrieval--triggered_by_slo_creation))
- `triggered_by_slo_edit` (Block List) (Block List) Defines the timeframe Nobl9 will reach back to fetch historical data for SLOs based on this data source after modifying their budget-sensitive fields (see [below for nested schema](#nestedblock--historical_data_retrieval--triggered_by_slo_edit))

<a id="nestedblock--historical_data_retrieval--default_duration"></a>
### Nested Schema for `historical_data_retrieval.default_duration`

Expand All @@ -92,6 +105,24 @@ Required:
- `value` (Number) Must be an integer greater than or equal to 0.


<a id="nestedblock--historical_data_retrieval--triggered_by_slo_creation"></a>
### Nested Schema for `historical_data_retrieval.triggered_by_slo_creation`

Required:

- `unit` (String) Must be one of Minute, Hour, or Day.
- `value` (Number) Must be an integer greater than or equal to 0.


<a id="nestedblock--historical_data_retrieval--triggered_by_slo_edit"></a>
### Nested Schema for `historical_data_retrieval.triggered_by_slo_edit`

Required:

- `unit` (String) Must be one of Minute, Hour, or Day.
- `value` (Number) Must be an integer greater than or equal to 0.



<a id="nestedblock--query_delay"></a>
### Nested Schema for `query_delay`
Expand Down
31 changes: 31 additions & 0 deletions docs/resources/direct_dynatrace.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ resource "nobl9_direct_dynatrace" "test-dynatrace" {
unit = "Day"
value = 10
}
triggered_by_slo_creation {
unit = "Day"
value = 10
}
triggered_by_slo_edit {
unit = "Day"
value = 10
}
}
}
```
Expand Down Expand Up @@ -65,6 +73,11 @@ Required:
- `default_duration` (Block List, Min: 1) Used by default for any SLOs connected to this data source. (see [below for nested schema](#nestedblock--historical_data_retrieval--default_duration))
- `max_duration` (Block List, Min: 1) Defines the maximum period for which data can be retrieved. (see [below for nested schema](#nestedblock--historical_data_retrieval--max_duration))

Optional:

- `triggered_by_slo_creation` (Block List) (Block List) Defines the timeframe Nobl9 will reach back to fetch historical data for SLOs based on this data source once they're created (see [below for nested schema](#nestedblock--historical_data_retrieval--triggered_by_slo_creation))
- `triggered_by_slo_edit` (Block List) (Block List) Defines the timeframe Nobl9 will reach back to fetch historical data for SLOs based on this data source after modifying their budget-sensitive fields (see [below for nested schema](#nestedblock--historical_data_retrieval--triggered_by_slo_edit))

<a id="nestedblock--historical_data_retrieval--default_duration"></a>
### Nested Schema for `historical_data_retrieval.default_duration`

Expand All @@ -83,6 +96,24 @@ Required:
- `value` (Number) Must be an integer greater than or equal to 0.


<a id="nestedblock--historical_data_retrieval--triggered_by_slo_creation"></a>
### Nested Schema for `historical_data_retrieval.triggered_by_slo_creation`

Required:

- `unit` (String) Must be one of Minute, Hour, or Day.
- `value` (Number) Must be an integer greater than or equal to 0.


<a id="nestedblock--historical_data_retrieval--triggered_by_slo_edit"></a>
### Nested Schema for `historical_data_retrieval.triggered_by_slo_edit`

Required:

- `unit` (String) Must be one of Minute, Hour, or Day.
- `value` (Number) Must be an integer greater than or equal to 0.



<a id="nestedblock--query_delay"></a>
### Nested Schema for `query_delay`
Expand Down
23 changes: 23 additions & 0 deletions docs/resources/direct_gcm.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ Required:
- `default_duration` (Block List, Min: 1) Used by default for any SLOs connected to this data source. (see [below for nested schema](#nestedblock--historical_data_retrieval--default_duration))
- `max_duration` (Block List, Min: 1) Defines the maximum period for which data can be retrieved. (see [below for nested schema](#nestedblock--historical_data_retrieval--max_duration))

Optional:

- `triggered_by_slo_creation` (Block List) (Block List) Defines the timeframe Nobl9 will reach back to fetch historical data for SLOs based on this data source once they're created (see [below for nested schema](#nestedblock--historical_data_retrieval--triggered_by_slo_creation))
- `triggered_by_slo_edit` (Block List) (Block List) Defines the timeframe Nobl9 will reach back to fetch historical data for SLOs based on this data source after modifying their budget-sensitive fields (see [below for nested schema](#nestedblock--historical_data_retrieval--triggered_by_slo_edit))

<a id="nestedblock--historical_data_retrieval--default_duration"></a>
### Nested Schema for `historical_data_retrieval.default_duration`

Expand All @@ -72,6 +77,24 @@ Required:
- `value` (Number) Must be an integer greater than or equal to 0.


<a id="nestedblock--historical_data_retrieval--triggered_by_slo_creation"></a>
### Nested Schema for `historical_data_retrieval.triggered_by_slo_creation`

Required:

- `unit` (String) Must be one of Minute, Hour, or Day.
- `value` (Number) Must be an integer greater than or equal to 0.


<a id="nestedblock--historical_data_retrieval--triggered_by_slo_edit"></a>
### Nested Schema for `historical_data_retrieval.triggered_by_slo_edit`

Required:

- `unit` (String) Must be one of Minute, Hour, or Day.
- `value` (Number) Must be an integer greater than or equal to 0.



<a id="nestedblock--query_delay"></a>
### Nested Schema for `query_delay`
Expand Down
Loading

0 comments on commit 3eaf840

Please sign in to comment.