Octogram.Orchestrator_stateval initial_state : ?prometheus:Remote_prometheus.t -> Global_variables.t -> tval get_agent : t -> Agent_name.t -> Remote_agent.tval iter_agents :
Execution_params.mode ->
t ->
(Remote_agent.t -> unit Lwt.t) ->
unit Lwt.tval record_agent : t -> Remote_agent.t -> unitval forget_agent : t -> Agent_name.t -> unitval get_global_variables : t -> Global_variables.tval with_global_variables :
t ->
(Global_variables.t -> Global_variables.t) ->
unitwith_global_variables state f uses the blocking function f to update the global variables of state. This is the only way to modify the global variables, as a mitigation for the highly asynchronous nature of the orchestrator.
That is, you get the freshest version possible of the global variables before you update it, compare to using a get/set pattern.
val uri_resolver : t -> Uri_resolver.tval record_metrics_source :
t ->
Agent_name.t ->
string ->
string ->
int ->
unitval with_prometheus : default:'a -> t -> (Remote_prometheus.t -> 'a) -> 'a