Search documentation of snmpkit

# SnmpKit.SnmpSim.Performance.PerformanceMonitor (snmpkit v1.3.17)

Real-time performance monitoring and telemetry for SNMP simulator. Provides comprehensive metrics collection, alerting, and performance analytics. Integrates with :telemetry for external monitoring systems.

# Summary

## Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

force_performance_analysis()

Force immediate performance analysis and reporting.

get_current_metrics()

Get current performance metrics snapshot.

get_performance_history(duration_minutes \\ 60)

Get performance history for trend analysis.

record_device_event(event_type, port, device_type)

Record device lifecycle events.

record_request_timing(port, oid, duration_microseconds, success \\ true)

Record device request timing for performance tracking.

register_alert_callback(name, callback_fun)

Register callback for performance alerts.

start_link(opts \\ [])
update_thresholds(new_thresholds)

Update performance thresholds for alerts.

# Functions

# child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# force_performance_analysis()

Force immediate performance analysis and reporting.

# get_current_metrics()

Get current performance metrics snapshot.

# get_performance_history(duration_minutes \\ 60)

Get performance history for trend analysis.

# record_device_event(event_type, port, device_type)

Record device lifecycle events.

# record_request_timing(port, oid, duration_microseconds, success \\ true)

Record device request timing for performance tracking.

# register_alert_callback(name, callback_fun)

Register callback for performance alerts.

# start_link(opts \\ [])

# update_thresholds(new_thresholds)

Update performance thresholds for alerts.