logstash-input-heartbeat 3.0.2 → 3.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ebeccee5adfe452853de60c7806972fbded09bbb
4
- data.tar.gz: 4b92f1ad148ab85ba90ccd0c5033fdcd0eec7610
3
+ metadata.gz: 61182ec026408453bb9ad188b0f93d42d85c1218
4
+ data.tar.gz: 79ffa1180529eff0811ca06104f397c590fa1859
5
5
  SHA512:
6
- metadata.gz: 7391d143469706ad58f1ba3d233a4ec893ebe54cb831a49bcf34fbb691ee6ce6fc463ac378b29db5f3af161edd8e3574df647d47c4ec1c79c031ae9f65bda6ee
7
- data.tar.gz: 362f1fe2d365302d8e1642062d1f551f1348a4d16bd7aa1e9ce57b2e856c4a1297371ccae6a30b7d4edd3b2c07bcb8c94cd0986c659ccf80dbfe2b4e42385666
6
+ metadata.gz: f4a474b3dcb8169054220feb7dc4ee6b6be30a922dd4aa9bdb21d12857428fb60e53f5af58157fe48422c5a17ae30518d67435eb9a382663b3b45a949b2cb6c9
7
+ data.tar.gz: 3ae24164ae7993346196498053c342d38a67098777bc0e065e1845f6c2901d19d53998fde9ca38748fc929c37c1658988024d4fde43e26425b0331c71ed2cff3
data/Gemfile CHANGED
@@ -1,4 +1,11 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in logstash-mass_effect.gemspec
4
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
@@ -0,0 +1,97 @@
1
+ :plugin: heartbeat
2
+ :type: input
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
+ === Heartbeat input plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ Generate heartbeat messages.
24
+
25
+ The general intention of this is to test the performance and
26
+ availability of Logstash.
27
+
28
+
29
+ [id="plugins-{type}s-{plugin}-options"]
30
+ ==== Heartbeat Input Configuration Options
31
+
32
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
33
+
34
+ [cols="<,<,<",options="header",]
35
+ |=======================================================================
36
+ |Setting |Input type|Required
37
+ | <<plugins-{type}s-{plugin}-count>> |<<number,number>>|No
38
+ | <<plugins-{type}s-{plugin}-interval>> |<<number,number>>|No
39
+ | <<plugins-{type}s-{plugin}-message>> |<<string,string>>|No
40
+ | <<plugins-{type}s-{plugin}-threads>> |<<number,number>>|No
41
+ |=======================================================================
42
+
43
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
44
+ input plugins.
45
+
46
+ &nbsp;
47
+
48
+ [id="plugins-{type}s-{plugin}-count"]
49
+ ===== `count`
50
+
51
+ * Value type is <<number,number>>
52
+ * Default value is `-1`
53
+
54
+ How many times to iterate.
55
+ This is typically used only for testing purposes.
56
+
57
+ [id="plugins-{type}s-{plugin}-interval"]
58
+ ===== `interval`
59
+
60
+ * Value type is <<number,number>>
61
+ * Default value is `60`
62
+
63
+ Set how frequently messages should be sent.
64
+
65
+ The default, `60`, means send a message every 60 seconds.
66
+
67
+ [id="plugins-{type}s-{plugin}-message"]
68
+ ===== `message`
69
+
70
+ * Value type is <<string,string>>
71
+ * Default value is `"ok"`
72
+
73
+ The message string to use in the event.
74
+
75
+ If you set this to `epoch` then this plugin will use the current
76
+ timestamp in unix timestamp (which is by definition, UTC). It will
77
+ output this value into a field called `clock`
78
+
79
+ If you set this to `sequence` then this plugin will send a sequence of
80
+ numbers beginning at 0 and incrementing each interval. It will
81
+ output this value into a field called `clock`
82
+
83
+ Otherwise, this value will be used verbatim as the event message. It
84
+ will output this value into a field called `message`
85
+
86
+ [id="plugins-{type}s-{plugin}-threads"]
87
+ ===== `threads`
88
+
89
+ * Value type is <<number,number>>
90
+ * Default value is `1`
91
+
92
+
93
+
94
+
95
+
96
+ [id="plugins-{type}s-{plugin}-common-options"]
97
+ include::{include_path}/{type}.asciidoc[]
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-heartbeat'
4
- s.version = '3.0.2'
4
+ s.version = '3.0.3'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This input generates a heartbeat pattern to aid in monitoring Logstash performance & availability"
7
7
  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"
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.require_paths = ["lib"]
12
12
 
13
13
  # Files
14
- s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE','NOTICE.TXT']
14
+ s.files = Dir["lib/**/*","spec/**/*","*.gemspec","*.md","CONTRIBUTORS","Gemfile","LICENSE","NOTICE.TXT", "vendor/jar-dependencies/**/*.jar", "vendor/jar-dependencies/**/*.rb", "VERSION", "docs/**/*"]
15
15
 
16
16
  # Tests
17
17
  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-input-heartbeat
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-14 00:00:00.000000000 Z
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
@@ -85,6 +85,7 @@ files:
85
85
  - LICENSE
86
86
  - NOTICE.TXT
87
87
  - README.md
88
+ - docs/index.asciidoc
88
89
  - lib/logstash/inputs/heartbeat.rb
89
90
  - logstash-input-heartbeat.gemspec
90
91
  - spec/inputs/heartbeat_spec.rb
@@ -110,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
111
  version: '0'
111
112
  requirements: []
112
113
  rubyforge_project:
113
- rubygems_version: 2.6.3
114
+ rubygems_version: 2.4.8
114
115
  signing_key:
115
116
  specification_version: 4
116
117
  summary: This input generates a heartbeat pattern to aid in monitoring Logstash performance & availability