From 79e115be088e78578c6c1827414820698959dd11 Mon Sep 17 00:00:00 2001 From: ssube Date: Wed, 26 Jun 2019 07:10:05 -0500 Subject: [PATCH] docs: comments and phrasing --- docs/rules.md | 3 ++- rules/grafana.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/rules.md b/docs/rules.md index 749c0c0..deef427 100644 --- a/docs/rules.md +++ b/docs/rules.md @@ -172,7 +172,8 @@ rules: Schema used to filter selected nodes. -If a node was `select`ed but but does not match this schema, it will be skipped and the rule will check the next node. +If a node was `select`ed but but does not match this schema, it will be skipped and the rule will move on to the next +node. Uses [ajv syntax](https://ajv.js.org/keywords.html) in an object. diff --git a/rules/grafana.yml b/rules/grafana.yml index 8b52365..ea31c4f 100644 --- a/rules/grafana.yml +++ b/rules/grafana.yml @@ -7,6 +7,8 @@ rules: - grafana - dashboard + # this is not the ideal selector for this rule, but tags are located at $.dashboard.tags, while notification + # channels are nested under $.dashboard.panels[*].alert.notifications[*].uid select: '$' filter: @@ -41,7 +43,6 @@ rules: items: type: object required: [uid] - additionalProperties: false properties: uid: type: string