statusio 0.2.4 → 0.2.5
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/README.md +1 -9
- data/lib/statusio.rb +11 -11
- 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: 20f98eab4d744044c7cd98bf147b18200815e798
|
4
|
+
data.tar.gz: db1d27c8b34afbd260321557748f87cba6f2c25f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 765e9b5707282ed3b1e475d43f9cb0d09a8d4b7cf2acccddcd8e7444bf7717927d5577f6769e217a4bf5ec1a87bc5d79086257712579d87226a7fa141570666e
|
7
|
+
data.tar.gz: 6663584894fa49ac6be57983c548883802cb2ae69fc127c138d1f39ebbdafd34f0657cc589f90d791dc3ef56bc052361d49cb8a2f0b38b7bead86b701d0c446c
|
data/README.md
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
# Statusio::Rb
|
2
2
|
|
3
|
-
Ruby
|
3
|
+
Ruby package for [Status.io](https://status.io)
|
4
4
|
|
5
|
-
Ruby library wrapper for Status.io - A Complete Status Platform - Status pages, incident tracking, subscriber notifications and more
|
6
5
|
|
7
6
|
## Installation
|
8
7
|
|
@@ -23,14 +22,7 @@ Or install it yourself as:
|
|
23
22
|
## Usage
|
24
23
|
|
25
24
|
```ruby
|
26
|
-
# Sign up for an account and get your api_id and api_key from the API tab
|
27
25
|
statusioclient = StatusioClient.new(api_key, api_id)
|
28
26
|
```
|
29
27
|
|
30
28
|
View the full API documentation at: http://developers.status.io/
|
31
|
-
|
32
|
-
## Development
|
33
|
-
|
34
|
-
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
35
|
-
|
36
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
data/lib/statusio.rb
CHANGED
@@ -190,10 +190,10 @@ class StatusioClient
|
|
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
192
|
# @param notifications(int) Bitmasked notifications (StatusioClient::NOTIFY_#). To use multiple just add them up (ie StatusioClient::NOTIFY_SMS + StatusioClient::NOTIFY_SLACK).
|
193
|
-
# @param all_infrastructure_affected(
|
193
|
+
# @param all_infrastructure_affected(string) Affect all components and containers (default = 0)
|
194
194
|
# @return object
|
195
195
|
|
196
|
-
def incident_create(statuspage_id, incident_name, incident_details, infrastructure_affected, current_status, current_state, notifications = 0, all_infrastructure_affected = 0)
|
196
|
+
def incident_create(statuspage_id, incident_name, incident_details, infrastructure_affected, current_status, current_state, notifications = 0, all_infrastructure_affected = "0")
|
197
197
|
data = get_notify(notifications)
|
198
198
|
data['statuspage_id'] = statuspage_id
|
199
199
|
data['incident_name'] = incident_name
|
@@ -334,19 +334,19 @@ class StatusioClient
|
|
334
334
|
# @param time_planned_start(string) Time maintenance is expected to start
|
335
335
|
# @param date_planned_end(string) Date maintenance is expected to end
|
336
336
|
# @param time_planned_end(string) Time maintenance is expected to end
|
337
|
-
# @param automation(
|
338
|
-
# @param all_infrastructure_affected(
|
339
|
-
# @param maintenance_notify_now(
|
340
|
-
# @param maintenance_notify_1_hr(
|
341
|
-
# @param maintenance_notify_24_hr(
|
342
|
-
# @param maintenance_notify_72_hr(
|
337
|
+
# @param automation(string) Automatically start and end the maintenance (default = 0)
|
338
|
+
# @param all_infrastructure_affected(string) Affect all components and containers (default = 0)
|
339
|
+
# @param maintenance_notify_now(string) Notify subscribers now (1 = Send notification)
|
340
|
+
# @param maintenance_notify_1_hr(string) Notify subscribers 1 hour before scheduled maintenance start time (1 = Send notification)
|
341
|
+
# @param maintenance_notify_24_hr(string) Notify subscribers 24 hours before scheduled maintenance start time (1 = Send notification)
|
342
|
+
# @param maintenance_notify_72_hr(string) Notify subscribers 72 hours before scheduled maintenance start time (1 = Send notification)
|
343
343
|
# @return object
|
344
344
|
|
345
345
|
def maintenance_schedule(statuspage_id, maintenance_name, maintenance_details, infrastructure_affected,
|
346
346
|
date_planned_start, time_planned_start, date_planned_end, time_planned_end,
|
347
|
-
automation = 0, all_infrastructure_affected = 0,
|
348
|
-
maintenance_notify_now = 0, maintenance_notify_1_hr = 0,
|
349
|
-
maintenance_notify_24_hr = 0, maintenance_notify_72_hr = 0)
|
347
|
+
automation = "0", all_infrastructure_affected = "0",
|
348
|
+
maintenance_notify_now = "0", maintenance_notify_1_hr = "0",
|
349
|
+
maintenance_notify_24_hr = "0", maintenance_notify_72_hr = "0")
|
350
350
|
data = {}
|
351
351
|
data['statuspage_id'] = statuspage_id
|
352
352
|
data['maintenance_name'] = maintenance_name
|
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Status.io
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|