template <>

class NaturalClientImpl

Defined at line 436 of file fidling/gen/sdk/fidl/fuchsia.metrics/fuchsia.metrics/cpp/fidl/fuchsia.metrics/cpp/natural_messaging.h

Public Methods

::fidl::internal::NaturalThenable< ::fuchsia_metrics::MetricEventLogger::LogOccurrence> LogOccurrence (const ::fidl::Request< ::fuchsia_metrics::MetricEventLogger::LogOccurrence> & request)

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.

::fidl::internal::NaturalThenable< ::fuchsia_metrics::MetricEventLogger::LogInteger> LogInteger (const ::fidl::Request< ::fuchsia_metrics::MetricEventLogger::LogInteger> & request)

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.

::fidl::internal::NaturalThenable< ::fuchsia_metrics::MetricEventLogger::LogIntegerHistogram> LogIntegerHistogram (const ::fidl::Request< ::fuchsia_metrics::MetricEventLogger::LogIntegerHistogram> & request)

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.

::fidl::internal::NaturalThenable< ::fuchsia_metrics::MetricEventLogger::LogString> LogString (const ::fidl::Request< ::fuchsia_metrics::MetricEventLogger::LogString> & request)

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.

::fidl::internal::NaturalThenable< ::fuchsia_metrics::MetricEventLogger::LogMetricEvents> LogMetricEvents (const ::fidl::Request< ::fuchsia_metrics::MetricEventLogger::LogMetricEvents> & request)

Bulk logging method, equivalent to making many of the above Log*() calls

at once.