bedrock-stats
Available Storage APIs
API Reference
bedrock-stats
-
bedrock-stats
-
.getMonitorIds(options) ⇒
Promise.<Array.<string>>
-
.getReports(options) ⇒
Promise.<Object>
-
.getMonitorIds(options) ⇒
Promise.<Array.<string>>
bedrock-stats.getMonitorIds(options) ⇒ Get all known monitor IDs.
Kind: static method of bedrock-stats
Returns: Promise.<Array.<string>>
- The monitor IDs.
Throws:
-
BedrockError
Will throw aNotFoundError
on an unknown storage API.
Param | Type | Description |
---|---|---|
options | Object |
The options to use. |
options.storageApi | string |
The storage API to use. |
Promise.<Object>
bedrock-stats.getReports(options) ⇒ Get a stats reports matching the query.
Kind: static method of bedrock-stats
Returns: Promise.<Object>
- The stats report.
Throws:
-
BedrockError
Will throw aNotFoundError
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. |