interface IHost {
// Properties
${sessions}: ${ISession}[];
// Methods
${createSession}(deviceName?: string, serverName?: string): ${ISession};
${createSession#createSession1}(device?: { serial: string }, serverName?: string): ${ISession};
${createSession#createSession2}(device?: { usb: { device?: string; port?: number; address?: number; } }, serverName?: string): ${ISession};
${createSession#createSession3}(device?: { network: string }, serverName?: string): ${ISession};
${createSession#createSession4}(device?: { virtual: any }, serverName?: string): ${ISession};
${createSession#createSession5}(device?: { playback: { path: string; stream?: number; } }, serverName?: string): ${ISession};
${createSession#createSession6}(device?: { bridge: string | ${IBridge} }, serverName?: string): ${ISession};
}
// This interface is not available in managed environment
// This interface is not available in native environment
sessions: ${ISession}[];
// This property is not available in managed environment
// This property is not available in native environment
Returns the array of session objects.
Obtain a list of monitoring sessions and print their states:
var sessions = monitoring.sessions;
for (var i = 0; i < sessions.length; ++i)
alert(sessions[i].state);
createSession(deviceName?: string, serverName?: string): ${ISession};
// This method is not available in managed environment
// This method is not available in native environment
deviceName
serverName
Creates an unconfigured monitoring session. You must finish configuring the monitoring session before starting it with a call to start it. This method may be passed the same arguments as in ISession.addDevice method.
createSession(device?: { serial: string }, serverName?: string): ${ISession};
// This method is not available in managed environment
// This method is not available in native environment
device
serverName
Creates an unconfigured monitoring session. You must finish configuring the monitoring session before starting it with a call to start it. This method may be passed the same arguments as in ISession.addDevice method.
createSession(device?: { usb: { device?: string; port?: number; address?: number; } }, serverName?: string): ${ISession};
// This method is not available in managed environment
// This method is not available in native environment
device
serverName
Creates an unconfigured monitoring session. You must finish configuring the monitoring session before starting it with a call to start it. This method may be passed the same arguments as in ISession.addDevice method.
createSession(device?: { network: string }, serverName?: string): ${ISession};
// This method is not available in managed environment
// This method is not available in native environment
device
serverName
Creates an unconfigured monitoring session. You must finish configuring the monitoring session before starting it with a call to start it. This method may be passed the same arguments as in ISession.addDevice method.
createSession(device?: { virtual: any }, serverName?: string): ${ISession};
// This method is not available in managed environment
// This method is not available in native environment
device
serverName
Creates an unconfigured monitoring session. You must finish configuring the monitoring session before starting it with a call to start it. This method may be passed the same arguments as in ISession.addDevice method.
createSession(device?: { playback: { path: string; stream?: number; } }, serverName?: string): ${ISession};
// This method is not available in managed environment
// This method is not available in native environment
device
serverName
Creates an unconfigured monitoring session. You must finish configuring the monitoring session before starting it with a call to start it. This method may be passed the same arguments as in ISession.addDevice method.
createSession(device?: { bridge: string | ${IBridge} }, serverName?: string): ${ISession};
// This method is not available in managed environment
// This method is not available in native environment
device
serverName
Creates an unconfigured monitoring session. You must finish configuring the monitoring session before starting it with a call to start it. This method may be passed the same arguments as in ISession.addDevice method.
Create new (unconfigured) monitoring session:
// Create new monitoring session (without adding device):
var session = monitoring.createSession();
// Create new monitoring session and add COM1 serial device to it (use automatic matching):
var session = monitoring.createSession("COM1");
// Create new monitoring session and add specific serial device:
var session = monitoring.createSession({ serial: "Communications Port (COM1)" });
// Create new monitoring session and add specific USB device:
var session = monitoring.createSession({ usb: { device: "USB Input Device", port: 4, address: 1 } });
// Create new monitoring session and add specific network adapter:
var session = monitoring.createSession({ network: "Realtek PCIe GBE Family Controller(802.3)" });
// Create new monitoring session and add specific log file:
var session = monitoring.createSession({ playback: { path: "C:\\temp\\Communications Port (COM1)$140408$1.dmslog8", stream: 0 } });
// Create remote monitoring session for serial port
var session = monitoring.createSession("COM5", "remote_server_name");