fidl_fuchsia_metrics

Trait MetricEventLoggerProxyInterface

Source
pub trait MetricEventLoggerProxyInterface: Send + Sync {
    type LogOccurrenceResponseFut: Future<Output = Result<MetricEventLoggerLogOccurrenceResult, Error>> + Send;
    type LogIntegerResponseFut: Future<Output = Result<MetricEventLoggerLogIntegerResult, Error>> + Send;
    type LogIntegerHistogramResponseFut: Future<Output = Result<MetricEventLoggerLogIntegerHistogramResult, Error>> + Send;
    type LogStringResponseFut: Future<Output = Result<MetricEventLoggerLogStringResult, Error>> + Send;
    type LogMetricEventsResponseFut: Future<Output = Result<MetricEventLoggerLogMetricEventsResult, Error>> + Send;

    // Required methods
    fn log_occurrence(
        &self,
        metric_id: u32,
        count: u64,
        event_codes: &[u32],
    ) -> Self::LogOccurrenceResponseFut;
    fn log_integer(
        &self,
        metric_id: u32,
        value: i64,
        event_codes: &[u32],
    ) -> Self::LogIntegerResponseFut;
    fn log_integer_histogram(
        &self,
        metric_id: u32,
        histogram: &[HistogramBucket],
        event_codes: &[u32],
    ) -> Self::LogIntegerHistogramResponseFut;
    fn log_string(
        &self,
        metric_id: u32,
        string_value: &str,
        event_codes: &[u32],
    ) -> Self::LogStringResponseFut;
    fn log_metric_events(
        &self,
        events: &[MetricEvent],
    ) -> Self::LogMetricEventsResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn log_occurrence( &self, metric_id: u32, count: u64, event_codes: &[u32], ) -> Self::LogOccurrenceResponseFut

Source

fn log_integer( &self, metric_id: u32, value: i64, event_codes: &[u32], ) -> Self::LogIntegerResponseFut

Source

fn log_integer_histogram( &self, metric_id: u32, histogram: &[HistogramBucket], event_codes: &[u32], ) -> Self::LogIntegerHistogramResponseFut

Source

fn log_string( &self, metric_id: u32, string_value: &str, event_codes: &[u32], ) -> Self::LogStringResponseFut

Source

fn log_metric_events( &self, events: &[MetricEvent], ) -> Self::LogMetricEventsResponseFut

Implementors§