lint(rules): make production alerts selector more specific
This commit is contained in:
parent
79e115be08
commit
f9e2b6818e
|
@ -9,41 +9,35 @@ 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
|
type: object
|
||||||
properties:
|
properties:
|
||||||
dashboard:
|
tags:
|
||||||
type: object
|
type: array
|
||||||
properties:
|
items:
|
||||||
tags:
|
type: string
|
||||||
type: array
|
contains:
|
||||||
items:
|
pattern: production
|
||||||
type: string
|
|
||||||
contains:
|
|
||||||
pattern: production
|
|
||||||
|
|
||||||
check:
|
check:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
dashboard:
|
panels:
|
||||||
type: object
|
type: array
|
||||||
properties:
|
items:
|
||||||
panels:
|
type: object
|
||||||
type: array
|
properties:
|
||||||
items:
|
alert:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
alert:
|
notifications:
|
||||||
type: object
|
type: array
|
||||||
properties:
|
items:
|
||||||
notifications:
|
type: object
|
||||||
type: array
|
required: [uid]
|
||||||
items:
|
properties:
|
||||||
type: object
|
uid:
|
||||||
required: [uid]
|
type: string
|
||||||
properties:
|
pattern: production
|
||||||
uid:
|
|
||||||
type: string
|
|
||||||
pattern: production
|
|
Loading…
Reference in New Issue