Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aws-stats

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-stats

an express router that exposes an api to get cloudmetrics stats from aws

  • 0.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

AWS-Stats

This module is an express router that exposes an api to get cloudmetrics stats from AWS.

Including in backend

The module just exposes an express router - so you just need to use it for a specific route. For example:

const app = require('express')();

app.use('/foo', require('aws-stats'));

app.listen(8080);

AWS Credentials

You'll need to have some AWS credentials set up on the host machine for this to work. See here for more details.

The API

RouteFunctionParameters
/listlists all valid regions and namespaces
/list/[NAMESPACE]lists all available metrics for NAMESPACEregion
/stat/[NAMESPACE]/[METRIC]gets stats for metric in namespaceregion, age, regex

Querystrings

All querystring parameters are optional.

ParameterFunctionDefault
regiona valid regioneu-west-2
agehow long ago (in ms) to gather stats from3600000 (1 hour)
regexa regular expression for the resources to get stats for. The result will be the average for all matched resourcesnull (all resources)

FAQs

Package last updated on 21 Sep 2017

Did you know?

Socket

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.

Install

Related posts

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