forked from electric-cloud/DSL-Samples
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathRelease created report.groovy
61 lines (55 loc) · 1.19 KB
/
Release created report.groovy
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
/*
Cloudbees CDRO DSL: Releases created over time dashboard and report
*/
project "DSL-Samples",{
report 'Release created', {
reportObjectTypeName = 'release'
definition = '''\
{
"size": 0,
"aggregations": {
"CreatedOn": {
"date_histogram": {
"field": "@timestamp",
"format": "yyyy-MM-dd",
"calendar_interval": "1M",
"offset": 0,
"order": {
"_key": "asc"
},
"keyed": false,
"min_doc_count": 1
}
}
}
}
'''.stripIndent()
}
dashboard 'Created Releases', {
reportingFilter 'DateFilter', {
dashboardName = 'Created Releases'
operator = 'BETWEEN'
orderIndex = '1'
parameterName = '@timestamp'
required = '1'
type = 'DATE'
}
widget 'Created Releases', {
attributeDataType = [
'yAxis': 'NUMBER',
'xAxis': 'DATE',
]
attributePath = [
'yAxis': 'CreatedOn_count',
'xAxis': 'CreatedOn_label',
'xAxisLabel': 'CreatedOn_label',
]
dashboardName = 'Created Releases'
orderIndex = '4'
reportName = 'Release created'
reportProjectName = projectName
title = 'Created Releases over time'
visualization = 'VERTICAL_BAR_CHART'
}
}
}