
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
serverless-plugin-metric
Advanced tools
Simplified way to create AWSL:Logs:MetricFilter resources using custom pattern-filter
A serverless plugin to automatically create AWS:Logs:MetricFilter
resources.
NPM:
npm install serverless-plugin-metric --save-dev
Add the plugin to serverless.yml
plugins:
- serverless-plugin-metric
setup metrics:
custom:
metrics: # Array<MetricOption>
- name: foo
pattern: "{ $.statusCode != 200 }"
Info: In order to display the metric on CloudWatch it is necessary to receive data.
/**
* @typedef {object} MetricOption
* @property {string} name The name of the metric
* @property {string} pattern Filter patter doc (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html)
* @property {string[]} [functions] Default: ALL
* @property {string} [namespace] Override dynamic generated namespace (default: '<serviceName>/<stageName>')
* @property {string} [value] The value to apply to each occurence. (default: 1)
*/
FAQs
Simplified way to create AWSL:Logs:MetricFilter resources using custom pattern-filter
The npm package serverless-plugin-metric receives a total of 964 weekly downloads. As such, serverless-plugin-metric popularity was classified as not popular.
We found that serverless-plugin-metric demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.