logstash-output-redmine 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +10 -1
- data/docs/index.asciidoc +192 -0
- data/logstash-output-redmine.gemspec +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67f92158b5aa1f832acd12fa3137d09375e5dc3e
|
4
|
+
data.tar.gz: 939eacfc770f82165eb81e431c4bb015e922286f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c35a619f8b5fe4f8d801f30b7c61c4d79c8b8126e8f88ce590094325dfeefae5c6481e16d364c126fbd5b2c3c8c0a0c29e28e49db1fa173b3369e7a7ca7b924d
|
7
|
+
data.tar.gz: bb86ac2257e3bdece2f4f16186b50fdf1955abbde6c33cc7e26dbab2eea3c8aec7bc61175983f1f888e4e4a9311388e023e9fd511d6c3aa315634ac6db290ae1
|
data/Gemfile
CHANGED
@@ -1,2 +1,11 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
|
-
|
2
|
+
|
3
|
+
gemspec
|
4
|
+
|
5
|
+
logstash_path = ENV["LOGSTASH_PATH"] || "../../logstash"
|
6
|
+
use_logstash_source = ENV["LOGSTASH_SOURCE"] && ENV["LOGSTASH_SOURCE"].to_s == "1"
|
7
|
+
|
8
|
+
if Dir.exist?(logstash_path) && use_logstash_source
|
9
|
+
gem 'logstash-core', :path => "#{logstash_path}/logstash-core"
|
10
|
+
gem 'logstash-core-plugin-api', :path => "#{logstash_path}/logstash-core-plugin-api"
|
11
|
+
end
|
data/docs/index.asciidoc
ADDED
@@ -0,0 +1,192 @@
|
|
1
|
+
:plugin: redmine
|
2
|
+
:type: output
|
3
|
+
|
4
|
+
///////////////////////////////////////////
|
5
|
+
START - GENERATED VARIABLES, DO NOT EDIT!
|
6
|
+
///////////////////////////////////////////
|
7
|
+
:version: %VERSION%
|
8
|
+
:release_date: %RELEASE_DATE%
|
9
|
+
:changelog_url: %CHANGELOG_URL%
|
10
|
+
:include_path: ../../../../logstash/docs/include
|
11
|
+
///////////////////////////////////////////
|
12
|
+
END - GENERATED VARIABLES, DO NOT EDIT!
|
13
|
+
///////////////////////////////////////////
|
14
|
+
|
15
|
+
[id="plugins-{type}-{plugin}"]
|
16
|
+
|
17
|
+
=== Redmine output plugin
|
18
|
+
|
19
|
+
include::{include_path}/plugin_header.asciidoc[]
|
20
|
+
|
21
|
+
==== Description
|
22
|
+
|
23
|
+
The redmine output is used to create a ticket via the API redmine.
|
24
|
+
|
25
|
+
It send a POST request in a JSON format and use TOKEN authentication
|
26
|
+
|
27
|
+
|
28
|
+
-- Exemple of use --
|
29
|
+
[source,ruby]
|
30
|
+
output {
|
31
|
+
redmine {
|
32
|
+
url => "http://redmineserver.tld"
|
33
|
+
token => 'token'
|
34
|
+
project_id => 200
|
35
|
+
tracker_id => 1
|
36
|
+
status_id => 3
|
37
|
+
priority_id => 2
|
38
|
+
subject => "Error ... detected"
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
[id="plugins-{type}s-{plugin}-options"]
|
43
|
+
==== Redmine Output Configuration Options
|
44
|
+
|
45
|
+
This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
|
46
|
+
|
47
|
+
[cols="<,<,<",options="header",]
|
48
|
+
|=======================================================================
|
49
|
+
|Setting |Input type|Required
|
50
|
+
| <<plugins-{type}s-{plugin}-assigned_to_id>> |<<number,number>>|No
|
51
|
+
| <<plugins-{type}s-{plugin}-categorie_id>> |<<number,number>>|No
|
52
|
+
| <<plugins-{type}s-{plugin}-description>> |<<string,string>>|No
|
53
|
+
| <<plugins-{type}s-{plugin}-fixed_version_id>> |<<number,number>>|No
|
54
|
+
| <<plugins-{type}s-{plugin}-parent_issue_id>> |<<number,number>>|No
|
55
|
+
| <<plugins-{type}s-{plugin}-priority_id>> |<<number,number>>|Yes
|
56
|
+
| <<plugins-{type}s-{plugin}-project_id>> |<<number,number>>|Yes
|
57
|
+
| <<plugins-{type}s-{plugin}-ssl>> |<<boolean,boolean>>|No
|
58
|
+
| <<plugins-{type}s-{plugin}-status_id>> |<<number,number>>|Yes
|
59
|
+
| <<plugins-{type}s-{plugin}-subject>> |<<string,string>>|No
|
60
|
+
| <<plugins-{type}s-{plugin}-token>> |<<string,string>>|Yes
|
61
|
+
| <<plugins-{type}s-{plugin}-tracker_id>> |<<number,number>>|Yes
|
62
|
+
| <<plugins-{type}s-{plugin}-url>> |<<string,string>>|Yes
|
63
|
+
|=======================================================================
|
64
|
+
|
65
|
+
Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
|
66
|
+
output plugins.
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
[id="plugins-{type}s-{plugin}-assigned_to_id"]
|
71
|
+
===== `assigned_to_id`
|
72
|
+
|
73
|
+
* Value type is <<number,number>>
|
74
|
+
* Default value is `nil`
|
75
|
+
|
76
|
+
redmine issue assigned_to
|
77
|
+
not required for post_issue
|
78
|
+
|
79
|
+
[id="plugins-{type}s-{plugin}-categorie_id"]
|
80
|
+
===== `categorie_id`
|
81
|
+
|
82
|
+
* Value type is <<number,number>>
|
83
|
+
* Default value is `nil`
|
84
|
+
|
85
|
+
not required for post_issue
|
86
|
+
|
87
|
+
[id="plugins-{type}s-{plugin}-description"]
|
88
|
+
===== `description`
|
89
|
+
|
90
|
+
* Value type is <<string,string>>
|
91
|
+
* Default value is `"%{message}"`
|
92
|
+
|
93
|
+
redmine issue description
|
94
|
+
required
|
95
|
+
|
96
|
+
[id="plugins-{type}s-{plugin}-fixed_version_id"]
|
97
|
+
===== `fixed_version_id`
|
98
|
+
|
99
|
+
* Value type is <<number,number>>
|
100
|
+
* Default value is `nil`
|
101
|
+
|
102
|
+
redmine issue fixed_version_id
|
103
|
+
|
104
|
+
[id="plugins-{type}s-{plugin}-parent_issue_id"]
|
105
|
+
===== `parent_issue_id`
|
106
|
+
|
107
|
+
* Value type is <<number,number>>
|
108
|
+
* Default value is `nil`
|
109
|
+
|
110
|
+
redmine issue parent_issue_id
|
111
|
+
not required for post_issue
|
112
|
+
|
113
|
+
[id="plugins-{type}s-{plugin}-priority_id"]
|
114
|
+
===== `priority_id`
|
115
|
+
|
116
|
+
* This is a required setting.
|
117
|
+
* Value type is <<number,number>>
|
118
|
+
* There is no default value for this setting.
|
119
|
+
|
120
|
+
redmine issue priority_id
|
121
|
+
required
|
122
|
+
|
123
|
+
[id="plugins-{type}s-{plugin}-project_id"]
|
124
|
+
===== `project_id`
|
125
|
+
|
126
|
+
* This is a required setting.
|
127
|
+
* Value type is <<number,number>>
|
128
|
+
* There is no default value for this setting.
|
129
|
+
|
130
|
+
redmine issue projet_id
|
131
|
+
required
|
132
|
+
|
133
|
+
[id="plugins-{type}s-{plugin}-ssl"]
|
134
|
+
===== `ssl`
|
135
|
+
|
136
|
+
* Value type is <<boolean,boolean>>
|
137
|
+
* Default value is `false`
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
[id="plugins-{type}s-{plugin}-status_id"]
|
142
|
+
===== `status_id`
|
143
|
+
|
144
|
+
* This is a required setting.
|
145
|
+
* Value type is <<number,number>>
|
146
|
+
* There is no default value for this setting.
|
147
|
+
|
148
|
+
redmine issue status_id
|
149
|
+
required
|
150
|
+
|
151
|
+
[id="plugins-{type}s-{plugin}-subject"]
|
152
|
+
===== `subject`
|
153
|
+
|
154
|
+
* Value type is <<string,string>>
|
155
|
+
* Default value is `"%{host}"`
|
156
|
+
|
157
|
+
redmine issue subject
|
158
|
+
required
|
159
|
+
|
160
|
+
[id="plugins-{type}s-{plugin}-token"]
|
161
|
+
===== `token`
|
162
|
+
|
163
|
+
* This is a required setting.
|
164
|
+
* Value type is <<string,string>>
|
165
|
+
* There is no default value for this setting.
|
166
|
+
|
167
|
+
redmine token user used for authentication
|
168
|
+
|
169
|
+
[id="plugins-{type}s-{plugin}-tracker_id"]
|
170
|
+
===== `tracker_id`
|
171
|
+
|
172
|
+
* This is a required setting.
|
173
|
+
* Value type is <<number,number>>
|
174
|
+
* There is no default value for this setting.
|
175
|
+
|
176
|
+
redmine issue tracker_id
|
177
|
+
required
|
178
|
+
|
179
|
+
[id="plugins-{type}s-{plugin}-url"]
|
180
|
+
===== `url`
|
181
|
+
|
182
|
+
* This is a required setting.
|
183
|
+
* Value type is <<string,string>>
|
184
|
+
* There is no default value for this setting.
|
185
|
+
|
186
|
+
host of redmine app
|
187
|
+
value format : 'http://urlofredmine.tld' - Not add '/issues' at end
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
[id="plugins-{type}s-{plugin}-common-options"]
|
192
|
+
include::{include_path}/{type}.asciidoc[]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-output-redmine'
|
3
|
-
s.version = '3.0.
|
3
|
+
s.version = '3.0.1'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "The redmine output is used to create a ticket via the API redmine."
|
6
6
|
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.require_paths = ["lib"]
|
11
11
|
|
12
12
|
# Files
|
13
|
-
s.files = Dir[
|
13
|
+
s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
|
14
14
|
|
15
15
|
# Tests
|
16
16
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-redmine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- LICENSE
|
57
57
|
- NOTICE.TXT
|
58
58
|
- README.md
|
59
|
+
- docs/index.asciidoc
|
59
60
|
- lib/logstash/outputs/redmine.rb
|
60
61
|
- logstash-output-redmine.gemspec
|
61
62
|
- spec/outputs/redmine_spec.rb
|