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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af7c8cab129b2bd0b57a28e9fd20d9c1a488d464
4
- data.tar.gz: f4dc80b02cbffc20c666ae96d334919f683965c7
3
+ metadata.gz: e533cb910a7c25a41fd1d19e55b25ef988bd1d06
4
+ data.tar.gz: bf0ff698f655c41e860cd8b5a7cd6df1c7cdaaf6
5
5
  SHA512:
6
- metadata.gz: 0bf478163024c0f0aad64fa79ad85864c0a42954564d5b15dcf6bd49bb685b40d4449f224138fe39bcf8ff3f52d4b4e33690cc1c188943c5ea16813c50ccb769
7
- data.tar.gz: 5586220f3c30a2833f622d58ccf3762acba017a7dd8901bac884d98d5b6db822a00c475f680bef36bfb4094d9916f3fb121abc48cb94561954351f3016102c7e
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 components(array) ID of each affected component
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, components, containers, current_status, current_state, notifications = 0, all_infrastructure_affected = 0)
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['components'] = components
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
@@ -1,3 +1,3 @@
1
1
  class StatusioClient
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
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.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-15 00:00:00.000000000 Z
11
+ date: 2017-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client