Class: cloudUsage

cloudUsage(domainOrOptionsopt)

new cloudUsage(domainOrOptionsopt)

Parameters:
Name Type Attributes Description
domainOrOptions string | object <optional>
The project domain or options object. If object, see the object's optional properties.
Properties
Name Type Attributes Description
domain string <optional>
The project domain
token object <optional>
auth token - object with value property and optional headerOrQueryName and isQuery properties
Source:

Methods

getUsage(currency, market)

Retrieve server usage data for a specified date range.
Parameters:
Name Type Description
currency string Currency in which pricing information should be returned. If specified, overrides any shopper currency settings.
market string Locale in which pricing information should be formatted. If specified, overrides any shopper market settings.
Source:

setToken(value, headerOrQueryName, isQuery)

Set Token
Parameters:
Name Type Description
value string token's value
headerOrQueryName string the header or query name to send the token at
isQuery boolean true if send the token as query param, otherwise, send as header param
Source: