bedrock-stats

## Available Storage APIs - [bedrock-stats-storage-redis](https://github.com/digitalbazaar/bedrock-stats-storage-redis)

Usage no npm install needed!

<script type="module">
  import bedrockStats from 'https://cdn.skypack.dev/bedrock-stats';
</script>

README

bedrock-stats

Available Storage APIs

API Reference

bedrock-stats

bedrock-stats.getMonitorIds(options) ⇒ Promise.<Array.<string>>

Get all known monitor IDs.

Kind: static method of bedrock-stats
Returns: Promise.<Array.<string>> - The monitor IDs.
Throws:

  • BedrockError Will throw a NotFoundError on an unknown storage API.
Param Type Description
options Object The options to use.
options.storageApi string The storage API to use.

bedrock-stats.getReports(options) ⇒ Promise.<Object>

Get a stats reports matching the query.

Kind: static method of bedrock-stats
Returns: Promise.<Object> - The stats report.
Throws:

  • BedrockError Will throw a NotFoundError on an unknown storage API.
Param Type Description
options Object The options to use.
options.query Object The query passed to the storage API.
options.storageApi string The storage API to use.