template <>
class WireServer
Defined at line 2018 of file fidling/gen/sdk/fidl/fuchsia.metrics/fuchsia.metrics/cpp/fidl/fuchsia.metrics/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_metrics::MetricEventLogger>|
and |::fidl::ServerEnd
<
::fuchsia_metrics::MetricEventLogger>|).
Public Methods
void LogOccurrence (::fuchsia_metrics::wire::MetricEventLoggerLogOccurrenceRequest * request, LogOccurrenceCompleter::Sync & completer)
Logs the fact that an event has occurred a number of times.
`metric_id` ID of the metric being logged.
`count` The number of times the event has occurred. The value should
be positive as a value of 0 is ignored.
`event_codes` Ordered list of parameters, one for each of the metric's
dimensions. Occurrence counts with the same event codes are aggregated
based on these parameters.
void LogInteger (::fuchsia_metrics::wire::MetricEventLoggerLogIntegerRequest * request, LogIntegerCompleter::Sync & completer)
Logs an integer measurement.
`metric_id` ID of the metric being logged.
`value` The integer measurement.
`event_codes` Ordered list of parameters, one for each of the metric's
dimensions. Integer values with the same event codes are aggregated
based on these parameters.
void LogIntegerHistogram (::fuchsia_metrics::wire::MetricEventLoggerLogIntegerHistogramRequest * request, LogIntegerHistogramCompleter::Sync & completer)
Logs a histogram giving many approximate integer measurements.
`metric_id` ID of the metric being logged.
`histogram` The collection of approximate integer measurements. Buckets
that have no measurement (empty buckets) should not be sent.
`event_codes` Ordered list of parameters, one for each of the metric's
dimensions. Histograms with the same event codes are aggregated together
based on these parameters.
void LogString (::fuchsia_metrics::wire::MetricEventLoggerLogStringRequest * request, LogStringCompleter::Sync & completer)
Logs a string value that was observed.
`metric_id` ID of the metric being logged.
`string_value` The string to log.
`event_codes` Ordered list of parameters, one for each of the metric's
dimensions. Counts of logged strings are aggregated separately based on
these parameters.
void LogMetricEvents (::fuchsia_metrics::wire::MetricEventLoggerLogMetricEventsRequest * request, LogMetricEventsCompleter::Sync & completer)
Bulk logging method, equivalent to making many of the above Log*() calls
at once.
void WireServer ()
Defined at line 2021 of file fidling/gen/sdk/fidl/fuchsia.metrics/fuchsia.metrics/cpp/fidl/fuchsia.metrics/cpp/wire_messaging.h
Handler bind_handler (async_dispatcher_t * dispatcher)
|bind_handler| returns a handler that binds incoming connections to this
server implementation.
The returned handler borrows the server instance.
The server must outlive the provided |dispatcher|. Only after
the dispatcher is shutdown will it be safe to destroy the servers.
The server should not be moved.
void ~WireServer ()
Defined at line 2022 of file fidling/gen/sdk/fidl/fuchsia.metrics/fuchsia.metrics/cpp/fidl/fuchsia.metrics/cpp/wire_messaging.h