forked from dalavanmanphonsy/jiradog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmetrics.schema.yaml
79 lines (78 loc) · 1.52 KB
/
metrics.schema.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
$schema: http://json-schema.org/draft-06/schema#
definitions:
data_provider:
properties:
__comment:
type: string
filter:
type: string
jql:
type: string
method:
type: string
source:
type: string
statuses:
items:
properties:
date:
pattern: ^{({|%|#).*(}|%|#)}$
type: string
source:
pattern: issue|changelog
type: string
type: object
type: array
required:
- source
- jql
- method
type: object
items:
allOf:
- required:
- metric_name
- projects
- method
- oneOf:
- required:
- issues
- required:
- numerator
- denominator
properties:
__comment:
type: string
denominator:
$ref: '#/definitions/data_provider'
grouping:
properties:
boards:
patternProperties:
'[A-Z]*':
type: number
type: object
by:
pattern: sprint
type: string
count:
type: string
required:
- by
- count
type: object
issues:
$ref: '#/definitions/data_provider'
method:
type: string
metric_name:
pattern: (jiradog)(\.)(([a-z0-9]+)([A-Z]{1}[a-z]*)*)\.(([a-z0-9]+)([A-Za-z]*)+)
type: string
numerator:
$ref: '#/definitions/data_provider'
projects:
items:
type: string
type: array
type: object
type: array