statusio 0.2.2 → 0.2.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 +4 -4
- data/lib/statusio.rb +3 -5
- data/lib/statusio/rb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e533cb910a7c25a41fd1d19e55b25ef988bd1d06
|
4
|
+
data.tar.gz: bf0ff698f655c41e860cd8b5a7cd6df1c7cdaaf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a250779c4b223444a9a5daf91cd13e4317a81403107c4a4a0a7cf59c89953f81b00051367eddb8b589cca22e1729aee2f0eb8798c266622464280813139bbaf6
|
7
|
+
data.tar.gz: b2c64fcab702b4bce56a2dccd8fbc93fc1f683682e83f2ed71a913ba894bfa1730ac3f7141176da4a070519a0effb67e1e9523f57a559d658c1d39777e6d814a
|
data/lib/statusio.rb
CHANGED
@@ -164,21 +164,19 @@ class StatusioClient
|
|
164
164
|
# @param statuspage_id(string) Status page ID
|
165
165
|
# @param incident_name(string) A descriptive title for the incident
|
166
166
|
# @param incident_details(string) Message describing this incident
|
167
|
-
# @param
|
168
|
-
# @param containers(array) ID of each affected container
|
167
|
+
# @param infrastructure_affected(array) ID of each affected component and container combo
|
169
168
|
# @param current_status(int) The status of the components and containers affected by this incident (StatusioClient::STATUS_#).
|
170
169
|
# @param current_state(int) The state of this incident (StatusioClient::STATE_#).
|
171
170
|
# @param notifications(int) Bitmasked notifications (StatusioClient::NOTIFY_#). To use multiple just add them up (ie StatusioClient::NOTIFY_SMS + StatusioClient::NOTIFY_SLACK).
|
172
171
|
# @param all_infrastructure_affected(int) Affect all components and containers (default = 0)
|
173
172
|
# @return object
|
174
173
|
|
175
|
-
def incident_create(statuspage_id, incident_name, incident_details,
|
174
|
+
def incident_create(statuspage_id, incident_name, incident_details, infrastructure_affected, current_status, current_state, notifications = 0, all_infrastructure_affected = 0)
|
176
175
|
data = get_notify(notifications)
|
177
176
|
data['statuspage_id'] = statuspage_id
|
178
177
|
data['incident_name'] = incident_name
|
179
178
|
data['incident_details'] = incident_details
|
180
|
-
data['
|
181
|
-
data['containers'] = containers
|
179
|
+
data['infrastructure_affected'] = infrastructure_affected
|
182
180
|
data['current_status'] = current_status
|
183
181
|
data['current_state'] = current_state
|
184
182
|
data['all_infrastructure_affected'] = all_infrastructure_affected
|
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.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Status.io
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|