0.0.6 • Published 7 years ago

aws-stats v0.0.6

Weekly downloads
12
License
SEE LICENCE IN LI...
Repository
github
Last release
7 years ago

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/NAMESPACElists all available metrics for NAMESPACEregion
/stat/NAMESPACE/METRICgets 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)
0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago