class Sample

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

Configure Archivist to alert you periodically about the state of data

provided via `SampleParameters`.

If the given configuration results in a hit, a `BatchIterator` is sent

over the `sink` provided. That iterator may be drained, and then the

`sink` will go quiet until the next hit.

Archivist does not inform the client which data result in a success,

because it has not inherent advantaged ability to do so. Clients who

need to know which data was queried should cache their selectors and

use `selectors::select_from_hierarchy` (or similar in C++).

Public Members

static const char[] Name_

Public Methods

void ~Sample ()
void Set (::fuchsia::diagnostics::SampleParameters sample_parameters)

Add sample parameters.

Since this is limited by channel size, this API paginates at 300

items. That should fit in a channel unless a selector is particularly

gigantic.

Use `Commit` to indicate that all samples are sent over.

void Commit (::fidl::InterfaceHandle< ::fuchsia::diagnostics::SampleSink> sink, CommitCallback callback)

`Commit` returns errors quickly, as all configuration is validated

before the first sample is taken.

Protected Methods

void handle_unknown_method (uint64_t ordinal, bool method_has_response)

Friends

class Sample_Stub