fluent-plugin-terminal_notifier 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c36b95b036593821a070341e3f94ef813331c2e0
|
4
|
+
data.tar.gz: 515648bb4f7c87cb18c6c58a6e6d4f7ef49e07c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7fff62e0301d9e7172aed9aa1e43e00209394a7b10f51eb04a7c34c7bc18b8d3272d1b61747c478fec374fa8f424e00ce47852c44de03e99fb9eec0508aa936
|
7
|
+
data.tar.gz: 3c2f1472e494dbbe5850b265fb9a383b3ecc737fd23cfd6b3e95100812b9d965e99179d088853ce536f4a36b65d11ccf9261800298517ac270e3f111efa994b4
|
data/README.md
CHANGED
@@ -37,8 +37,8 @@ Or install it yourself as:
|
|
37
37
|
For example, add `terminal-notifier` configuration section like this:
|
38
38
|
|
39
39
|
```
|
40
|
-
<match
|
41
|
-
type
|
40
|
+
<match terminal_notifier.**>
|
41
|
+
@type terminal_notifier
|
42
42
|
title test
|
43
43
|
sub_title sub
|
44
44
|
</match>
|
@@ -49,8 +49,8 @@ Also you can specify app ID to activate like this:
|
|
49
49
|
This example is activating Terminal.app.
|
50
50
|
|
51
51
|
```
|
52
|
-
<match
|
53
|
-
type
|
52
|
+
<match terminal_notifier.**>
|
53
|
+
@type terminal_notifier
|
54
54
|
title test
|
55
55
|
sub_title sub
|
56
56
|
activate com.apple.Terminal
|
@@ -71,11 +71,11 @@ In more detail about activatation, please refer to the [TerminalNotifier documen
|
|
71
71
|
|
72
72
|
This is a filter version of terminal-notifier fluentd plugin.
|
73
73
|
|
74
|
-
For example, add `
|
74
|
+
For example, add `terminal_notifier` configuration section like this:
|
75
75
|
|
76
76
|
```
|
77
|
-
<filter filter.
|
78
|
-
type
|
77
|
+
<filter filter.terminal_notifier.**>
|
78
|
+
@type terminal_notifier
|
79
79
|
title filtered
|
80
80
|
sub_title sub_filtered
|
81
81
|
</filter>
|
@@ -86,8 +86,8 @@ Also you can specify app ID to activate like this:
|
|
86
86
|
This example is activating Terminal.app.
|
87
87
|
|
88
88
|
```
|
89
|
-
<filter filter.
|
90
|
-
type
|
89
|
+
<filter filter.terminal_notifier.**>
|
90
|
+
@type terminal_notifier
|
91
91
|
title filtered
|
92
92
|
sub_title sub_filtered
|
93
93
|
activate com.apple.Terminal
|
data/example/fluent.conf
CHANGED
@@ -1,31 +1,36 @@
|
|
1
1
|
<source>
|
2
|
-
type forward
|
2
|
+
@type forward
|
3
3
|
port 24224
|
4
4
|
bind 0.0.0.0
|
5
5
|
</source>
|
6
6
|
|
7
|
-
<match
|
8
|
-
type copy
|
7
|
+
<match terminal_notifier.**>
|
8
|
+
@type copy
|
9
9
|
<store>
|
10
|
-
type
|
10
|
+
type terminal_notifier
|
11
11
|
title test
|
12
12
|
sub_title sub
|
13
13
|
</store>
|
14
14
|
<store>
|
15
|
-
type stdout
|
15
|
+
@type stdout
|
16
16
|
</store>
|
17
17
|
</match>
|
18
18
|
|
19
|
-
<filter filter.
|
20
|
-
type stdout
|
19
|
+
<filter filter.terminal_notifier.**>
|
20
|
+
@type stdout
|
21
21
|
</filter>
|
22
22
|
|
23
|
-
<filter filter.
|
24
|
-
type
|
23
|
+
<filter filter.terminal_notifier.**>
|
24
|
+
@type terminal_notifier
|
25
25
|
title filtered_test
|
26
26
|
sub_title filtered_sub
|
27
27
|
</filter>
|
28
28
|
|
29
|
-
<match filter.
|
30
|
-
type null
|
29
|
+
<match filter.terminal_notifier.**>
|
30
|
+
@type null
|
31
31
|
</match>
|
32
|
+
|
33
|
+
# for multi workers settings
|
34
|
+
# <system>
|
35
|
+
# workers 2
|
36
|
+
# </system>
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "fluent-plugin-terminal_notifier"
|
7
|
-
spec.version = "0.
|
7
|
+
spec.version = "0.2.0"
|
8
8
|
spec.authors = ["Hiroshi Hatake"]
|
9
9
|
spec.email = ["cosmo0920.wp@gmail.com"]
|
10
10
|
|
@@ -5,7 +5,7 @@ module Fluent::Plugin
|
|
5
5
|
class TerminalNotifierFilter < Filter
|
6
6
|
include Fluent::NotifyUtil
|
7
7
|
|
8
|
-
Fluent::Plugin.register_filter('
|
8
|
+
Fluent::Plugin.register_filter('terminal_notifier', self);
|
9
9
|
|
10
10
|
DEFAULT_TITLE = "Fluentd Notification"
|
11
11
|
DEFAULT_SUB_TITLE = "Fluentd Notification Sub Title"
|
@@ -5,7 +5,7 @@ module Fluent::Plugin
|
|
5
5
|
class TerminalNotifierOutput < Output
|
6
6
|
include Fluent::NotifyUtil
|
7
7
|
|
8
|
-
Fluent::Plugin.register_output('
|
8
|
+
Fluent::Plugin.register_output('terminal_notifier', self);
|
9
9
|
|
10
10
|
DEFAULT_TITLE = "Fluentd Notification"
|
11
11
|
DEFAULT_SUB_TITLE = "Fluentd Notification Sub Title"
|
@@ -18,6 +18,10 @@ module Fluent::Plugin
|
|
18
18
|
super
|
19
19
|
end
|
20
20
|
|
21
|
+
def multi_workers_ready?
|
22
|
+
true
|
23
|
+
end
|
24
|
+
|
21
25
|
def process(tag, es)
|
22
26
|
es.each{|time,record|
|
23
27
|
notify(time, record)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-terminal_notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiroshi Hatake
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|