class SampleDatum

Defined at line 3553 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h

Public Members

static const fidl_type_t * FidlType

Public Methods

bool IsEmpty ()

Returns whether no field is set.

SampleDatum & set_selector (::fuchsia::diagnostics::SelectorArgument _value)
SampleDatum & set_strategy (::fuchsia::diagnostics::SampleStrategy _value)
SampleDatum & set_interval_secs (int64_t _value)
void SampleDatum ()
void SampleDatum (SampleDatum && other)
void ~SampleDatum ()
SampleDatum & operator= (SampleDatum && other)
::std::unique_ptr<SampleDatum> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, SampleDatum * _value, size_t _offset)
zx_status_t Clone (SampleDatum * _result)
const ::fuchsia::diagnostics::SelectorArgument & selector ()

The selector to check.

Defined at line 3560 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h

bool has_selector ()

Defined at line 3564 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h

::fuchsia::diagnostics::SelectorArgument * mutable_selector ()

The selector to check.

Defined at line 3569 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h

void clear_selector ()

Defined at line 3577 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h

const ::fuchsia::diagnostics::SampleStrategy & strategy ()

The strategy by which the server decides to notify the client.

Defined at line 3586 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h

bool has_strategy ()

Defined at line 3590 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h

::fuchsia::diagnostics::SampleStrategy * mutable_strategy ()

The strategy by which the server decides to notify the client.

Defined at line 3595 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h

void clear_strategy ()

Defined at line 3603 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h

const int64_t & interval_secs ()

The interval at which this datum should be sampled.

Each `SampleDatum` has its own specified interval. It is preferred to send

as many selectors on one `Sample` connection as possible, to allow

Archivist to batch requests. However, Archivist will query at a period that

is the greatest common divisor of all intervals. So, balance the desire for

a small number of `Sample` connections with keeping the intervals compatible.

Example: two data with intervals of 3 and 4 respectively would check for work

every second. Archivist won't actually sample if neither batch is ready, but

it will check.

Example: two data with intervals of 10 and 5 respectively would only check for

work every 5 seconds.

(In practice, the calculated sample period must be valid. See

MINIMUM_SAMPLE_PERIOD_SECONDS above.)

Defined at line 3628 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h

bool has_interval_secs ()

Defined at line 3632 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h

int64_t * mutable_interval_secs ()

The interval at which this datum should be sampled.

Each `SampleDatum` has its own specified interval. It is preferred to send

as many selectors on one `Sample` connection as possible, to allow

Archivist to batch requests. However, Archivist will query at a period that

is the greatest common divisor of all intervals. So, balance the desire for

a small number of `Sample` connections with keeping the intervals compatible.

Example: two data with intervals of 3 and 4 respectively would check for work

every second. Archivist won't actually sample if neither batch is ready, but

it will check.

Example: two data with intervals of 10 and 5 respectively would only check for

work every 5 seconds.

(In practice, the calculated sample period must be valid. See

MINIMUM_SAMPLE_PERIOD_SECONDS above.)

Defined at line 3653 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h

void clear_interval_secs ()

Defined at line 3661 of file fidling/gen/sdk/fidl/fuchsia.diagnostics/fuchsia.diagnostics/hlcpp/fuchsia/diagnostics/cpp/fidl.h