new bucket(opts)
Bucket
Parameters:
Name |
Type |
Description |
opts |
object
|
Options |
Properties:
Name |
Type |
Description |
_id |
object
|
ID of currently selected bucket |
current_raw |
object
|
Raw data from current selected Bucket |
servers |
object
|
(Realtime) List of connected Bucket servers |
apps |
object
|
(Realtime) List of connected Bucket applications |
apps_server |
object
|
(Realtime) List of connected apps per server |
mini_metrics |
object
|
(Realtime) List of metrics per app per server |
- Source:
Classes
- Action
- Alert
- Data
- User
Methods
all(cb)
Retrieve all bucket information
Parameters:
Name |
Type |
Description |
cb |
function
|
Callback |
- Source:
connect(public_id)
Connect to bucket from public key
Parameters:
Name |
Type |
Description |
public_id |
string
|
Public key |
- Source:
connectFromID(raw_id)
Connect to bucket from id
Parameters:
Name |
Type |
Description |
raw_id |
string
|
Bucket Id |
- Source:
fetchUserRole(cb)
Find current user role
Parameters:
Name |
Type |
Description |
cb |
function
|
Callback |
- Source:
get(cb)
Retrieve current bucket information
Parameters:
Name |
Type |
Description |
cb |
function
|
Callback |
- Source:
Retrieve servers metadata
Parameters:
Name |
Type |
Description |
cb |
function
|
Callback |
- Source:
getPlans(cb)
Retrieve avalaible Keymetrics plans
Parameters:
Name |
Type |
Description |
cb |
function
|
Callback |
- Source:
getProbesHistory(opts, cb)
Retrieve probe data history
Parameters:
Name |
Type |
Description |
opts |
object
|
Options
Properties
Name |
Type |
Description |
app_name |
object
|
Application name |
server_name |
object
|
Server name |
minutes |
object
|
Minutes |
interval |
object
|
interval |
|
cb |
function
|
Callback |
- Source:
Retrieve probe meta history
Parameters:
Name |
Type |
Description |
opts |
object
|
Options
Properties
Name |
Type |
Description |
app_name |
object
|
Application name |
server_name |
object
|
Server name |
minutes |
object
|
Minutes |
|
cb |
function
|
Callback |
- Source:
init(cb)
Populate all bucket information
Parameters:
Name |
Type |
Description |
cb |
function
|
Callback |
- Source:
retrieve(public_id, cb)
Retrieve Bucket from public key
Parameters:
Name |
Type |
Description |
public_id |
string
|
Bucket public key |
cb |
callback
|
description |
- Source:
retrieveFromID(raw_id, cb)
Retrieve Bucket from ID
Parameters:
Name |
Type |
Description |
raw_id |
string
|
Bucket ID |
cb |
callback
|
Callback |
- Source:
Save server metadata
Parameters:
Name |
Type |
Description |
server |
object
|
Server |
cb |
function
|
Callback |
- Source:
update(server, cb)
Update server metadata
Parameters:
Name |
Type |
Description |
server |
object
|
Server |
cb |
function
|
Callback |
- Source: