statusio 0.2.9 → 0.3.0
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/CHANGELOG.md +36 -0
- data/lib/statusio.rb +7 -1
- data/lib/statusio/rb/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c0d2d7fc197b696855cc36d6aeab847f3b9166b4f4bb22c403d8782880748e0d
|
|
4
|
+
data.tar.gz: cd6bdee45fa6289f06c2035c2508bc26bb6d00019829ded80f3c7c61145d72d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f5e598031a868cd774b1cb69b50b16780fc6a533d8bcdfe4ea6ebdf2689bfcc95f84615544a1bb9470e9b72c2e7b56e7034dd711fb23cee5d2c0834b86a53afa
|
|
7
|
+
data.tar.gz: 2c7e0a2ae553f90841b51d4f96ba1ca47ff1c3bddd661b0ec029ed516607115db769fc9edd50cf52fef629b1f69854af8a9cc6e2cf6ed0605613204656b8d18c
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
## Change Log
|
|
2
|
+
|
|
3
|
+
### v0.3.0 (2021/5/17)
|
|
4
|
+
- Added Microsoft Teams
|
|
5
|
+
|
|
6
|
+
### v0.2.9 (2020/2/17)
|
|
7
|
+
- Fixed the ordering of the message_subject argument for the incident/maintenance methods which was breaking backwards compatibility
|
|
8
|
+
|
|
9
|
+
### v0.2.8 (2020/2/14)
|
|
10
|
+
- Fix silent parameter type
|
|
11
|
+
|
|
12
|
+
### v0.2.7 (2020/2/10)
|
|
13
|
+
- Adding message_subject to all incident and maintenance methods
|
|
14
|
+
|
|
15
|
+
### v0.2.6 (2019/3/26)
|
|
16
|
+
- Force rest-client gem to be version 1.8.0
|
|
17
|
+
|
|
18
|
+
### v0.2.5 (2018/11/28)
|
|
19
|
+
- Changed variables to proper type (int->str)
|
|
20
|
+
|
|
21
|
+
### v0.2.4 (2018/2/9)
|
|
22
|
+
- Support retrieving single incident/maintenance events. New incident/maintenance methods to fetch list of IDs
|
|
23
|
+
- Change /component/status/update to use a single component
|
|
24
|
+
|
|
25
|
+
### v0.2.3 (2017/12/20)
|
|
26
|
+
- Updated incident/create to handle infrastructure_affected combo
|
|
27
|
+
|
|
28
|
+
### v0.2.2 (2017/12/14)
|
|
29
|
+
- Updated maintenance/schedule to handle infrastructure_affected combos
|
|
30
|
+
|
|
31
|
+
### v0.2.1 (2016/2/11)
|
|
32
|
+
- Refactor API calls into a #request method (@seanhandley)
|
|
33
|
+
- Depend on rest-client gem in runtime (@Nowaker)
|
|
34
|
+
|
|
35
|
+
### v0.1.0 (2016/1/19)
|
|
36
|
+
- Initial release
|
data/lib/statusio.rb
CHANGED
|
@@ -25,6 +25,7 @@ class StatusioClient
|
|
|
25
25
|
NOTIFY_IRC = 16
|
|
26
26
|
NOTIFY_HIPCHAT = 32
|
|
27
27
|
NOTIFY_SLACK = 64
|
|
28
|
+
NOTIFY_MSTEAMS = 128
|
|
28
29
|
|
|
29
30
|
def initialize(api_key, api_id)
|
|
30
31
|
@api_key = api_key
|
|
@@ -50,7 +51,8 @@ class StatusioClient
|
|
|
50
51
|
'social' => '0',
|
|
51
52
|
'irc' => '0',
|
|
52
53
|
'hipchat' => '0',
|
|
53
|
-
'slack' => '0'
|
|
54
|
+
'slack' => '0',
|
|
55
|
+
'msteams' => '0'
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
if notifications & NOTIFY_EMAIL == NOTIFY_EMAIL
|
|
@@ -81,6 +83,10 @@ class StatusioClient
|
|
|
81
83
|
notify['slack'] = '1'
|
|
82
84
|
end
|
|
83
85
|
|
|
86
|
+
if notifications & NOTIFY_MSTEAMS == NOTIFY_MSTEAMS
|
|
87
|
+
notify['msteams'] = '1'
|
|
88
|
+
end
|
|
89
|
+
|
|
84
90
|
return notify
|
|
85
91
|
end
|
|
86
92
|
|
data/lib/statusio/rb/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: statusio
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Status.io
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-05-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|
|
@@ -35,6 +35,7 @@ files:
|
|
|
35
35
|
- ".gitignore"
|
|
36
36
|
- ".rspec"
|
|
37
37
|
- ".travis.yml"
|
|
38
|
+
- CHANGELOG.md
|
|
38
39
|
- Gemfile
|
|
39
40
|
- README.md
|
|
40
41
|
- Rakefile
|