Skip to main content

track_api

Method
This is a method of the PerformanceMonitor class in the telemetry module.
Track an API call.

Signature

def track_api(&self, endpoint: &str, duration: Duration, success: bool, status_code: Option<u16>) -> ()

Parameters

endpoint
&str
required
No description available.
duration
Duration
required
No description available.
success
bool
required
No description available.
status_code
Option<u16>
required
No description available.

Returns

Returns
()
The result of the operation.