template <>

class WireSyncClientImpl

Defined at line 1706 of file fidling/gen/sdk/fidl/fuchsia.metrics/fuchsia.metrics/cpp/fidl/fuchsia.metrics/cpp/wire_messaging.h

Methods to make a sync FIDL call directly on an unowned handle or a

const reference to a |::fidl::ClientEnd

<

::fuchsia_metrics::MetricEventLogger>|,

avoiding setting up a client.

Public Methods

::fidl::WireResult< ::fuchsia_metrics::MetricEventLogger::LogOccurrence> LogOccurrence (uint32_t metric_id, uint64_t count, ::fidl::VectorView<uint32_t> event_codes)

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.

Allocates 120 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_metrics::MetricEventLogger::LogInteger> LogInteger (uint32_t metric_id, int64_t value, ::fidl::VectorView<uint32_t> event_codes)

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.

Allocates 120 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_metrics::MetricEventLogger::LogIntegerHistogram> LogIntegerHistogram (uint32_t metric_id, ::fidl::VectorView< ::fuchsia_metrics::wire::HistogramBucket> histogram, ::fidl::VectorView<uint32_t> event_codes)

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.

Allocates 32 bytes of response buffer on the stack. Request is heap-allocated.

::fidl::WireResult< ::fuchsia_metrics::MetricEventLogger::LogString> LogString (uint32_t metric_id, ::fidl::StringView string_value, ::fidl::VectorView<uint32_t> event_codes)

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.

Allocates 384 bytes of message buffer on the stack. No heap allocation necessary.

::fidl::WireResult< ::fuchsia_metrics::MetricEventLogger::LogMetricEvents> LogMetricEvents (::fidl::VectorView< ::fuchsia_metrics::wire::MetricEvent> events)

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

at once.

Allocates 32 bytes of response buffer on the stack. Request is heap-allocated.