Struct Manifest

Struct Documentation

struct Manifest

Manifest of upstream sources returned by the manifest endpoint.

#include <foxglove/remote_data_loader_backend.hpp>
#include <foxglove/messages.hpp>

namespace rdl = foxglove::remote_data_loader_backend;

rdl::ChannelSet channels;
channels.insert<foxglove::messages::Vector3>("/demo");

rdl::StreamedSource source;
source.url = "/v1/data?flightId=ABC123";
source.id = "flight-v1-ABC123";
source.topics = std::move(channels.topics);
source.schemas = std::move(channels.schemas);
source.start_time = "2024-01-01T00:00:00Z";
source.end_time = "2024-01-02T00:00:00Z";

rdl::Manifest manifest;
manifest.name = "Flight ABC123";
manifest.sources = {std::move(source)};

std::string json_str = rdl::toJsonString(manifest);

Public Members

std::optional<std::string> name

Human-readable display name for this manifest.

std::vector<StreamedSource> sources

Data sources in this manifest.