airvantage
Interface to the portal.
airvantage
airvantage.acknowledge(ticketid, status, err_msg, policy, persisted) | Acknowledge a server message received with an acknowledgement ticket id. |
airvantage.connectToServer() | Force an immediate connection to the portal
|
airvantage.init() | Initialize the module. |
airvantage.newAsset(id) | Creates and returns a new airvantage.asset#asset instance. |
airvantage.triggerPolicy(policy) | Forces the tables and unstructured data attached to a given policy to be sent immediately. |
airvantage
airvantage.acknowledge(ticketid, status, err_msg, policy, persisted)
ticketid
:
the ticket number to acknowledge
status
:
a boolean, true for success, false for failure
err_msg
:
an optional error message string
policy
:
optional triggering policy to send the acknowledgement,
defaults to "now"
.
persisted
:
if true, the ACK message will be persisted in flash
by the agent, and kept even if a reboot occurs before the policy
is triggered.
airvantage.connectToServer()
airvantage.init()
airvantage.newAsset(id)
id
:
defining the assetid identifying the instance of this new asset.
airvantage.triggerPolicy(policy)
policy
:
name of the policy queue to be flushed.
Flush all policies if policy=='*'
Flush default queue if policy is ommitted.