@platformatic/foundation 3.10.0 → 3.12.0

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.
Files changed (2) hide show
  1. package/lib/schema.js +30 -2
  2. package/package.json +1 -1
package/lib/schema.js CHANGED
@@ -54,12 +54,13 @@ const verticalScaler = {
54
54
  properties: {
55
55
  enabled: { type: 'boolean', default: true },
56
56
  maxTotalWorkers: { type: 'number', minimum: 1 },
57
+ maxTotalMemory: { type: 'number', minimum: 0 },
57
58
  minWorkers: { type: 'number', minimum: 1 },
58
59
  maxWorkers: { type: 'number', minimum: 1 },
59
60
  scaleUpELU: { type: 'number', minimum: 0, maximum: 1 },
60
61
  scaleDownELU: { type: 'number', minimum: 0, maximum: 1 },
61
- minELUDiff: { type: 'number', minimum: 0, maximum: 1 },
62
62
  timeWindowSec: { type: 'number', minimum: 0 },
63
+ scaleDownTimeWindowSec: { type: 'number', minimum: 0 },
63
64
  cooldownSec: { type: 'number', minimum: 0 },
64
65
  scaleIntervalSec: { type: 'number', minimum: 0 },
65
66
  gracePeriod: { type: 'number', minimum: 0 }
@@ -677,6 +678,31 @@ export const telemetry = {
677
678
  additionalProperties: false
678
679
  }
679
680
 
681
+ export const policies = {
682
+ type: 'object',
683
+ properties: {
684
+ deny: {
685
+ type: 'object',
686
+ patternProperties: {
687
+ '^.*$': {
688
+ oneOf: [
689
+ { type: 'string' },
690
+ {
691
+ type: 'array',
692
+ items: {
693
+ type: 'string'
694
+ },
695
+ minItems: 1
696
+ }
697
+ ]
698
+ }
699
+ }
700
+ }
701
+ },
702
+ required: ['deny'],
703
+ additionalProperties: false
704
+ }
705
+
680
706
  export const applications = {
681
707
  type: 'array',
682
708
  items: {
@@ -1222,7 +1248,8 @@ export const runtimeProperties = {
1222
1248
  },
1223
1249
  required: ['name', 'cron', 'callbackUrl']
1224
1250
  }
1225
- }
1251
+ },
1252
+ policies
1226
1253
  }
1227
1254
 
1228
1255
  export const wrappedRuntimeProperties = omitProperties(runtimeProperties, runtimeUnwrappablePropertiesList)
@@ -1247,6 +1274,7 @@ export const schemaComponents = {
1247
1274
  healthWithoutDefaults,
1248
1275
  telemetryExporter,
1249
1276
  telemetry,
1277
+ policies,
1250
1278
  applications,
1251
1279
  runtimeProperties,
1252
1280
  wrappedRuntimeProperties,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/foundation",
3
- "version": "3.10.0",
3
+ "version": "3.12.0",
4
4
  "description": "Platformatic Foundation",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",