class ArchiveReader

Defined at line 28 of file ../../sdk/lib/diagnostics/reader/cpp/archive_reader.h

ArchiveReader supports reading Inspect data from an Archive.

Public Methods

void ArchiveReader (async_dispatcher_t * dispatcher)

Defined at line 32 of file ../../sdk/lib/diagnostics/reader/cpp/archive_reader.h

ArchiveReader & SetSelectors (std::vector<std::string> selectors)

Set the ArchiveReader's selectors to this exact list, overwriting any previously supplied.

Defined at line 44 of file ../../sdk/lib/diagnostics/reader/cpp/archive_reader.h

ArchiveReader & AddSelectors (std::vector<std::string> selectors)

Add these selectors to the ArchiveReader's current set of selectors.

Defined at line 50 of file ../../sdk/lib/diagnostics/reader/cpp/archive_reader.h

void ArchiveReader (async_dispatcher_t * dispatcher, std::vector<std::string> selectors)

Create a new ArchiveReader.

Defined at line 115 of file ../../sdk/lib/diagnostics/reader/cpp/archive_reader.cc

void ArchiveReader (async_dispatcher_t * dispatcher, std::vector<std::string> selectors, fidl::ClientEnd<fuchsia_diagnostics::ArchiveAccessor> archive)

Creates a new ArchiveReader using the specified client.

Defined at line 118 of file ../../sdk/lib/diagnostics/reader/cpp/archive_reader.cc

fpromise::promise<std::vector<InspectData>, std::string> GetInspectSnapshot ()

Get a snapshot of the Inspect data at the current point in time.

Returns an error if the ArchiveAccessorPtr is not bound.

Defined at line 133 of file ../../sdk/lib/diagnostics/reader/cpp/archive_reader.cc

fpromise::promise<std::vector<InspectData>, std::string> SnapshotInspectUntilPresent (std::vector<std::string> component_names)

Gets a snapshot of the Inspect data at the point in time in which all listed component

names are present.

Returns an error if the ArchiveAccessorPtr is not bound.

Defined at line 175 of file ../../sdk/lib/diagnostics/reader/cpp/archive_reader.cc

LogsSubscription GetLogs (fuchsia_diagnostics::StreamMode mode)

Subscribes to logs using the given `mode`.

Defined at line 222 of file ../../sdk/lib/diagnostics/reader/cpp/archive_reader.cc