line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Paws::GameLift::ScalingPolicy; |
2
|
1
|
|
|
1
|
|
300
|
use Moose; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
7
|
|
3
|
|
|
|
|
|
|
has ComparisonOperator => (is => 'ro', isa => 'Str'); |
4
|
|
|
|
|
|
|
has EvaluationPeriods => (is => 'ro', isa => 'Int'); |
5
|
|
|
|
|
|
|
has FleetId => (is => 'ro', isa => 'Str'); |
6
|
|
|
|
|
|
|
has MetricName => (is => 'ro', isa => 'Str'); |
7
|
|
|
|
|
|
|
has Name => (is => 'ro', isa => 'Str'); |
8
|
|
|
|
|
|
|
has ScalingAdjustment => (is => 'ro', isa => 'Int'); |
9
|
|
|
|
|
|
|
has ScalingAdjustmentType => (is => 'ro', isa => 'Str'); |
10
|
|
|
|
|
|
|
has Status => (is => 'ro', isa => 'Str'); |
11
|
|
|
|
|
|
|
has Threshold => (is => 'ro', isa => 'Num'); |
12
|
|
|
|
|
|
|
1; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
### main pod documentation begin ### |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 NAME |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
Paws::GameLift::ScalingPolicy |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 USAGE |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
This class represents one of two things: |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head3 Arguments in a call to a service |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. |
27
|
|
|
|
|
|
|
Each attribute should be used as a named argument in the calls that expect this type of object. |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
As an example, if Att1 is expected to be a Paws::GameLift::ScalingPolicy object: |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
$service_obj->Method(Att1 => { ComparisonOperator => $value, ..., Threshold => $value }); |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head3 Results returned from an API call |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Use accessors for each attribute. If Att1 is expected to be an Paws::GameLift::ScalingPolicy object: |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
$result = $service_obj->Method(...); |
38
|
|
|
|
|
|
|
$result->Att1->ComparisonOperator |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 DESCRIPTION |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Rule that controls how a fleet is scaled. Scaling policies are uniquely |
43
|
|
|
|
|
|
|
identified by the combination of name and fleet ID. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Fleet-related operations include: |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=over |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=item * |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
CreateFleet |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=item * |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
ListFleets |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=item * |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Describe fleets: |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=over |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=item * |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
DescribeFleetAttributes |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=item * |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
DescribeFleetPortSettings |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=item * |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
DescribeFleetUtilization |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=item * |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
DescribeRuntimeConfiguration |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=item * |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
DescribeFleetEvents |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=back |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=item * |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
Update fleets: |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=over |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=item * |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
UpdateFleetAttributes |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=item * |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
UpdateFleetCapacity |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=item * |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
UpdateFleetPortSettings |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=item * |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
UpdateRuntimeConfiguration |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=back |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
=item * |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
Manage fleet capacity: |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
=over |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=item * |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
DescribeFleetCapacity |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=item * |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
UpdateFleetCapacity |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
=item * |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
PutScalingPolicy (automatic scaling) |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
=item * |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
DescribeScalingPolicies (automatic scaling) |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
=item * |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
DeleteScalingPolicy (automatic scaling) |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
=item * |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
DescribeEC2InstanceLimits |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
=back |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
=item * |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
DeleteFleet |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
=back |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
=head2 ComparisonOperator => Str |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
Comparison operator to use when measuring a metric against the |
154
|
|
|
|
|
|
|
threshold value. |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
=head2 EvaluationPeriods => Int |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
Length of time (in minutes) the metric must be at or beyond the |
160
|
|
|
|
|
|
|
threshold before a scaling event is triggered. |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
=head2 FleetId => Str |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
Unique identifier for a fleet that is associated with this scaling |
166
|
|
|
|
|
|
|
policy. |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
=head2 MetricName => Str |
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
Name of the Amazon GameLift-defined metric that is used to trigger an |
172
|
|
|
|
|
|
|
adjustment. |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
=over |
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
=item * |
177
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
B<ActivatingGameSessions> -- number of game sessions in the process of |
179
|
|
|
|
|
|
|
being created (game session status = C<ACTIVATING>). |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
=item * |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
B<ActiveGameSessions> -- number of game sessions currently running |
184
|
|
|
|
|
|
|
(game session status = C<ACTIVE>). |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
=item * |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
B<CurrentPlayerSessions> -- number of active or reserved player |
189
|
|
|
|
|
|
|
sessions (player session status = C<ACTIVE> or C<RESERVED>). |
190
|
|
|
|
|
|
|
|
191
|
|
|
|
|
|
|
=item * |
192
|
|
|
|
|
|
|
|
193
|
|
|
|
|
|
|
B<AvailablePlayerSessions> -- number of player session slots currently |
194
|
|
|
|
|
|
|
available in active game sessions across the fleet, calculated by |
195
|
|
|
|
|
|
|
subtracting a game session's current player session count from its |
196
|
|
|
|
|
|
|
maximum player session count. This number does include game sessions |
197
|
|
|
|
|
|
|
that are not currently accepting players (game session |
198
|
|
|
|
|
|
|
C<PlayerSessionCreationPolicy> = C<DENY_ALL>). |
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
=item * |
201
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
B<ActiveInstances> -- number of instances currently running a game |
203
|
|
|
|
|
|
|
session. |
204
|
|
|
|
|
|
|
|
205
|
|
|
|
|
|
|
=item * |
206
|
|
|
|
|
|
|
|
207
|
|
|
|
|
|
|
B<IdleInstances> -- number of instances not currently running a game |
208
|
|
|
|
|
|
|
session. |
209
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
=back |
211
|
|
|
|
|
|
|
|
212
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
|
214
|
|
|
|
|
|
|
=head2 Name => Str |
215
|
|
|
|
|
|
|
|
216
|
|
|
|
|
|
|
Descriptive label that is associated with a scaling policy. Policy |
217
|
|
|
|
|
|
|
names do not need to be unique. |
218
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
|
220
|
|
|
|
|
|
|
=head2 ScalingAdjustment => Int |
221
|
|
|
|
|
|
|
|
222
|
|
|
|
|
|
|
Amount of adjustment to make, based on the scaling adjustment type. |
223
|
|
|
|
|
|
|
|
224
|
|
|
|
|
|
|
|
225
|
|
|
|
|
|
|
=head2 ScalingAdjustmentType => Str |
226
|
|
|
|
|
|
|
|
227
|
|
|
|
|
|
|
Type of adjustment to make to a fleet's instance count (see |
228
|
|
|
|
|
|
|
FleetCapacity): |
229
|
|
|
|
|
|
|
|
230
|
|
|
|
|
|
|
=over |
231
|
|
|
|
|
|
|
|
232
|
|
|
|
|
|
|
=item * |
233
|
|
|
|
|
|
|
|
234
|
|
|
|
|
|
|
B<ChangeInCapacity> -- add (or subtract) the scaling adjustment value |
235
|
|
|
|
|
|
|
from the current instance count. Positive values scale up while |
236
|
|
|
|
|
|
|
negative values scale down. |
237
|
|
|
|
|
|
|
|
238
|
|
|
|
|
|
|
=item * |
239
|
|
|
|
|
|
|
|
240
|
|
|
|
|
|
|
B<ExactCapacity> -- set the instance count to the scaling adjustment |
241
|
|
|
|
|
|
|
value. |
242
|
|
|
|
|
|
|
|
243
|
|
|
|
|
|
|
=item * |
244
|
|
|
|
|
|
|
|
245
|
|
|
|
|
|
|
B<PercentChangeInCapacity> -- increase or reduce the current instance |
246
|
|
|
|
|
|
|
count by the scaling adjustment, read as a percentage. Positive values |
247
|
|
|
|
|
|
|
scale up while negative values scale down. |
248
|
|
|
|
|
|
|
|
249
|
|
|
|
|
|
|
=back |
250
|
|
|
|
|
|
|
|
251
|
|
|
|
|
|
|
|
252
|
|
|
|
|
|
|
|
253
|
|
|
|
|
|
|
=head2 Status => Str |
254
|
|
|
|
|
|
|
|
255
|
|
|
|
|
|
|
Current status of the scaling policy. The scaling policy is only in |
256
|
|
|
|
|
|
|
force when in an C<ACTIVE> status. |
257
|
|
|
|
|
|
|
|
258
|
|
|
|
|
|
|
=over |
259
|
|
|
|
|
|
|
|
260
|
|
|
|
|
|
|
=item * |
261
|
|
|
|
|
|
|
|
262
|
|
|
|
|
|
|
B<ACTIVE> -- The scaling policy is currently in force. |
263
|
|
|
|
|
|
|
|
264
|
|
|
|
|
|
|
=item * |
265
|
|
|
|
|
|
|
|
266
|
|
|
|
|
|
|
B<UPDATE_REQUESTED> -- A request to update the scaling policy has been |
267
|
|
|
|
|
|
|
received. |
268
|
|
|
|
|
|
|
|
269
|
|
|
|
|
|
|
=item * |
270
|
|
|
|
|
|
|
|
271
|
|
|
|
|
|
|
B<UPDATING> -- A change is being made to the scaling policy. |
272
|
|
|
|
|
|
|
|
273
|
|
|
|
|
|
|
=item * |
274
|
|
|
|
|
|
|
|
275
|
|
|
|
|
|
|
B<DELETE_REQUESTED> -- A request to delete the scaling policy has been |
276
|
|
|
|
|
|
|
received. |
277
|
|
|
|
|
|
|
|
278
|
|
|
|
|
|
|
=item * |
279
|
|
|
|
|
|
|
|
280
|
|
|
|
|
|
|
B<DELETING> -- The scaling policy is being deleted. |
281
|
|
|
|
|
|
|
|
282
|
|
|
|
|
|
|
=item * |
283
|
|
|
|
|
|
|
|
284
|
|
|
|
|
|
|
B<DELETED> -- The scaling policy has been deleted. |
285
|
|
|
|
|
|
|
|
286
|
|
|
|
|
|
|
=item * |
287
|
|
|
|
|
|
|
|
288
|
|
|
|
|
|
|
B<ERROR> -- An error occurred in creating the policy. It should be |
289
|
|
|
|
|
|
|
removed and recreated. |
290
|
|
|
|
|
|
|
|
291
|
|
|
|
|
|
|
=back |
292
|
|
|
|
|
|
|
|
293
|
|
|
|
|
|
|
|
294
|
|
|
|
|
|
|
|
295
|
|
|
|
|
|
|
=head2 Threshold => Num |
296
|
|
|
|
|
|
|
|
297
|
|
|
|
|
|
|
Metric value used to trigger a scaling event. |
298
|
|
|
|
|
|
|
|
299
|
|
|
|
|
|
|
|
300
|
|
|
|
|
|
|
|
301
|
|
|
|
|
|
|
=head1 SEE ALSO |
302
|
|
|
|
|
|
|
|
303
|
|
|
|
|
|
|
This class forms part of L<Paws>, describing an object used in L<Paws::GameLift> |
304
|
|
|
|
|
|
|
|
305
|
|
|
|
|
|
|
=head1 BUGS and CONTRIBUTIONS |
306
|
|
|
|
|
|
|
|
307
|
|
|
|
|
|
|
The source code is located here: https://github.com/pplu/aws-sdk-perl |
308
|
|
|
|
|
|
|
|
309
|
|
|
|
|
|
|
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues |
310
|
|
|
|
|
|
|
|
311
|
|
|
|
|
|
|
=cut |
312
|
|
|
|
|
|
|
|