From b90ba8003459b83085d815243fe15bc3c8b071eb Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Tue, 1 Oct 2024 10:15:05 +0545 Subject: [PATCH 1/7] fix: playbook parameter docs --- mission-control/docs/playbooks/index.mdx | 60 ++---------------- .../docs/reference/playbooks/parameters.md | 62 ++++++++++--------- .../docs/reference/resource-selector.md | 26 ++++++++ 3 files changed, 63 insertions(+), 85 deletions(-) diff --git a/mission-control/docs/playbooks/index.mdx b/mission-control/docs/playbooks/index.mdx index 3f5ff27d..918b1e2d 100644 --- a/mission-control/docs/playbooks/index.mdx +++ b/mission-control/docs/playbooks/index.mdx @@ -23,80 +23,30 @@ Some key benefits include: * **Cost Efficiency** - Optimize costs with on-demand environments that spin down after a fixed duration. * **Portability** - A consistent interface for performing operations irrespective of the underlying infrastructure and/or environment -
- ## Use cases ### Provisioning - - ### Day 2 Operations -Day 2 operations can be added onto existing resources using `configs`, `components` or health `checks` using [resource selectors](/reference/resource-selector). +Day 2 operations can be added onto existing resources (`configs`, `components` or health `checks`) using [resource selectors](/reference/resource-selector). -For example Restarting a Kubernetes Deployment is only applicable to config items of type: `Kubernetes::Deployment` +For example scaling a Kubernetes Deployment is only applicable to config items of type: `Kubernetes::Deployment` -```yaml title="scale-deployment.yaml" -#... -kind: Playbook -spec: - configs: - - types: - - Kubernetes::Deployment - #.... +```yaml title='scale-deployment.yaml' file=../../modules/mission-control/fixtures/playbooks/scale-deployment.yaml ``` -Before running a playbook, users can provide input using [`parameters`](/reference/playbooks/parameters) -```yaml title="parameters.yaml" -#... -kind: Playbook -spec: - # user input - parameters: - - name: replicas - # ... +Before running a playbook, users can provide input using [`parameters`](/reference/playbooks/parameters). +In the playbook above, the user can decide the new number of replicas before running the playbook. -``` ### Just In Time Access ### AIOps - - -## Parameters - -Playbooks have 2 types of parameters: - - - - -```yaml title="restrict-to-deployment.yaml" -#... -kind: Playbook -spec: - # components: ... - # checks: ... - //highlight-next-line - configs: - - types: - - Kubernetes::Deployment -``` - -## Self-Service - - - - -## Events - -## Webhooks - - ## Actions Playbooks execute a sequence of actions (steps), these actions can update git repositories, invoke pipelines or run command line tools like `kubectl` and `aws`. diff --git a/mission-control/docs/reference/playbooks/parameters.md b/mission-control/docs/reference/playbooks/parameters.md index d50e5590..b3873a37 100644 --- a/mission-control/docs/reference/playbooks/parameters.md +++ b/mission-control/docs/reference/playbooks/parameters.md @@ -8,16 +8,16 @@ title: Parameters Playbook parameter defines a parameter that a playbook needs to run. -| Field | Description | Scheme | Required | Templatable | -| ------------- | --------------------------------------------------- | ------------------------------- | -------- | ----------- | -| `name` | Name of parameter. | `string` | `true` | -| `default` | Default value of the parameter. | `string` | | `true` | -| `label` | Label of the parameter. | `string` | `true` | -| `required` | Specify if the parameter is required | `bool` | | -| `icon` | | [`Icon`](/reference/types#icon) | | -| `description` | Description of the parameter. | `string` | | -| `type` | Type of parameter. _(Defaults to "text")_ | `string` | | -| `properties` | Properties of parameter. _Varies based on the type_ | `map[string]string` | | +| Field | Description | Scheme | Required | +| ------------- | --------------------------------------------------- | ---------------------------------------------- | -------- | +| `name` | Name of parameter. | `string` | `true` | +| `default` | Default value of the parameter. | [Go Template](/reference/scripting/gotemplate) | | +| `label` | Label of the parameter. | `string` | | +| `required` | Specify if the parameter is required. | `bool` | | +| `icon` | Icon for the playbook. | [`Icon`](/reference/types#icon) | | +| `description` | Description of the parameter. | `string` | | +| `type` | Type of parameter. _(Defaults to "text")_ | `string` | | +| `properties` | Properties of parameter. _Varies based on the type_ | `map[string]string` | | ## Defaulting @@ -39,35 +39,37 @@ When running the playbook on a `Deployment` named `mysql` the following will be ## Types -| name | Description | UI Component | Schema | Properties | -| ----------- | ---------------------------------- | ------------ | --------- | ------------------------- | -| `check` | Limits the value to a check. | Dropdown | `string` | [`Check`](#checks) | -| `checkbox` | Boolean value toggle | Checkbox | `boolean` | - | -| `code` | Text area | Code Editor | `string` | [`Code`](#code) | -| `component` | Limits the value to a component. | Dropdown | `string` | [`Component`](#component) | -| `config` | Limits the value to a config item. | Dropdown | `string` | [`Config`](#config) | -| `list` | Specify a custom list of values | Dropdown | `string` | [`List`](#list) | -| `people` | Limits the value to people. | Dropdown | `string` | [`People`](#people) | -| `team` | Limits the value to teams. | Dropdown | `string` | - | -| `text` | Text input | Text Input | `string` | [`Text`](#text) | +| name | Description | UI Component | Schema | Properties | +| ------------ | ---------------------------------- | ------------ | --------- | ------------------------- | +| `check` | Limits the value to a check. | Dropdown | `string` | [`Check`](#checks) | +| `checkbox` | Boolean value toggle | Checkbox | `boolean` | - | +| `code` | Text area | Code Editor | `string` | [`Code`](#code) | +| `component` | Limits the value to a component. | Dropdown | `string` | [`Component`](#component) | +| `config` | Limits the value to a config item. | Dropdown | `string` | [`Config`](#config) | +| `list` | Specify a custom list of values | Dropdown | `string` | [`List`](#list) | +| `people` | Limits the value to people. | Dropdown | `string` | [`People`](#people) | +| `team` | Limits the value to teams. | Dropdown | `string` | - | +| `text` | Text input | Text Input | `string` | [`Text`](#text) | +| `millicores` | CPU resource | Text Input | `string` | - | +| `bytes` | Memory resource | Text Input | `string` | - | ### component -| Field | Description | Schema | -| ------------- | -------------------------------------- | -------- | -| `filter.type` | Limit the components to the given type | `string` | +| Field | Description | Schema | +| ---------- | -------------------------------------- | -------------------------------------------------- | +| `filter[]` | Limit the components to the given type | [`ResourceSelector`](/reference/resource-selector) | ### config -| Field | Description | Schema | -| ------------- | -------------------------------------- | -------- | -| `filter.type` | Limit the components to the given type | `string` | +| Field | Description | Schema | +| ------------- | ---------------------------------------- | -------------------------------------------------- | +| `filter.type` | Limit the config items to the given type | [`ResourceSelector`](/reference/resource-selector) | ### checks -| Field | Description | Schema | -| ------------- | -------------------------------------- | -------- | -| `filter.type` | Limit the components to the given type | `string` | +| Field | Description | Schema | +| ------------- | ---------------------------------- | -------------------------------------------------- | +| `filter.type` | Limit the checks to the given type | [`ResourceSelector`](/reference/resource-selector) | ### code diff --git a/mission-control/docs/reference/resource-selector.md b/mission-control/docs/reference/resource-selector.md index 3c00d4be..b7791949 100644 --- a/mission-control/docs/reference/resource-selector.md +++ b/mission-control/docs/reference/resource-selector.md @@ -51,3 +51,29 @@ spec: - labelSelector: 'team=payments' - labelSelector: 'team=orders' ``` + +### Selecting configs in a playbook paramater + +```yaml title="display-config-map.yaml" +--- +apiVersion: mission-control.flanksource.com/v1 +kind: Playbook +metadata: + name: display-config-map + namespace: mc +spec: + category: kubernetes + parameters: + - name: configmap + label: 'Choose a secret' + type: config + properties: + filter: + - types: + - Kubernetes::ConfigMap + actions: + - name: JSON + exec: + script: | + echo '{{.params.configmap | toJSONPretty " "}}' +``` From 841bf204bc9f96e16a1b95a2aad510aa33e8b56d Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Tue, 1 Oct 2024 15:58:11 +0545 Subject: [PATCH 2/7] chore: use kitchen sink example for playbook param --- mission-control/docs/reference/playbooks/parameters.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/mission-control/docs/reference/playbooks/parameters.md b/mission-control/docs/reference/playbooks/parameters.md index b3873a37..08b0eae6 100644 --- a/mission-control/docs/reference/playbooks/parameters.md +++ b/mission-control/docs/reference/playbooks/parameters.md @@ -50,8 +50,12 @@ When running the playbook on a `Deployment` named `mysql` the following will be | `people` | Limits the value to people. | Dropdown | `string` | [`People`](#people) | | `team` | Limits the value to teams. | Dropdown | `string` | - | | `text` | Text input | Text Input | `string` | [`Text`](#text) | -| `millicores` | CPU resource | Text Input | `string` | - | -| `bytes` | Memory resource | Text Input | `string` | - | +| `millicores` | CPU resource | Number | `string` | - | +| `bytes` | Memory resource | Number | `string` | - | + +```yaml title='params-sink.yaml' file=../../../modules/mission-control/fixtures/playbooks/params.yaml {20,24,27,32,39,46,51,56,61,72} showLineNumbers + +``` ### component @@ -59,12 +63,14 @@ When running the playbook on a `Deployment` named `mysql` the following will be | ---------- | -------------------------------------- | -------------------------------------------------- | | `filter[]` | Limit the components to the given type | [`ResourceSelector`](/reference/resource-selector) | + ### config | Field | Description | Schema | | ------------- | ---------------------------------------- | -------------------------------------------------- | | `filter.type` | Limit the config items to the given type | [`ResourceSelector`](/reference/resource-selector) | + ### checks | Field | Description | Schema | From 3158617bd149471264248d91cde184e9d5738d3f Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Tue, 1 Oct 2024 15:58:23 +0545 Subject: [PATCH 3/7] chore: update sub modules --- mission-control/docs/reference/playbooks/parameters.md | 2 -- modules/canary-checker | 2 +- modules/config-db | 2 +- modules/duty | 2 +- modules/mission-control | 2 +- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/mission-control/docs/reference/playbooks/parameters.md b/mission-control/docs/reference/playbooks/parameters.md index 08b0eae6..4d0a3f13 100644 --- a/mission-control/docs/reference/playbooks/parameters.md +++ b/mission-control/docs/reference/playbooks/parameters.md @@ -63,14 +63,12 @@ When running the playbook on a `Deployment` named `mysql` the following will be | ---------- | -------------------------------------- | -------------------------------------------------- | | `filter[]` | Limit the components to the given type | [`ResourceSelector`](/reference/resource-selector) | - ### config | Field | Description | Schema | | ------------- | ---------------------------------------- | -------------------------------------------------- | | `filter.type` | Limit the config items to the given type | [`ResourceSelector`](/reference/resource-selector) | - ### checks | Field | Description | Schema | diff --git a/modules/canary-checker b/modules/canary-checker index 1b35f610..cd3d9d86 160000 --- a/modules/canary-checker +++ b/modules/canary-checker @@ -1 +1 @@ -Subproject commit 1b35f6104145f81a296579b205e9da807e08ff0c +Subproject commit cd3d9d86873c07c6b753b45d3eed83a087269de3 diff --git a/modules/config-db b/modules/config-db index bfe5cd20..1d2ac593 160000 --- a/modules/config-db +++ b/modules/config-db @@ -1 +1 @@ -Subproject commit bfe5cd20b3fa526f80a4fcd8adf85ed7858315e7 +Subproject commit 1d2ac593d364ae2d5712a7df68f95493c3dafa0f diff --git a/modules/duty b/modules/duty index ee025267..aa3f89db 160000 --- a/modules/duty +++ b/modules/duty @@ -1 +1 @@ -Subproject commit ee02526794c4cd577207ab14dd1521d5cc62c856 +Subproject commit aa3f89db357eac34b54ef337b92ceadf52ecbd9d diff --git a/modules/mission-control b/modules/mission-control index 92323903..c8797f60 160000 --- a/modules/mission-control +++ b/modules/mission-control @@ -1 +1 @@ -Subproject commit 9232390353923ce0d946598deb1adb4d04abfc0b +Subproject commit c8797f60d05f18c5100bbfaaa0ae6cb24d93582f From 2fc6b26f15184650797061ff516c418461311966 Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Wed, 2 Oct 2024 19:46:28 +0545 Subject: [PATCH 4/7] fix: show context for templating parameters --- .../docs/playbooks/self-service.mdx | 2 +- .../{parameters.md => parameters.mdx} | 58 +++++++++++++++---- 2 files changed, 48 insertions(+), 12 deletions(-) rename mission-control/docs/reference/playbooks/{parameters.md => parameters.mdx} (76%) diff --git a/mission-control/docs/playbooks/self-service.mdx b/mission-control/docs/playbooks/self-service.mdx index e6008053..fb9ee993 100644 --- a/mission-control/docs/playbooks/self-service.mdx +++ b/mission-control/docs/playbooks/self-service.mdx @@ -3,7 +3,7 @@ title: Self Service sidebar_position: 4 --- -import Parameters from '../reference/playbooks/parameters.md' +import Parameters from '../reference/playbooks/parameters.mdx' Playbooks can be manually triggered on a component, config item or check. diff --git a/mission-control/docs/reference/playbooks/parameters.md b/mission-control/docs/reference/playbooks/parameters.mdx similarity index 76% rename from mission-control/docs/reference/playbooks/parameters.md rename to mission-control/docs/reference/playbooks/parameters.mdx index 4d0a3f13..d8f02529 100644 --- a/mission-control/docs/reference/playbooks/parameters.md +++ b/mission-control/docs/reference/playbooks/parameters.mdx @@ -8,17 +8,53 @@ title: Parameters Playbook parameter defines a parameter that a playbook needs to run. -| Field | Description | Scheme | Required | -| ------------- | --------------------------------------------------- | ---------------------------------------------- | -------- | -| `name` | Name of parameter. | `string` | `true` | -| `default` | Default value of the parameter. | [Go Template](/reference/scripting/gotemplate) | | -| `label` | Label of the parameter. | `string` | | -| `required` | Specify if the parameter is required. | `bool` | | -| `icon` | Icon for the playbook. | [`Icon`](/reference/types#icon) | | -| `description` | Description of the parameter. | `string` | | -| `type` | Type of parameter. _(Defaults to "text")_ | `string` | | -| `properties` | Properties of parameter. _Varies based on the type_ | `map[string]string` | | - + + ## Defaulting Parameter values can be defaulted from the selected resource From 4c479d886e0b1921554d36e79863c5d9729fcb4a Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Wed, 2 Oct 2024 19:49:15 +0545 Subject: [PATCH 5/7] chore: vale on changed files --- .github/workflows/style.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index 1921b72a..51459fa6 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -1,6 +1,6 @@ name: Vale on: - push: + pull_request: jobs: vale: @@ -8,6 +8,20 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: errata-ai/vale-action@reviewdog + + - name: Get changed files + id: changed-files + uses: tj-actions/changed-files@v45 + + - name: List changed fiels + run: | + echo "Files changed:" + echo "${{ steps.changed-files.outputs.all_changed_files }}" | tr ' ' '\n' + + - name: Run Vale on changed files + uses: errata-ai/vale-action@reviewdog with: - reporter: github-check + files: ${{ steps.changed-files.outputs.all_changed_files }} + separator: " " + reporter: github-pr-check + fail_on_error: true From a08d9c2ecf92ecdbb5755ea3daaf35483e7acf28 Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Wed, 2 Oct 2024 20:04:29 +0545 Subject: [PATCH 6/7] fix: Vale errors --- .../docs/reference/playbooks/parameters.mdx | 2 +- .../docs/reference/resource-selector.md | 26 ---- styles/ignore/words-with-suggestions.txt | 128 +++++++++--------- 3 files changed, 67 insertions(+), 89 deletions(-) diff --git a/mission-control/docs/reference/playbooks/parameters.mdx b/mission-control/docs/reference/playbooks/parameters.mdx index d8f02529..fe8513fb 100644 --- a/mission-control/docs/reference/playbooks/parameters.mdx +++ b/mission-control/docs/reference/playbooks/parameters.mdx @@ -69,7 +69,7 @@ spec: - default: 'chore: update $(.config.type)/$(.config.name)' ``` -When running the playbook on a `Deployment` named `mysql` the following will be prepopulated: +When running the playbook on a `Deployment` named `mysql` the following is pre-populated: diff --git a/mission-control/docs/reference/resource-selector.md b/mission-control/docs/reference/resource-selector.md index b7791949..3c00d4be 100644 --- a/mission-control/docs/reference/resource-selector.md +++ b/mission-control/docs/reference/resource-selector.md @@ -51,29 +51,3 @@ spec: - labelSelector: 'team=payments' - labelSelector: 'team=orders' ``` - -### Selecting configs in a playbook paramater - -```yaml title="display-config-map.yaml" ---- -apiVersion: mission-control.flanksource.com/v1 -kind: Playbook -metadata: - name: display-config-map - namespace: mc -spec: - category: kubernetes - parameters: - - name: configmap - label: 'Choose a secret' - type: config - properties: - filter: - - types: - - Kubernetes::ConfigMap - actions: - - name: JSON - exec: - script: | - echo '{{.params.configmap | toJSONPretty " "}}' -``` diff --git a/styles/ignore/words-with-suggestions.txt b/styles/ignore/words-with-suggestions.txt index 6319e53a..8bc50e58 100644 --- a/styles/ignore/words-with-suggestions.txt +++ b/styles/ignore/words-with-suggestions.txt @@ -1,14 +1,17 @@ actionPrefix -apiVersion agent_id aggregatorName +AIOps alarmPrefix alertmanager Alertmanager Ansible anyOf api +API's APIs +apiVersion +argocd arkade arn asciicast @@ -16,6 +19,7 @@ aws awsConnection basepath bash_exporter +Bitnami blackbox Blackbox bool @@ -23,6 +27,10 @@ boolean booleans Booleans bools +botfather +botkey +botmail +buildMetadata caCert camelCase canary_check @@ -31,12 +39,15 @@ canary_check_failed_count canary_check_info canary_check_success_count capitalizations +cel +CEL's Chartmuseum check_id checkIntegrity checkRetries clearResources cli +clientHost clientSecret Cloudprober Cloudwatch @@ -57,6 +68,7 @@ containerd contentType correctly? cpu +CRD's CRDs CRDs created_by @@ -76,9 +88,13 @@ datapoint datapoints datatype datatypes +deadline +declaratively deletedAt deleteTimeout deleteTimeout +deleteTimeout +dependabot Dependabot dependsOn Devops @@ -93,10 +109,13 @@ enum env envvar envvar +etcd exactreply exists_one expectedContent +expectedContent expectedDigest +expectedHttpStatuses expectedSize expr extraArgs @@ -104,35 +123,50 @@ filepath Filepath filestat_exporter Filestores +flanksource Flanksource +fluxcd fromAddress +fromName gcpConnection GCPDatabase +getAction +Gitea github Github github_actions_exporter githubToken +gitops Gitops gojq golang gomplate -gomplate +gotemplate Gotify grafana Grafana handshakeTimeout +handshakeTimeout +hardcoded hostname http +HTTPConnection +httpRetryInterval https https httpTimeout +httpTimeout hyperthread hyperthreaded hyperthreading hyperthreads ignoredRules +imcp incidentcommander ingressHost +ingressHost +ingressName +ingressTimeout ingressTimeout inlining insecure_tls @@ -161,6 +195,10 @@ Kratos kubectl Kuberhealthy kubernetes +kustomization +Kustomization +kustomizations +kustomize ldap le lifeycle @@ -173,8 +211,10 @@ mailservers Mattermost maxAge maxCount +maxLength maxSize maxSSLExpiry +maxSSLExpiry maxWidth messageKey metacharacters @@ -187,6 +227,8 @@ minSize Mul multi-cloud multicore +multiline +mysql nameOverride nameserver nameservers @@ -203,14 +245,17 @@ Ntfy oauth OAuth objectPath +oneOf Opensearch opensearch_exporter +originAnnotations orValue packetCount pageview pageviews params parent_id +parseMode ping_exporter playbook_id Playright @@ -220,6 +265,7 @@ powershell Powershell prepends priorityClass +priorityClass prometheus promethus protobuf @@ -234,16 +280,21 @@ ratelimits reachability readonly readyTimeout +readyTimeout redis Redistributable repo responseCodes +responseCodes +responseContent responseContent restic Restic Rocketchat ruleset scheduleTimeout +scheduleTimeout +scheduleTimeout script_exporter Scriptable searchPath @@ -251,6 +302,7 @@ securityContext Semver serviceMonitor SFTPConnection +shoutrrr Shoutrrr Shoutrrr smbConnection @@ -261,6 +313,7 @@ sql_exporter squote src ssl_exporter +starttls statefulset Statefulset staticResources @@ -276,8 +329,13 @@ targpath tcp templatable templateBody +templateBody templated +templatedBody +templateEnv testResults +textarea +thresholdMillis thresholdMillis timeframe timeframes @@ -287,6 +345,7 @@ timeslots titleKey tls tlsConfig +tlsConfig TLSConfig toJSONPretty tolerations @@ -294,6 +353,8 @@ toml tooltip topology_id Trunc +unencrypted +unescaped uniq unmarshalls url @@ -312,68 +373,11 @@ webpage webpages webserver webservers +withTemplates +workflow_dispatch yaml yamlArray YAMLArray Youtube yq -CRD's -Zulip -HTTPConnection -scheduleTimeout -expectedContent -expectedHttpStatuses -readyTimeout -scheduleTimeout -httpTimeout -deleteTimeout -ingressTimeout -deadline -httpRetryInterval -ingressName -ingressHost -priorityClass -handshakeTimeout -tlsConfig -templateBody -responseCodes -responseContent -thresholdMillis -maxSSLExpiry -unencrypted -etcd -Bitnami -imcp -argocd -fluxcd -kustomize -Kustomization -originAnnotations -Gitea -flanksource -AIOps -oneOf -API's -clientHost -fromName -starttls -shoutrrr -botmail -botkey -parseMode -botfather -kustomization -kustomizations -hardcoded -gitops -cel -mysql -templatedBody -workflow_dispatch -buildMetadata -getAction -maxLength -declaratively -CEL's -dependabot -unescaped +Zulip \ No newline at end of file From 820248d0887b1e296d99944b0ea1506010b015cc Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Mon, 7 Oct 2024 15:07:56 +0545 Subject: [PATCH 7/7] chore: fix playbook parameter resource selector docs --- mission-control/docs/reference/playbooks/parameters.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mission-control/docs/reference/playbooks/parameters.mdx b/mission-control/docs/reference/playbooks/parameters.mdx index fe8513fb..91153a93 100644 --- a/mission-control/docs/reference/playbooks/parameters.mdx +++ b/mission-control/docs/reference/playbooks/parameters.mdx @@ -97,19 +97,19 @@ When running the playbook on a `Deployment` named `mysql` the following is pre-p | Field | Description | Schema | | ---------- | -------------------------------------- | -------------------------------------------------- | -| `filter[]` | Limit the components to the given type | [`ResourceSelector`](/reference/resource-selector) | +| `filter[]` | Limit the components to these resources | [`ResourceSelector`](/reference/resource-selector) | ### config | Field | Description | Schema | | ------------- | ---------------------------------------- | -------------------------------------------------- | -| `filter.type` | Limit the config items to the given type | [`ResourceSelector`](/reference/resource-selector) | +| `filter[]` | Limit the config items to these resources | [`ResourceSelector`](/reference/resource-selector) | ### checks | Field | Description | Schema | | ------------- | ---------------------------------- | -------------------------------------------------- | -| `filter.type` | Limit the checks to the given type | [`ResourceSelector`](/reference/resource-selector) | +| `filter[]` | Limit the checks to these resources | [`ResourceSelector`](/reference/resource-selector) | ### code