template <>
class Server
Defined at line 640 of file fidling/gen/sdk/fidl/fuchsia.metrics/fuchsia.metrics/cpp/fidl/fuchsia.metrics/cpp/natural_messaging.h
Public Methods
void LogOccurrence (LogOccurrenceRequest & 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 (LogIntegerRequest & 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 (LogIntegerHistogramRequest & 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 (LogStringRequest & 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 (LogMetricEventsRequest & request, LogMetricEventsCompleter::Sync & completer)
Bulk logging method, equivalent to making many of the above Log*() calls
at once.
void Server ()
Defined at line 643 of file fidling/gen/sdk/fidl/fuchsia.metrics/fuchsia.metrics/cpp/fidl/fuchsia.metrics/cpp/natural_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 ~Server ()
Defined at line 644 of file fidling/gen/sdk/fidl/fuchsia.metrics/fuchsia.metrics/cpp/fidl/fuchsia.metrics/cpp/natural_messaging.h