lint(rules): make production alerts selector more specific
This commit is contained in:
parent
79e115be08
commit
f9e2b6818e
|
@ -9,12 +9,9 @@ rules:
|
||||||
|
|
||||||
# this is not the ideal selector for this rule, but tags are located at $.dashboard.tags, while notification
|
# 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
|
# channels are nested under $.dashboard.panels[*].alert.notifications[*].uid
|
||||||
select: '$'
|
select: '$.dashboard'
|
||||||
|
|
||||||
filter:
|
filter:
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
dashboard:
|
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
tags:
|
tags:
|
||||||
|
@ -25,9 +22,6 @@ rules:
|
||||||
pattern: production
|
pattern: production
|
||||||
|
|
||||||
check:
|
check:
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
dashboard:
|
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
panels:
|
panels:
|
||||||
|
|
Loading…
Reference in New Issue