@hybridless/hybridless 0.0.74-beta → 0.0.74-beta12
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.
- package/README.md +16 -8
- package/options.js.map +1 -1
- package/options.json +120 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -144,40 +144,48 @@ Human readable documentation will is available at [hybridless.com](https://docs.
|
|
|
144
144
|
targetValue: number;
|
|
145
145
|
//step based auto scaling
|
|
146
146
|
scaleIn?: {
|
|
147
|
+
//scaling
|
|
147
148
|
adjustmentType?: 'ChangeInCapacity' | 'ExactCapacity' | 'PercentChangeInCapacity'; //defaults to ChangeInCapacity
|
|
148
149
|
cooldown?: number; //default to 300
|
|
149
150
|
aggregation: 'Average' | 'Maximum' | 'Minimum';
|
|
150
151
|
minAdjustmentMagnitude?: number; //Should only be used with PercentChangeInCapacity
|
|
151
|
-
scaleBy?: number; //defaults to -1
|
|
152
|
-
//
|
|
152
|
+
scaleBy?: number; //defaults to 1 or -1
|
|
153
|
+
//scaling metric
|
|
153
154
|
metricNamespace: string;
|
|
154
155
|
metricName: string;
|
|
155
156
|
metricDimension: string;
|
|
157
|
+
metricDimensionTarget: string;
|
|
156
158
|
metricPeriod?: number; //defaults to 120
|
|
157
159
|
metricEvaluationPeriod?: number; //defaults to 1
|
|
158
160
|
operator: 'GreaterThanOrEqualToThreshold' | 'GreaterThanThreshold' | 'LessThanThreshold' | 'LessThanOrEqualToThreshold' | 'LessThanLowerOrGreaterThanUpperThreshold' | 'LessThanLowerThreshold' | 'GreaterThanUpperThreshold';
|
|
159
161
|
targetValue: number;
|
|
160
|
-
|
|
161
|
-
//
|
|
162
|
+
//additional config (scaling metric)
|
|
162
163
|
metricDependsOn?: string | string[];
|
|
164
|
+
additionalDimension?: { dimension: string, target: string }[];
|
|
165
|
+
treatMissingData?: ' breaching' | 'notBreaching' | 'ignore' | 'missing'; //defaults to notBreaching
|
|
166
|
+
fillupMissingData?: boolean | number; //fillup value is used on absence of data. default to false, true uses '0', number can be specified instead if any other fillup values is needed.
|
|
163
167
|
};
|
|
164
168
|
scaleOut?: {
|
|
169
|
+
//scaling
|
|
165
170
|
adjustmentType?: 'ChangeInCapacity' | 'ExactCapacity' | 'PercentChangeInCapacity'; //defaults to ChangeInCapacity
|
|
166
171
|
cooldown?: number; //default to 300
|
|
167
172
|
aggregation: 'Average' | 'Maximum' | 'Minimum';
|
|
168
173
|
minAdjustmentMagnitude?: number; //Should only be used with PercentChangeInCapacity
|
|
169
|
-
scaleBy?: number; //defaults to -1
|
|
170
|
-
//
|
|
174
|
+
scaleBy?: number; //defaults to 1 or -1
|
|
175
|
+
//scaling metric
|
|
171
176
|
metricNamespace: string;
|
|
172
177
|
metricName: string;
|
|
173
178
|
metricDimension: string;
|
|
179
|
+
metricDimensionTarget: string;
|
|
174
180
|
metricPeriod?: number; //defaults to 120
|
|
175
181
|
metricEvaluationPeriod?: number; //defaults to 1
|
|
176
182
|
operator: 'GreaterThanOrEqualToThreshold' | 'GreaterThanThreshold' | 'LessThanThreshold' | 'LessThanOrEqualToThreshold' | 'LessThanLowerOrGreaterThanUpperThreshold' | 'LessThanLowerThreshold' | 'GreaterThanUpperThreshold';
|
|
177
183
|
targetValue: number;
|
|
178
|
-
|
|
179
|
-
//
|
|
184
|
+
//additional config (scaling metric)
|
|
180
185
|
metricDependsOn?: string | string[];
|
|
186
|
+
additionalDimension?: { dimension: string, target: string }[];
|
|
187
|
+
treatMissingData?: ' breaching' | 'notBreaching' | 'ignore' | 'missing'; //defaults to notBreaching
|
|
188
|
+
fillupMissingData?: boolean | number; //fillup value is used on absence of data. default to false, true uses '0', number can be specified instead if any other fillup values is needed.
|
|
181
189
|
};
|
|
182
190
|
}
|
|
183
191
|
|
package/options.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["src/options.ts"],"names":[],"mappings":";;;AA6BC,CAAC;AAOD,CAAC;AAGF,IAAY,k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QAQ1C;AAAA,CAAC;AACF,IAAY,uBAYX;AAZD,WAAY,uBAAuB;IACjC,wCAAa,CAAA;IACb,uDAA4B,CAAA;IAC5B,0DAA+B,CAAA;IAC/B,sCAAW,CAAA;IACX,sCAAW,CAAA;IACX,kDAAuB,CAAA;IACvB,oDAAyB,CAAA;IACzB,sEAA2C,CAAA;IAC3C,8CAAmB,CAAA;IACnB,oCAAS,CAAA;IACT,wCAAa,CAAA;AACf,CAAC,EAZW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAYlC;AAAA,CAAC;AAwBD,CAAC;AAiOF,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,iCAAW,CAAA;IACX,yCAAmB,CAAA;IACnB,mCAAa,CAAA;AACf,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B;AAAA,CAAC"}
|
package/options.json
CHANGED
|
@@ -115,6 +115,12 @@
|
|
|
115
115
|
"cooldown": {
|
|
116
116
|
"type": "number"
|
|
117
117
|
},
|
|
118
|
+
"fillupMissingData": {
|
|
119
|
+
"type": [
|
|
120
|
+
"number",
|
|
121
|
+
"boolean"
|
|
122
|
+
]
|
|
123
|
+
},
|
|
118
124
|
"metricDependsOn": {
|
|
119
125
|
"anyOf": [
|
|
120
126
|
{
|
|
@@ -166,6 +172,15 @@
|
|
|
166
172
|
},
|
|
167
173
|
"targetValue": {
|
|
168
174
|
"type": "number"
|
|
175
|
+
},
|
|
176
|
+
"treatMissingData": {
|
|
177
|
+
"enum": [
|
|
178
|
+
" breaching",
|
|
179
|
+
"ignore",
|
|
180
|
+
"missing",
|
|
181
|
+
"notBreaching"
|
|
182
|
+
],
|
|
183
|
+
"type": "string"
|
|
169
184
|
}
|
|
170
185
|
},
|
|
171
186
|
"required": [
|
|
@@ -220,6 +235,12 @@
|
|
|
220
235
|
"cooldown": {
|
|
221
236
|
"type": "number"
|
|
222
237
|
},
|
|
238
|
+
"fillupMissingData": {
|
|
239
|
+
"type": [
|
|
240
|
+
"number",
|
|
241
|
+
"boolean"
|
|
242
|
+
]
|
|
243
|
+
},
|
|
223
244
|
"metricDependsOn": {
|
|
224
245
|
"anyOf": [
|
|
225
246
|
{
|
|
@@ -271,6 +292,15 @@
|
|
|
271
292
|
},
|
|
272
293
|
"targetValue": {
|
|
273
294
|
"type": "number"
|
|
295
|
+
},
|
|
296
|
+
"treatMissingData": {
|
|
297
|
+
"enum": [
|
|
298
|
+
" breaching",
|
|
299
|
+
"ignore",
|
|
300
|
+
"missing",
|
|
301
|
+
"notBreaching"
|
|
302
|
+
],
|
|
303
|
+
"type": "string"
|
|
274
304
|
}
|
|
275
305
|
},
|
|
276
306
|
"required": [
|
|
@@ -661,6 +691,12 @@
|
|
|
661
691
|
"cooldown": {
|
|
662
692
|
"type": "number"
|
|
663
693
|
},
|
|
694
|
+
"fillupMissingData": {
|
|
695
|
+
"type": [
|
|
696
|
+
"number",
|
|
697
|
+
"boolean"
|
|
698
|
+
]
|
|
699
|
+
},
|
|
664
700
|
"metricDependsOn": {
|
|
665
701
|
"anyOf": [
|
|
666
702
|
{
|
|
@@ -712,6 +748,15 @@
|
|
|
712
748
|
},
|
|
713
749
|
"targetValue": {
|
|
714
750
|
"type": "number"
|
|
751
|
+
},
|
|
752
|
+
"treatMissingData": {
|
|
753
|
+
"enum": [
|
|
754
|
+
" breaching",
|
|
755
|
+
"ignore",
|
|
756
|
+
"missing",
|
|
757
|
+
"notBreaching"
|
|
758
|
+
],
|
|
759
|
+
"type": "string"
|
|
715
760
|
}
|
|
716
761
|
},
|
|
717
762
|
"required": [
|
|
@@ -766,6 +811,12 @@
|
|
|
766
811
|
"cooldown": {
|
|
767
812
|
"type": "number"
|
|
768
813
|
},
|
|
814
|
+
"fillupMissingData": {
|
|
815
|
+
"type": [
|
|
816
|
+
"number",
|
|
817
|
+
"boolean"
|
|
818
|
+
]
|
|
819
|
+
},
|
|
769
820
|
"metricDependsOn": {
|
|
770
821
|
"anyOf": [
|
|
771
822
|
{
|
|
@@ -817,6 +868,15 @@
|
|
|
817
868
|
},
|
|
818
869
|
"targetValue": {
|
|
819
870
|
"type": "number"
|
|
871
|
+
},
|
|
872
|
+
"treatMissingData": {
|
|
873
|
+
"enum": [
|
|
874
|
+
" breaching",
|
|
875
|
+
"ignore",
|
|
876
|
+
"missing",
|
|
877
|
+
"notBreaching"
|
|
878
|
+
],
|
|
879
|
+
"type": "string"
|
|
820
880
|
}
|
|
821
881
|
},
|
|
822
882
|
"required": [
|
|
@@ -3934,6 +3994,12 @@
|
|
|
3934
3994
|
"cooldown": {
|
|
3935
3995
|
"type": "number"
|
|
3936
3996
|
},
|
|
3997
|
+
"fillupMissingData": {
|
|
3998
|
+
"type": [
|
|
3999
|
+
"number",
|
|
4000
|
+
"boolean"
|
|
4001
|
+
]
|
|
4002
|
+
},
|
|
3937
4003
|
"metricDependsOn": {
|
|
3938
4004
|
"anyOf": [
|
|
3939
4005
|
{
|
|
@@ -3985,6 +4051,15 @@
|
|
|
3985
4051
|
},
|
|
3986
4052
|
"targetValue": {
|
|
3987
4053
|
"type": "number"
|
|
4054
|
+
},
|
|
4055
|
+
"treatMissingData": {
|
|
4056
|
+
"enum": [
|
|
4057
|
+
" breaching",
|
|
4058
|
+
"ignore",
|
|
4059
|
+
"missing",
|
|
4060
|
+
"notBreaching"
|
|
4061
|
+
],
|
|
4062
|
+
"type": "string"
|
|
3988
4063
|
}
|
|
3989
4064
|
},
|
|
3990
4065
|
"required": [
|
|
@@ -4039,6 +4114,12 @@
|
|
|
4039
4114
|
"cooldown": {
|
|
4040
4115
|
"type": "number"
|
|
4041
4116
|
},
|
|
4117
|
+
"fillupMissingData": {
|
|
4118
|
+
"type": [
|
|
4119
|
+
"number",
|
|
4120
|
+
"boolean"
|
|
4121
|
+
]
|
|
4122
|
+
},
|
|
4042
4123
|
"metricDependsOn": {
|
|
4043
4124
|
"anyOf": [
|
|
4044
4125
|
{
|
|
@@ -4090,6 +4171,15 @@
|
|
|
4090
4171
|
},
|
|
4091
4172
|
"targetValue": {
|
|
4092
4173
|
"type": "number"
|
|
4174
|
+
},
|
|
4175
|
+
"treatMissingData": {
|
|
4176
|
+
"enum": [
|
|
4177
|
+
" breaching",
|
|
4178
|
+
"ignore",
|
|
4179
|
+
"missing",
|
|
4180
|
+
"notBreaching"
|
|
4181
|
+
],
|
|
4182
|
+
"type": "string"
|
|
4093
4183
|
}
|
|
4094
4184
|
},
|
|
4095
4185
|
"required": [
|
|
@@ -4480,6 +4570,12 @@
|
|
|
4480
4570
|
"cooldown": {
|
|
4481
4571
|
"type": "number"
|
|
4482
4572
|
},
|
|
4573
|
+
"fillupMissingData": {
|
|
4574
|
+
"type": [
|
|
4575
|
+
"number",
|
|
4576
|
+
"boolean"
|
|
4577
|
+
]
|
|
4578
|
+
},
|
|
4483
4579
|
"metricDependsOn": {
|
|
4484
4580
|
"anyOf": [
|
|
4485
4581
|
{
|
|
@@ -4531,6 +4627,15 @@
|
|
|
4531
4627
|
},
|
|
4532
4628
|
"targetValue": {
|
|
4533
4629
|
"type": "number"
|
|
4630
|
+
},
|
|
4631
|
+
"treatMissingData": {
|
|
4632
|
+
"enum": [
|
|
4633
|
+
" breaching",
|
|
4634
|
+
"ignore",
|
|
4635
|
+
"missing",
|
|
4636
|
+
"notBreaching"
|
|
4637
|
+
],
|
|
4638
|
+
"type": "string"
|
|
4534
4639
|
}
|
|
4535
4640
|
},
|
|
4536
4641
|
"required": [
|
|
@@ -4585,6 +4690,12 @@
|
|
|
4585
4690
|
"cooldown": {
|
|
4586
4691
|
"type": "number"
|
|
4587
4692
|
},
|
|
4693
|
+
"fillupMissingData": {
|
|
4694
|
+
"type": [
|
|
4695
|
+
"number",
|
|
4696
|
+
"boolean"
|
|
4697
|
+
]
|
|
4698
|
+
},
|
|
4588
4699
|
"metricDependsOn": {
|
|
4589
4700
|
"anyOf": [
|
|
4590
4701
|
{
|
|
@@ -4636,6 +4747,15 @@
|
|
|
4636
4747
|
},
|
|
4637
4748
|
"targetValue": {
|
|
4638
4749
|
"type": "number"
|
|
4750
|
+
},
|
|
4751
|
+
"treatMissingData": {
|
|
4752
|
+
"enum": [
|
|
4753
|
+
" breaching",
|
|
4754
|
+
"ignore",
|
|
4755
|
+
"missing",
|
|
4756
|
+
"notBreaching"
|
|
4757
|
+
],
|
|
4758
|
+
"type": "string"
|
|
4639
4759
|
}
|
|
4640
4760
|
},
|
|
4641
4761
|
"required": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hybridless/hybridless",
|
|
3
|
-
"version": "0.0.74-
|
|
3
|
+
"version": "0.0.74-beta12",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@babel/core": "^7.15.8",
|
|
21
|
-
"@hybridless/serverless-ecs-plugin": "0.0.21-
|
|
21
|
+
"@hybridless/serverless-ecs-plugin": "0.0.21-beta13",
|
|
22
22
|
"babel-loader": "^8.2.3",
|
|
23
23
|
"bluebird": "^3.7.2",
|
|
24
24
|
"dockerode": "^3.3.1",
|