gs2-ruby-sdk-watch 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gs2/watch/Client.rb +35 -35
- data/lib/gs2/watch/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: 6e7bdc11d2ab0cd154809476e5687dd192e3b719
|
4
|
+
data.tar.gz: 49bbac4ed5a70c9ab92e84342014cb071c59d23c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e9c62c31864e1ffd83868fd2ae36a02292407b2889461eaef968fb9d6f46d4a14059ca5d1d1672030fab288e4fc5e1ecda5b28826ca45843eff20c8126f24f4
|
7
|
+
data.tar.gz: a95a5ef13f37c6956a84f60e2710b6e9ca46a24c5b8ef909cc0b143651e20512ed1ed45e078cb9e8d36022fdc9c4de8fe78676c2c098bab712f572d4f9efdef9
|
data/lib/gs2/watch/Client.rb
CHANGED
@@ -34,7 +34,7 @@ module Gs2 module Watch
|
|
34
34
|
# @return [Array]
|
35
35
|
# * items
|
36
36
|
# [Array]
|
37
|
-
# *
|
37
|
+
# * alarmId => アラームID
|
38
38
|
# * ownerId => オーナーID
|
39
39
|
# * name => アラーム名
|
40
40
|
# * description => 説明文
|
@@ -49,15 +49,15 @@ module Gs2 module Watch
|
|
49
49
|
# * status => ステータス
|
50
50
|
# * lastStatusChangeAt => 最終ステータス更新日時
|
51
51
|
# * nextPageToken => 次ページトークン
|
52
|
-
def
|
52
|
+
def describe_alarm(pageToken = nil, limit = nil)
|
53
53
|
query = {}
|
54
54
|
if pageToken; query['pageToken'] = pageToken; end
|
55
55
|
if limit; query['limit'] = limit; end
|
56
56
|
return get(
|
57
57
|
'Gs2Watch',
|
58
|
-
'
|
58
|
+
'DescribeAlarm',
|
59
59
|
@@ENDPOINT,
|
60
|
-
'/
|
60
|
+
'/alarm',
|
61
61
|
query);
|
62
62
|
end
|
63
63
|
|
@@ -77,7 +77,7 @@ module Gs2 module Watch
|
|
77
77
|
# * notificationId => 通知ID
|
78
78
|
# @return [Array]
|
79
79
|
# * item
|
80
|
-
# *
|
80
|
+
# * alarmId => アラームID
|
81
81
|
# * ownerId => オーナーID
|
82
82
|
# * name => アラーム名
|
83
83
|
# * description => 説明文
|
@@ -91,7 +91,7 @@ module Gs2 module Watch
|
|
91
91
|
# * updateAt => 更新日時
|
92
92
|
# * status => ステータス
|
93
93
|
# * lastStatusChangeAt => 最終ステータス更新日時
|
94
|
-
def
|
94
|
+
def create_alarm(request)
|
95
95
|
if not request; raise ArgumentError.new(); end
|
96
96
|
body = {}
|
97
97
|
if request.has_key?('name'); body['name'] = request['name']; end
|
@@ -105,9 +105,9 @@ module Gs2 module Watch
|
|
105
105
|
query = {}
|
106
106
|
return post(
|
107
107
|
'Gs2Watch',
|
108
|
-
'
|
108
|
+
'CreateAlarm',
|
109
109
|
@@ENDPOINT,
|
110
|
-
'/
|
110
|
+
'/alarm',
|
111
111
|
body,
|
112
112
|
query);
|
113
113
|
end
|
@@ -115,10 +115,10 @@ module Gs2 module Watch
|
|
115
115
|
# アラームを取得
|
116
116
|
#
|
117
117
|
# @param request [Array]
|
118
|
-
# *
|
118
|
+
# * alarmName => アラーム名
|
119
119
|
# @return [Array]
|
120
120
|
# * item
|
121
|
-
# *
|
121
|
+
# * alarmId => アラームID
|
122
122
|
# * ownerId => オーナーID
|
123
123
|
# * name => アラーム名
|
124
124
|
# * description => 説明文
|
@@ -132,30 +132,30 @@ module Gs2 module Watch
|
|
132
132
|
# * updateAt => 更新日時
|
133
133
|
# * status => ステータス
|
134
134
|
# * lastStatusChangeAt => 最終ステータス更新日時
|
135
|
-
def
|
135
|
+
def get_alarm(request)
|
136
136
|
if not request; raise ArgumentError.new(); end
|
137
|
-
if not request.has_key?('
|
138
|
-
if not request['
|
137
|
+
if not request.has_key?('alarmName'); raise ArgumentError.new(); end
|
138
|
+
if not request['alarmName']; raise ArgumentError.new(); end
|
139
139
|
query = {}
|
140
140
|
return get(
|
141
141
|
'Gs2Watch',
|
142
|
-
'
|
142
|
+
'GetAlarm',
|
143
143
|
@@ENDPOINT,
|
144
|
-
'/
|
144
|
+
'/alarm/' + request['alarmName'],
|
145
145
|
query);
|
146
146
|
end
|
147
147
|
|
148
148
|
# アラームを更新
|
149
149
|
#
|
150
150
|
# @param request [Array]
|
151
|
-
# *
|
151
|
+
# * alarmName => アラーム名
|
152
152
|
# * description => 説明文
|
153
153
|
# * expression => 演算子(>=, >, <, <=)
|
154
154
|
# * threshold => 閾値
|
155
155
|
# * notificationId => 通知ID
|
156
156
|
# @return [Array]
|
157
157
|
# * item
|
158
|
-
# *
|
158
|
+
# * alarmId => アラームID
|
159
159
|
# * ownerId => オーナーID
|
160
160
|
# * name => アラーム名
|
161
161
|
# * description => 説明文
|
@@ -169,10 +169,10 @@ module Gs2 module Watch
|
|
169
169
|
# * updateAt => 更新日時
|
170
170
|
# * status => ステータス
|
171
171
|
# * lastStatusChangeAt => 最終ステータス更新日時
|
172
|
-
def
|
172
|
+
def update_alarm(request)
|
173
173
|
if not request; raise ArgumentError.new(); end
|
174
|
-
if not request.has_key?('
|
175
|
-
if not request['
|
174
|
+
if not request.has_key?('alarmName'); raise ArgumentError.new(); end
|
175
|
+
if not request['alarmName']; raise ArgumentError.new(); end
|
176
176
|
body = {}
|
177
177
|
if request.has_key?('description'); body['description'] = request['description']; end
|
178
178
|
if request.has_key?('expression'); body['expression'] = request['expression']; end
|
@@ -181,9 +181,9 @@ module Gs2 module Watch
|
|
181
181
|
query = {}
|
182
182
|
return put(
|
183
183
|
'Gs2Watch',
|
184
|
-
'
|
184
|
+
'UpdateAlarm',
|
185
185
|
@@ENDPOINT,
|
186
|
-
'/
|
186
|
+
'/alarm/' + request['alarmName'],
|
187
187
|
body,
|
188
188
|
query);
|
189
189
|
end
|
@@ -191,17 +191,17 @@ module Gs2 module Watch
|
|
191
191
|
# アラームを削除
|
192
192
|
#
|
193
193
|
# @param request [Array]
|
194
|
-
# *
|
195
|
-
def
|
194
|
+
# * alarmName => アラーム名
|
195
|
+
def delete_alarm(request)
|
196
196
|
if not request; raise ArgumentError.new(); end
|
197
|
-
if not request.has_key?('
|
198
|
-
if not request['
|
197
|
+
if not request.has_key?('alarmName'); raise ArgumentError.new(); end
|
198
|
+
if not request['alarmName']; raise ArgumentError.new(); end
|
199
199
|
query = {}
|
200
200
|
return delete(
|
201
201
|
'Gs2Watch',
|
202
|
-
'
|
202
|
+
'DeleteAlarm',
|
203
203
|
@@ENDPOINT,
|
204
|
-
'/
|
204
|
+
'/alarm/' + request['alarmName'],
|
205
205
|
query);
|
206
206
|
end
|
207
207
|
|
@@ -210,29 +210,29 @@ module Gs2 module Watch
|
|
210
210
|
# 過去にアラームが発生した履歴などを確認できます。<br>
|
211
211
|
#
|
212
212
|
# @param request [Array]
|
213
|
-
# *
|
213
|
+
# * alarmName => アラーム名
|
214
214
|
# @param pageToken [String] ページトークン
|
215
215
|
# @param limit [Integer] 取得件数
|
216
216
|
# @return [Array]
|
217
217
|
# * items
|
218
218
|
# [Array]
|
219
219
|
# * eventId => アラームイベントID
|
220
|
-
# *
|
220
|
+
# * alarmId => アラームID
|
221
221
|
# * type => イベントの種類
|
222
222
|
# * eventAt => イベント発生日時
|
223
223
|
# * nextPageToken => 次ページトークン
|
224
|
-
def
|
224
|
+
def describe_alarm_event(request, pageToken = nil, limit = nil)
|
225
225
|
if not request; raise ArgumentError.new(); end
|
226
|
-
if not request.has_key?('
|
227
|
-
if not request['
|
226
|
+
if not request.has_key?('alarmName'); raise ArgumentError.new(); end
|
227
|
+
if not request['alarmName']; raise ArgumentError.new(); end
|
228
228
|
query = {}
|
229
229
|
if pageToken; query['pageToken'] = pageToken; end
|
230
230
|
if limit; query['limit'] = limit; end
|
231
231
|
return get(
|
232
232
|
'Gs2Watch',
|
233
|
-
'
|
233
|
+
'DescribeAlarmEvent',
|
234
234
|
@@ENDPOINT,
|
235
|
-
'/
|
235
|
+
'/alarm/' + request['alarmName'] + '/event',
|
236
236
|
query);
|
237
237
|
end
|
238
238
|
|
data/lib/gs2/watch/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gs2-ruby-sdk-watch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Game Server Services, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gs2-ruby-sdk-core
|