20#ifndef ORES_REPORTING_MESSAGING_CONCURRENCY_POLICY_PROTOCOL_HPP
21#define ORES_REPORTING_MESSAGING_CONCURRENCY_POLICY_PROTOCOL_HPP
26#include "ores.reporting.api/domain/concurrency_policy.hpp"
28namespace ores::reporting::messaging {
30struct get_concurrency_policies_request {
31 using response_type =
struct get_concurrency_policies_response;
32 static constexpr std::string_view nats_subject =
33 "reporting.v1.concurrency-policies.list";
38struct get_concurrency_policies_response {
39 std::vector<ores::reporting::domain::concurrency_policy> policies;
40 int total_available_count = 0;
43struct save_concurrency_policy_request {
44 using response_type =
struct save_concurrency_policy_response;
45 static constexpr std::string_view nats_subject =
46 "reporting.v1.concurrency-policies.save";
50struct save_concurrency_policy_response {
55struct delete_concurrency_policy_request {
56 using response_type =
struct delete_concurrency_policy_response;
57 static constexpr std::string_view nats_subject =
58 "reporting.v1.concurrency-policies.delete";
59 std::vector<std::string> codes;
62struct delete_concurrency_policy_response {
67struct get_concurrency_policy_history_request {
68 using response_type =
struct get_concurrency_policy_history_response;
69 static constexpr std::string_view nats_subject =
70 "reporting.v1.concurrency-policies.history";
74struct get_concurrency_policy_history_response {
77 std::vector<ores::reporting::domain::concurrency_policy> history;
Report instance concurrency behaviour when a new trigger fires.
Definition concurrency_policy.hpp:37