Skip to content

Commit

Permalink
fix: remove monitorv2 groupings.link_column.meta (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
obs-gh-abhinavpappu authored Sep 9, 2024
1 parent 264ab37 commit 7f9f6f9
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 315 deletions.
80 changes: 0 additions & 80 deletions docs/data-sources/monitor_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,28 +81,8 @@ Read-Only:

Read-Only:

- `meta` (Block List) Contains the context surrounding the link column. (see [below for nested schema](#nestedblock--groupings--link_column--meta))
- `name` (String) The name of the link column.

<a id="nestedblock--groupings--link_column--meta"></a>
### Nested Schema for `groupings.link_column.meta`

Read-Only:

- `dst_fields` (List of String) The destination fields (a.k.a. primary keys) of the target dataset being linked against.
- `src_fields` (Block List) The source fields used to link against the primary keys of the target dataset. (see [below for nested schema](#nestedblock--groupings--link_column--meta--src_fields))
- `target_dataset` (Number) The resource dataset ID which the link came from. Empty if the link was created from a stage in the shape of a resource from the worksheet.

<a id="nestedblock--groupings--link_column--meta--src_fields"></a>
### Nested Schema for `groupings.link_column.meta.src_fields`

Read-Only:

- `name` (String) The name of the column.
- `path` (String) The path of the path, if the name refers to a column with a JSON object.





<a id="nestedblock--rules"></a>
Expand Down Expand Up @@ -154,28 +134,8 @@ Read-Only:

Read-Only:

- `meta` (Block List) Contains the context surrounding the link column. (see [below for nested schema](#nestedblock--rules--count--compare_groups--column--link_column--meta))
- `name` (String) The name of the link column.

<a id="nestedblock--rules--count--compare_groups--column--link_column--meta"></a>
### Nested Schema for `rules.count.compare_groups.column.link_column.meta`

Read-Only:

- `dst_fields` (List of String) The destination fields (a.k.a. primary keys) of the target dataset being linked against.
- `src_fields` (Block List) The source fields used to link against the primary keys of the target dataset. (see [below for nested schema](#nestedblock--rules--count--compare_groups--column--link_column--meta--src_fields))
- `target_dataset` (Number) The resource dataset ID which the link came from. Empty if the link was created from a stage in the shape of a resource from the worksheet.

<a id="nestedblock--rules--count--compare_groups--column--link_column--meta--src_fields"></a>
### Nested Schema for `rules.count.compare_groups.column.link_column.meta.src_fields`

Read-Only:

- `name` (String) The name of the column.
- `path` (String) The path of the path, if the name refers to a column with a JSON object.





<a id="nestedblock--rules--count--compare_groups--compare_values"></a>
Expand Down Expand Up @@ -245,28 +205,8 @@ Read-Only:

Read-Only:

- `meta` (Block List) Contains the context surrounding the link column. (see [below for nested schema](#nestedblock--rules--promote--compare_columns--column--link_column--meta))
- `name` (String) The name of the link column.

<a id="nestedblock--rules--promote--compare_columns--column--link_column--meta"></a>
### Nested Schema for `rules.promote.compare_columns.column.link_column.meta`

Read-Only:

- `dst_fields` (List of String) The destination fields (a.k.a. primary keys) of the target dataset being linked against.
- `src_fields` (Block List) The source fields used to link against the primary keys of the target dataset. (see [below for nested schema](#nestedblock--rules--promote--compare_columns--column--link_column--meta--src_fields))
- `target_dataset` (Number) The resource dataset ID which the link came from. Empty if the link was created from a stage in the shape of a resource from the worksheet.

<a id="nestedblock--rules--promote--compare_columns--column--link_column--meta--src_fields"></a>
### Nested Schema for `rules.promote.compare_columns.column.link_column.meta.src_fields`

Read-Only:

- `name` (String) The name of the column.
- `path` (String) The path of the path, if the name refers to a column with a JSON object.





<a id="nestedblock--rules--promote--compare_columns--compare_values"></a>
Expand Down Expand Up @@ -325,28 +265,8 @@ Read-Only:

Read-Only:

- `meta` (Block List) Contains the context surrounding the link column. (see [below for nested schema](#nestedblock--rules--threshold--compare_groups--column--link_column--meta))
- `name` (String) The name of the link column.

<a id="nestedblock--rules--threshold--compare_groups--column--link_column--meta"></a>
### Nested Schema for `rules.threshold.compare_groups.column.link_column.meta`

Read-Only:

- `dst_fields` (List of String) The destination fields (a.k.a. primary keys) of the target dataset being linked against.
- `src_fields` (Block List) The source fields used to link against the primary keys of the target dataset. (see [below for nested schema](#nestedblock--rules--threshold--compare_groups--column--link_column--meta--src_fields))
- `target_dataset` (Number) The resource dataset ID which the link came from. Empty if the link was created from a stage in the shape of a resource from the worksheet.

<a id="nestedblock--rules--threshold--compare_groups--column--link_column--meta--src_fields"></a>
### Nested Schema for `rules.threshold.compare_groups.column.link_column.meta.src_fields`

Read-Only:

- `name` (String) The name of the column.
- `path` (String) The path of the path, if the name refers to a column with a JSON object.





<a id="nestedblock--rules--threshold--compare_groups--compare_values"></a>
Expand Down
104 changes: 0 additions & 104 deletions docs/resources/monitor_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,32 +125,6 @@ Required:

- `name` (String) The name of the link column.

Optional:

- `meta` (Block List, Max: 1) Contains the context surrounding the link column. (see [below for nested schema](#nestedblock--rules--count--compare_groups--column--link_column--meta))

<a id="nestedblock--rules--count--compare_groups--column--link_column--meta"></a>
### Nested Schema for `rules.count.compare_groups.column.link_column.meta`

Optional:

- `dst_fields` (List of String) The destination fields (a.k.a. primary keys) of the target dataset being linked against.
- `src_fields` (Block List) The source fields used to link against the primary keys of the target dataset. (see [below for nested schema](#nestedblock--rules--count--compare_groups--column--link_column--meta--src_fields))
- `target_dataset` (Number) The resource dataset ID which the link came from. Empty if the link was created from a stage in the shape of a resource from the worksheet.

<a id="nestedblock--rules--count--compare_groups--column--link_column--meta--src_fields"></a>
### Nested Schema for `rules.count.compare_groups.column.link_column.meta.src_fields`

Required:

- `name` (String) The name of the column.

Optional:

- `path` (String) The path of the path, if the name refers to a column with a JSON object.





<a id="nestedblock--rules--count--compare_groups--compare_values"></a>
Expand Down Expand Up @@ -214,32 +188,6 @@ Required:

- `name` (String) The name of the link column.

Optional:

- `meta` (Block List, Max: 1) Contains the context surrounding the link column. (see [below for nested schema](#nestedblock--rules--promote--compare_columns--column--link_column--meta))

<a id="nestedblock--rules--promote--compare_columns--column--link_column--meta"></a>
### Nested Schema for `rules.promote.compare_columns.column.link_column.meta`

Optional:

- `dst_fields` (List of String) The destination fields (a.k.a. primary keys) of the target dataset being linked against.
- `src_fields` (Block List) The source fields used to link against the primary keys of the target dataset. (see [below for nested schema](#nestedblock--rules--promote--compare_columns--column--link_column--meta--src_fields))
- `target_dataset` (Number) The resource dataset ID which the link came from. Empty if the link was created from a stage in the shape of a resource from the worksheet.

<a id="nestedblock--rules--promote--compare_columns--column--link_column--meta--src_fields"></a>
### Nested Schema for `rules.promote.compare_columns.column.link_column.meta.src_fields`

Required:

- `name` (String) The name of the column.

Optional:

- `path` (String) The path of the path, if the name refers to a column with a JSON object.





<a id="nestedblock--rules--promote--compare_columns--compare_values"></a>
Expand Down Expand Up @@ -326,32 +274,6 @@ Required:

- `name` (String) The name of the link column.

Optional:

- `meta` (Block List, Max: 1) Contains the context surrounding the link column. (see [below for nested schema](#nestedblock--rules--threshold--compare_groups--column--link_column--meta))

<a id="nestedblock--rules--threshold--compare_groups--column--link_column--meta"></a>
### Nested Schema for `rules.threshold.compare_groups.column.link_column.meta`

Optional:

- `dst_fields` (List of String) The destination fields (a.k.a. primary keys) of the target dataset being linked against.
- `src_fields` (Block List) The source fields used to link against the primary keys of the target dataset. (see [below for nested schema](#nestedblock--rules--threshold--compare_groups--column--link_column--meta--src_fields))
- `target_dataset` (Number) The resource dataset ID which the link came from. Empty if the link was created from a stage in the shape of a resource from the worksheet.

<a id="nestedblock--rules--threshold--compare_groups--column--link_column--meta--src_fields"></a>
### Nested Schema for `rules.threshold.compare_groups.column.link_column.meta.src_fields`

Required:

- `name` (String) The name of the column.

Optional:

- `path` (String) The path of the path, if the name refers to a column with a JSON object.





<a id="nestedblock--rules--threshold--compare_groups--compare_values"></a>
Expand Down Expand Up @@ -431,32 +353,6 @@ Required:

- `name` (String) The name of the link column.

Optional:

- `meta` (Block List, Max: 1) Contains the context surrounding the link column. (see [below for nested schema](#nestedblock--groupings--link_column--meta))

<a id="nestedblock--groupings--link_column--meta"></a>
### Nested Schema for `groupings.link_column.meta`

Optional:

- `dst_fields` (List of String) The destination fields (a.k.a. primary keys) of the target dataset being linked against.
- `src_fields` (Block List) The source fields used to link against the primary keys of the target dataset. (see [below for nested schema](#nestedblock--groupings--link_column--meta--src_fields))
- `target_dataset` (Number) The resource dataset ID which the link came from. Empty if the link was created from a stage in the shape of a resource from the worksheet.

<a id="nestedblock--groupings--link_column--meta--src_fields"></a>
### Nested Schema for `groupings.link_column.meta.src_fields`

Required:

- `name` (String) The name of the column.

Optional:

- `path` (String) The path of the path, if the name refers to a column with a JSON object.





<a id="nestedblock--scheduling"></a>
Expand Down
32 changes: 0 additions & 32 deletions observe/data_source_monitor_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,31 +330,6 @@ func monitorV2ColumnPathDatasource() *schema.Resource {
}
}

func monitorV2LinkColumnMetaDatasource() *schema.Resource {
return &schema.Resource{ // MonitorV2LinkColumnMetaInput
Schema: map[string]*schema.Schema{
"src_fields": { // [MonitorV2ColumnPathInput!]
Type: schema.TypeList,
Optional: true,
Computed: true,
Elem: monitorV2ColumnPathDatasource(),
Description: descriptions.Get("monitorv2", "schema", "link_column_meta", "src_fields"),
},
"dst_fields": { // [String!]
Type: schema.TypeList,
Computed: true,
Elem: &schema.Schema{Type: schema.TypeString},
Description: descriptions.Get("monitorv2", "schema", "link_column_meta", "dst_fields"),
},
"target_dataset": { // Int64
Type: schema.TypeInt,
Computed: true,
Description: descriptions.Get("monitorv2", "schema", "link_column_meta", "target_dataset"),
},
},
}
}

func monitorV2LinkColumnDatasource() *schema.Resource {
return &schema.Resource{ // MonitorV2LinkColumnInput
Schema: map[string]*schema.Schema{
Expand All @@ -363,13 +338,6 @@ func monitorV2LinkColumnDatasource() *schema.Resource {
Computed: true,
Description: descriptions.Get("monitorv2", "schema", "link_column", "name"),
},
"meta": { // MonitorV2LinkColumnMetaInput
Type: schema.TypeList,
Optional: true,
Computed: true,
Elem: monitorV2LinkColumnMetaDatasource(),
Description: descriptions.Get("monitorv2", "schema", "link_column_meta", "description"),
},
},
}
}
Expand Down
11 changes: 1 addition & 10 deletions observe/descriptions/monitorv2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,6 @@ schema:
The name of the column.
path: |
The path of the path, if the name refers to a column with a JSON object.
link_column_meta:
description: |
Contains the context surrounding the link column.
src_fields: |
The source fields used to link against the primary keys of the target dataset.
dst_fields: |
The destination fields (a.k.a. primary keys) of the target dataset being linked against.
target_dataset: |
The resource dataset ID which the link came from. Empty if the link was created from a stage in the shape of a resource from the worksheet.
link_column:
description: |
Identifies a link-type column created by connecting two different datasets' columns (primary sources & destination sources).
Expand Down Expand Up @@ -113,4 +104,4 @@ schema:
send_end_notifications: |
If true, notifications will be sent if the monitor stops triggering.
send_reminders_interval: |
Determines how frequently you will be reminded of an ongoing alert.
Determines how frequently you will be reminded of an ongoing alert.
Loading

0 comments on commit 7f9f6f9

Please sign in to comment.