class MetricEventPayload

Defined at line 1395 of file fidling/gen/sdk/fidl/fuchsia.metrics/fuchsia.metrics/cpp/fidl/fuchsia.metrics/cpp/natural_types.h

The variadic part of a MetricEvent.

Public Methods

void MetricEventPayload (MetricEventPayload && other)
MetricEventPayload & operator= (MetricEventPayload && other)
void MetricEventPayload (const MetricEventPayload & other)
MetricEventPayload & operator= (const MetricEventPayload & other)
bool operator== (const MetricEventPayload & other)
bool operator!= (const MetricEventPayload & other)
bool IsUnknown ()
::fuchsia_metrics::MetricEventPayload::Tag Which ()
MetricEventPayload WithCount (uint64_t val)
const ::fidl::internal::UnionMemberView<1, Storage_> count ()
::fidl::internal::UnionMemberView<1, Storage_> count ()
MetricEventPayload & count (uint64_t value)

The number of times the event has occurred, see LogOccurrence().

MetricEventPayload WithIntegerValue (int64_t val)
const ::fidl::internal::UnionMemberView<2, Storage_> integer_value ()
::fidl::internal::UnionMemberView<2, Storage_> integer_value ()
MetricEventPayload & integer_value (int64_t value)

The integer measured, see LogInteger().

MetricEventPayload WithHistogram (::std::vector< ::fuchsia_metrics::HistogramBucket> val)
const ::fidl::internal::UnionMemberView<3, Storage_> histogram ()
::fidl::internal::UnionMemberView<3, Storage_> histogram ()
MetricEventPayload & histogram (::std::vector< ::fuchsia_metrics::HistogramBucket> value)

The collection of approximate integer measurements, see

LogIntegerHistogram().

MetricEventPayload WithStringValue (::std::string val)
const ::fidl::internal::UnionMemberView<4, Storage_> string_value ()
::fidl::internal::UnionMemberView<4, Storage_> string_value ()
MetricEventPayload & string_value (::std::string value)

The string to log, see LogString().

void MetricEventPayload (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Enumerations

enum Tag
Name Value
kCount 1
kIntegerValue 2
kHistogram 3
kStringValue 4
_do_not_handle_this__write_a_default_case_instead ::std::numeric_limits<::fidl_union_tag_t>::max()

TODO: share union tag types between wire

&

natural.

Defined at line 1403 of file fidling/gen/sdk/fidl/fuchsia.metrics/fuchsia.metrics/cpp/fidl/fuchsia.metrics/cpp/natural_types.h

Friends

class NaturalUnionCodingTraits