20#ifndef ORES_COMPUTE_MESSAGING_BATCH_PROTOCOL_HPP
21#define ORES_COMPUTE_MESSAGING_BATCH_PROTOCOL_HPP
26#include "ores.compute.api/domain/batch.hpp"
28namespace ores::compute::messaging {
30struct list_batches_request {
31 using response_type =
struct list_batches_response;
32 static constexpr std::string_view nats_subject =
33 "compute.v1.batches.list";
38struct list_batches_response {
39 std::vector<ores::compute::domain::batch> batches;
40 int total_available_count = 0;
43struct save_batch_request {
44 using response_type =
struct save_batch_response;
45 static constexpr std::string_view nats_subject =
46 "compute.v1.batches.save";
48 std::string change_reason_code;
49 std::string change_commentary;
52struct save_batch_response {
57struct get_batch_history_request {
58 using response_type =
struct get_batch_history_response;
59 static constexpr std::string_view nats_subject =
60 "compute.v1.batches.history";
64struct get_batch_history_response {
67 std::vector<ores::compute::domain::batch> versions;
A logical grouping of workunits forming a financial computation batch.
Definition batch.hpp:35