API-REFERENCES
sd-agent.js

API Reference: sd-agent

The sd-agent exposes a lightweight, non-blocking API to configure the agent that collects your 24-hour hardware audit.

To ensure safety and prevent race conditions if your application code executes before the agent script fully loads, all commands are queued asynchronously via the window.sdAgent object (see installation docs).

Configuration

sdAgent.config(options)

Sets the endpoint the agent sends its telemetry to.

  • Arguments:
    • options (Object):
      • endpoint (String): Your private data stream endpoint URL. If it is an empty string "" or undefined, the agent disables itself.

Example

sdAgent.config({
  // Replace <PRIVATE_URL> with your private data stream endpoint URL
  endpoint: '<PRIVATE_URL>',
});