InoDrive / IO / getMetrics


InoDrive.IO.getMetrics()

Get Metrics information from the InoDrive Module

Returns: Metrics (Object) The returned object contains multiple objects with information on the the Module Temperatures, States of Ethernet Ports, Operational States of the Module, Input Voltage, and whether or not the reading of the object has been successful. Seeking more specific information? Utilize methods like Drive.IO.getInputVoltage.

// Import InoDrive API Library
 import { InoDriveApiJS }  from ( "ck-inodrive-api" ) 

// Instatiate the API
let InoDriveApi = new InoDriveApiJS.InoDriveApi({ connectAppUrl: "", secure: false })

// Instantiate InoDrive Object
Drive = await InoDriveApi.InoDrive({target:'Name', autoConnect:True})

// Get the Metrics Information
await Drive.IO.getMetrics()