statusio 0.2.8 → 0.2.9
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 +17 -17
- data/lib/statusio/rb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c49628e9e7fbc9ca1cdc93b1bfe74cbaa30a1a9950d78256b54cea2be9e3a685
|
4
|
+
data.tar.gz: b6c45266117e035265e498f0454e201424995a4424f3230ae4ace6e045a8967e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de93ba0a287d03c96f9fde2d0ad2152442f03d2e527e8ef8468a7905859985658d5cecb66f5e6f2a3704e43d3dff6a1ebb5010935466f29ae0114a7cc27dc218
|
7
|
+
data.tar.gz: 4a6aac0ef0e7422abcd8d943285842edc936b1ad9a984c36eeb3a140bc63916898b4641c67a1caafbe0a19063ff0c6d79e0bfb734f84e11de16725b952c5d458
|
data/lib/statusio.rb
CHANGED
@@ -189,12 +189,12 @@ class StatusioClient
|
|
189
189
|
# @param infrastructure_affected(array) ID of each affected component and container combo
|
190
190
|
# @param current_status(int) The status of the components and containers affected by this incident (StatusioClient::STATUS_#).
|
191
191
|
# @param current_state(int) The state of this incident (StatusioClient::STATE_#).
|
192
|
-
# @param message_subject(string) Message subject for email notifications
|
193
192
|
# @param notifications(int) Bitmasked notifications (StatusioClient::NOTIFY_#). To use multiple just add them up (ie StatusioClient::NOTIFY_SMS + StatusioClient::NOTIFY_SLACK).
|
194
193
|
# @param all_infrastructure_affected(string) Affect all components and containers (default = 0)
|
194
|
+
# @param message_subject(string) Message subject for email notifications (default = Status Notification)
|
195
195
|
# @return object
|
196
196
|
|
197
|
-
def incident_create(statuspage_id, incident_name, incident_details, infrastructure_affected, current_status, current_state,
|
197
|
+
def incident_create(statuspage_id, incident_name, incident_details, infrastructure_affected, current_status, current_state, notifications = 0, all_infrastructure_affected = "0", message_subject = "Status Notification")
|
198
198
|
data = get_notify(notifications)
|
199
199
|
data['statuspage_id'] = statuspage_id
|
200
200
|
data['incident_name'] = incident_name
|
@@ -202,8 +202,8 @@ class StatusioClient
|
|
202
202
|
data['infrastructure_affected'] = infrastructure_affected
|
203
203
|
data['current_status'] = current_status
|
204
204
|
data['current_state'] = current_state
|
205
|
-
data['message_subject'] = message_subject
|
206
205
|
data['all_infrastructure_affected'] = all_infrastructure_affected
|
206
|
+
data['message_subject'] = message_subject
|
207
207
|
|
208
208
|
request :method => :post,
|
209
209
|
:url => @url + 'incident/create',
|
@@ -218,11 +218,11 @@ class StatusioClient
|
|
218
218
|
# @param incident_details(string) Message describing this incident
|
219
219
|
# @param current_status(int) The status of the components and containers affected by this incident (StatusioClient::STATUS_#).
|
220
220
|
# @param current_state(int) The state of this incident (StatusioClient::STATE_#).
|
221
|
-
# @param message_subject(string) Message subject for email notifications
|
222
221
|
# @param notifications(int) Bitmasked notifications (StatusioClient::NOTIFY_#). To use multiple just add them up (ie StatusioClient::NOTIFY_SMS + StatusioClient::NOTIFY_SLACK).
|
222
|
+
# @param message_subject(string) Message subject for email notifications (default = Status Notification)
|
223
223
|
# @return object
|
224
224
|
|
225
|
-
def incident_update(statuspage_id, incident_id, incident_details, current_status, current_state,
|
225
|
+
def incident_update(statuspage_id, incident_id, incident_details, current_status, current_state, notifications = 0, message_subject = "Status Notification")
|
226
226
|
data = get_notify(notifications)
|
227
227
|
data['statuspage_id'] = statuspage_id
|
228
228
|
data['incident_id'] = incident_id
|
@@ -244,11 +244,11 @@ class StatusioClient
|
|
244
244
|
# @param incident_details(string) Message describing this incident
|
245
245
|
# @param current_status(int) The status of the components and containers affected by this incident (StatusioClient::STATUS_#).
|
246
246
|
# @param current_state(int) The state of this incident (StatusioClient::STATE_#).
|
247
|
-
# @param message_subject(string) Message subject for email notifications
|
248
247
|
# @param notifications(int) Bitmasked notifications (StatusioClient::NOTIFY_#). To use multiple just add them up (ie StatusioClient::NOTIFY_SMS + StatusioClient::NOTIFY_SLACK).
|
248
|
+
# @param message_subject(string) Message subject for email notifications (default = Status Notification)
|
249
249
|
# @return object
|
250
250
|
|
251
|
-
def incident_resolve(statuspage_id, incident_id, incident_details, current_status, current_state,
|
251
|
+
def incident_resolve(statuspage_id, incident_id, incident_details, current_status, current_state, notifications = 0, message_subject = "Status Notification")
|
252
252
|
data = get_notify(notifications)
|
253
253
|
data['statuspage_id'] = statuspage_id
|
254
254
|
data['incident_id'] = incident_id
|
@@ -340,20 +340,20 @@ class StatusioClient
|
|
340
340
|
# @param time_planned_start(string) Time maintenance is expected to start
|
341
341
|
# @param date_planned_end(string) Date maintenance is expected to end
|
342
342
|
# @param time_planned_end(string) Time maintenance is expected to end
|
343
|
-
# @param message_subject(string) Message subject for email notifications
|
344
343
|
# @param automation(string) Automatically start and end the maintenance (default = 0)
|
345
344
|
# @param all_infrastructure_affected(string) Affect all components and containers (default = 0)
|
346
345
|
# @param maintenance_notify_now(string) Notify subscribers now (1 = Send notification)
|
347
346
|
# @param maintenance_notify_1_hr(string) Notify subscribers 1 hour before scheduled maintenance start time (1 = Send notification)
|
348
347
|
# @param maintenance_notify_24_hr(string) Notify subscribers 24 hours before scheduled maintenance start time (1 = Send notification)
|
349
348
|
# @param maintenance_notify_72_hr(string) Notify subscribers 72 hours before scheduled maintenance start time (1 = Send notification)
|
349
|
+
# @param message_subject(string) Message subject for email notifications (default = Maintenance Notification)
|
350
350
|
# @return object
|
351
351
|
|
352
352
|
def maintenance_schedule(statuspage_id, maintenance_name, maintenance_details, infrastructure_affected,
|
353
353
|
date_planned_start, time_planned_start, date_planned_end, time_planned_end,
|
354
|
-
|
354
|
+
automation = "0", all_infrastructure_affected = "0",
|
355
355
|
maintenance_notify_now = "0", maintenance_notify_1_hr = "0",
|
356
|
-
maintenance_notify_24_hr = "0", maintenance_notify_72_hr = "0")
|
356
|
+
maintenance_notify_24_hr = "0", maintenance_notify_72_hr = "0", message_subject = "Maintenance Notification")
|
357
357
|
data = {}
|
358
358
|
data['statuspage_id'] = statuspage_id
|
359
359
|
data['maintenance_name'] = maintenance_name
|
@@ -364,12 +364,12 @@ class StatusioClient
|
|
364
364
|
data['time_planned_start'] = time_planned_start
|
365
365
|
data['date_planned_end'] = date_planned_end
|
366
366
|
data['time_planned_end'] = time_planned_end
|
367
|
-
data['message_subject'] = message_subject
|
368
367
|
data['automation'] = automation
|
369
368
|
data['maintenance_notify_now'] = maintenance_notify_now
|
370
369
|
data['maintenance_notify_1_hr'] = maintenance_notify_1_hr
|
371
370
|
data['maintenance_notify_24_hr'] = maintenance_notify_24_hr
|
372
371
|
data['maintenance_notify_72_hr'] = maintenance_notify_72_hr
|
372
|
+
data['message_subject'] = message_subject
|
373
373
|
|
374
374
|
request :method => :post,
|
375
375
|
:url => @url + 'maintenance/schedule',
|
@@ -382,11 +382,11 @@ class StatusioClient
|
|
382
382
|
# @param statuspage_id(string) Status page ID
|
383
383
|
# @param maintenance_id(string) Maintenance ID
|
384
384
|
# @param maintenance_details(string) Message describing this maintenance update
|
385
|
-
# @param message_subject(string) Message subject for email notifications
|
386
385
|
# @param notifications(int) Bitmasked notifications (StatusioClient::NOTIFY_#). To use multiple just add them up (ie StatusioClient::NOTIFY_SMS + StatusioClient::NOTIFY_SLACK).
|
386
|
+
# @param message_subject(string) Message subject for email notifications (default = Maintenance Notification)
|
387
387
|
# @return object
|
388
388
|
|
389
|
-
def maintenance_start(statuspage_id, maintenance_id, maintenance_details,
|
389
|
+
def maintenance_start(statuspage_id, maintenance_id, maintenance_details, notifications = 0, message_subject = "Maintenance Notification")
|
390
390
|
data = get_notify(notifications)
|
391
391
|
data['statuspage_id'] = statuspage_id
|
392
392
|
data['maintenance_id'] = maintenance_id
|
@@ -404,11 +404,11 @@ class StatusioClient
|
|
404
404
|
# @param statuspage_id(string) Status page ID
|
405
405
|
# @param maintenance_id(string) Maintenance ID
|
406
406
|
# @param maintenance_details(string) Message describing this maintenance
|
407
|
-
# @param message_subject(string) Message subject for email notifications
|
408
407
|
# @param notifications(int) Bitmasked notifications (StatusioClient::NOTIFY_#). To use multiple just add them up (ie StatusioClient::NOTIFY_SMS + StatusioClient::NOTIFY_SLACK).
|
408
|
+
# @param message_subject(string) Message subject for email notifications (default = Maintenance Notification)
|
409
409
|
# @return object
|
410
410
|
|
411
|
-
def maintenance_update(statuspage_id, maintenance_id, maintenance_details,
|
411
|
+
def maintenance_update(statuspage_id, maintenance_id, maintenance_details, notifications = 0, message_subject = "Maintenance Notification")
|
412
412
|
data = get_notify(notifications)
|
413
413
|
data['statuspage_id'] = statuspage_id
|
414
414
|
data['maintenance_id'] = maintenance_id
|
@@ -426,11 +426,11 @@ class StatusioClient
|
|
426
426
|
# @param statuspage_id(string) Status page ID
|
427
427
|
# @param maintenance_id(string) Maintenance ID
|
428
428
|
# @param maintenance_details(string) Message describing this maintenance
|
429
|
-
# @param message_subject(string) Message subject for email notifications
|
430
429
|
# @param notifications(int) Bitmasked notifications (StatusioClient::NOTIFY_#). To use multiple just add them up (ie StatusioClient::NOTIFY_SMS + StatusioClient::NOTIFY_SLACK).
|
430
|
+
# @param message_subject(string) Message subject for email notifications (default = Maintenance Notification)
|
431
431
|
# @return object
|
432
432
|
|
433
|
-
def maintenance_finish(statuspage_id, maintenance_id, maintenance_details,
|
433
|
+
def maintenance_finish(statuspage_id, maintenance_id, maintenance_details, notifications = 0, message_subject = "Maintenance Notification")
|
434
434
|
data = get_notify(notifications)
|
435
435
|
data['statuspage_id'] = statuspage_id
|
436
436
|
data['maintenance_id'] = maintenance_id
|
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.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Status.io
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|