[][src]Function newrelic_sys::newrelic_record_custom_metric

pub unsafe extern "C" fn newrelic_record_custom_metric(
    transaction: *mut newrelic_txn_t,
    metric_name: *const c_char,
    milliseconds: f64
) -> bool

@brief Generate a custom metric.

Given an active transaction and valid parameters, this function creates a custom metric to be recorded as part of the transaction.

@param [in] transaction An active transaction. @param [in] metric_name The name/identifier for the metric. @param [in] milliseconds The amount of time the metric will record, in milliseconds.

@return true on success.