sensu-plugins-microsoft-teams 1.2.2 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +72 -5
- data/LICENSE +1 -2
- data/README.md +5 -1
- data/bin/handler-microsoft-teams.rb +6 -6
- data/lib/sensu-plugins-microsoft-teams/version.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ab45f2a28c9a75185abf0208637be2890eb52e6
|
4
|
+
data.tar.gz: 9a143736dba545d7228004f4106dde9aadd5787b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68962ca5a58f397c253b1e734b366e01093971ec2cbe40256f170678848ae321703211897b08365d716a8198f9f778d4502bc26713c8bc30c6fb02da6ffdff52
|
7
|
+
data.tar.gz: 0e4a973c877c0fc4510130c51be30a24ca58b37a32aa26eeafc5c0d933b946a9564a38ca0ddd31c7b92be1a006f39de1e7389e527b1ade121276da8aa48a41c8
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,77 @@
|
|
1
1
|
# Change Log
|
2
2
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
3
3
|
|
4
|
-
This CHANGELOG follows the format
|
4
|
+
This CHANGELOG follows the format located [here](https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md)
|
5
|
+
|
6
|
+
## [Unreleased]
|
7
|
+
|
8
|
+
## [1.3.0] - 2017-10-10
|
9
|
+
### Added
|
10
|
+
- gitignore (@majormoses)
|
11
|
+
- rubocop config (@majormoses)
|
12
|
+
|
13
|
+
### Changed
|
14
|
+
- update changelog guidelines location (@majormoses)
|
15
|
+
- travis config for testing and deploment to rubygems (@majormoses)
|
16
|
+
- handler-microsoft-teams.rb: appease the cops (@majormoses)
|
17
|
+
|
18
|
+
## [1.2.2]
|
19
|
+
### Changed
|
20
|
+
- removed references in README to `skel` (@tuxpower)
|
5
21
|
|
6
|
-
## Unreleased
|
7
22
|
### Added
|
8
|
-
-
|
9
|
-
|
10
|
-
|
23
|
+
- usage for `handler-microsoft-teams.rb` (@tuxpower)
|
24
|
+
|
25
|
+
## [1.2.1]
|
26
|
+
### Breaking Changes
|
27
|
+
- removed optional `clientkeys` fields (@tuxpower)
|
28
|
+
|
29
|
+
## [1.2.0]
|
30
|
+
### Added
|
31
|
+
- OpenUri action type (@tuxpower)
|
32
|
+
|
33
|
+
## [1.1.0]
|
34
|
+
### Added
|
35
|
+
- activityImage option (@tuxpower)
|
36
|
+
|
37
|
+
## [1.0.0]
|
38
|
+
- working version (@tuxpower)
|
39
|
+
|
40
|
+
## [0.0.6]
|
41
|
+
### Added
|
42
|
+
- adapting code from slack plugin as reference (@tuxpower)
|
43
|
+
|
44
|
+
## [0.0.5]
|
45
|
+
### Changed
|
46
|
+
- mulligan (@tuxpower)
|
47
|
+
|
48
|
+
## [0.0.4]
|
49
|
+
### Fixed
|
50
|
+
- use `teams_url` over `webhook_url` (@tuxpower)
|
51
|
+
|
52
|
+
## [0.0.3]
|
53
|
+
### Fixed
|
54
|
+
- updated references of `Slack` to `MicrosoftTeams` (@tuxpower)
|
55
|
+
|
56
|
+
## [0.0.2]
|
57
|
+
### Added
|
58
|
+
- handler-microsoft-teams.rb: handler to send events to microsoft teams (@tuxpower)
|
59
|
+
|
60
|
+
## [0.0.1]
|
61
|
+
### Changed
|
62
|
+
- updated references of `skel` to `microsoft-teams` (@tuxpower)
|
63
|
+
|
64
|
+
|
65
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-microsoft-teams/compare/v1.2.2...HEAD
|
66
|
+
[1.3.0]: https://github.com/sensu-plugins/sensu-plugins-microsoft-teams/compare/v1.2.2...1.3.0
|
67
|
+
[1.2.2]: https://github.com/sensu-plugins/sensu-plugins-microsoft-teams/compare/v1.2.1...v1.2.2
|
68
|
+
[1.2.1]: https://github.com/sensu-plugins/sensu-plugins-microsoft-teams/compare/v1.2.0...v1.2.1
|
69
|
+
[1.2.0]: https://github.com/sensu-plugins/sensu-plugins-microsoft-teams/compare/v1.1.0...v1.2.0
|
70
|
+
[1.1.0]: https://github.com/sensu-plugins/sensu-plugins-microsoft-teams/compare/v1.0.0...v1.1.0
|
71
|
+
[1.0.0]: https://github.com/sensu-plugins/sensu-plugins-microsoft-teams/compare/v0.0.6...v1.0.0
|
72
|
+
[0.0.6]: https://github.com/sensu-plugins/sensu-plugins-microsoft-teams/compare/v0.0.5...v0.0.6
|
73
|
+
[0.0.5]: https://github.com/sensu-plugins/sensu-plugins-microsoft-teams/compare/v0.0.4...v0.0.5
|
74
|
+
[0.0.4]: https://github.com/sensu-plugins/sensu-plugins-microsoft-teams/compare/v0.0.3...v0.0.4
|
75
|
+
[0.0.3]: https://github.com/sensu-plugins/sensu-plugins-microsoft-teams/compare/v0.0.1...v0.0.3
|
76
|
+
[0.0.2]: https://github.com/sensu-plugins/sensu-plugins-microsoft-teams/compare/v0.0.1...v0.0.2
|
77
|
+
[0.0.1]: https://github.com/sensu-plugins/sensu-plugins-microsoft-teams/compare/0b2d68b64a3d100c10da5e4cfce42206b9f22250...v0.0.1
|
data/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2016 Sensu Community Plugins
|
3
|
+
Copyright (c) 2016-2017 Sensu Community Plugins
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
21
|
SOFTWARE.
|
22
|
-
|
data/README.md
CHANGED
@@ -7,6 +7,9 @@
|
|
7
7
|
[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-microsoft-teams.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-microsoft-teams)
|
8
8
|
|
9
9
|
|
10
|
+
## Screenshot
|
11
|
+
![Microsoft Teams Handler](screenshot.png)
|
12
|
+
|
10
13
|
## Functionality
|
11
14
|
|
12
15
|
## Files
|
@@ -36,6 +39,7 @@
|
|
36
39
|
"action_name": "The text that will be displayed on screen for the action"
|
37
40
|
}
|
38
41
|
}
|
42
|
+
```
|
39
43
|
## Usage for microsoft-teams.json
|
40
44
|
```
|
41
45
|
{
|
@@ -47,9 +51,9 @@
|
|
47
51
|
}
|
48
52
|
}
|
49
53
|
```
|
50
|
-
```
|
51
54
|
## Installation
|
52
55
|
|
53
56
|
[Installation and Setup](https://sensu-plugins.io/docs/installation_instructions.html)
|
54
57
|
|
55
58
|
## Notes
|
59
|
+
[Actionable message card reference](https://docs.microsoft.com/en-us/outlook/actionable-messages/card-reference)
|
@@ -123,14 +123,14 @@ class MicrosoftTeams < Sensu::Handler
|
|
123
123
|
template = if message_template && File.readable?(message_template)
|
124
124
|
File.read(message_template)
|
125
125
|
else
|
126
|
-
'
|
126
|
+
'<%=
|
127
127
|
[
|
128
128
|
@event["check"]["output"].gsub(\'"\', \'\\"\'),
|
129
129
|
@event["client"]["address"],
|
130
130
|
@event["client"]["subscriptions"].join(",")
|
131
131
|
].join(" : ")
|
132
132
|
%>
|
133
|
-
'
|
133
|
+
'
|
134
134
|
end
|
135
135
|
eruby = Erubis::Eruby.new(template)
|
136
136
|
eruby.result(binding)
|
@@ -176,11 +176,11 @@ class MicrosoftTeams < Sensu::Handler
|
|
176
176
|
text: [teams_message_prefix, notice].compact.join(' ')
|
177
177
|
}],
|
178
178
|
potentialAction: [{
|
179
|
-
'@type'
|
180
|
-
name: teams_action_name ? teams_action_name :
|
179
|
+
'@type' => teams_action_type ? teams_action_type : 'OpenUri',
|
180
|
+
name: teams_action_name ? teams_action_name : 'View in Sensu',
|
181
181
|
targets: [{
|
182
|
-
os:
|
183
|
-
uri:
|
182
|
+
os: 'default',
|
183
|
+
uri: incident_key.to_s
|
184
184
|
}]
|
185
185
|
}]
|
186
186
|
}.tap do |payload|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-microsoft-teams
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sensu-Plugins and contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|
@@ -175,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
175
|
version: '0'
|
176
176
|
requirements: []
|
177
177
|
rubyforge_project:
|
178
|
-
rubygems_version: 2.
|
178
|
+
rubygems_version: 2.6.14
|
179
179
|
signing_key:
|
180
180
|
specification_version: 4
|
181
181
|
summary: Sensu plugins for interfacing with Microsoft Teams
|