New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

serverless-provisioned-concurrency-autoscaling

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-provisioned-concurrency-autoscaling - npm Package Compare versions

Comparing version 1.2.2 to 1.3.0

2

lib/aws/target.js

@@ -23,3 +23,3 @@ "use strict";

MinCapacity: this.data.minimum,
ResourceId: `function:${this.data.name}:provisioned`,
ResourceId: `function:${this.data.name}:${this.data.alias}`,
ScalableDimension: 'lambda:function:ProvisionedConcurrency',

@@ -26,0 +26,0 @@ ServiceNamespace: 'lambda',

@@ -76,8 +76,8 @@ "use strict";

? {
customMetric: this.customMetricDefaults(config.customMetric, config.name),
customMetric: this.customMetricDefaults(config.customMetric, config.name, config.alias),
}
: {};
return Object.assign({ maximum: config.maximum || 10, minimum: config.minimum || 1, scaleInCooldown: config.scaleInCooldown || 120, scaleOutCooldown: config.scaleOutCooldown || 0, usage: config.usage || 0.75, function: config.function, name: config.name }, customMetricConfig);
return Object.assign({ maximum: config.maximum || 10, minimum: config.minimum || 1, scaleInCooldown: config.scaleInCooldown || 120, scaleOutCooldown: config.scaleOutCooldown || 0, usage: config.usage || 0.75, function: config.function, name: config.name, alias: config.alias || 'provisioned' }, customMetricConfig);
}
customMetricDefaults(customMetric, functionName) {
customMetricDefaults(customMetric, functionName, alias) {
const defaultDimensions = [

@@ -90,3 +90,3 @@ {

name: 'Resource',
value: `${functionName}:provisioned`,
value: `${functionName}:${alias}`,
},

@@ -93,0 +93,0 @@ ];

{
"name": "serverless-provisioned-concurrency-autoscaling",
"version": "1.2.2",
"version": "1.3.0",
"description": "Serverless Plugin for AWS Lambdas Provisioned Concurrency Auto Scaling configuration.",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -41,3 +41,3 @@ ![logo](https://github.com/neiman-marcus/serverless-provisioned-concurrency-autoscaling/raw/master/images/logo-small.png 'Neiman Marcus')

# full configuration
# full configuration

@@ -49,2 +49,3 @@ world:

enabled: true
alias: provisioned
maximum: 10

@@ -66,2 +67,3 @@ minimum: 1

```yaml
alias: provisioned
maximum: 10

@@ -68,0 +70,0 @@ minimum: 1

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc