blob: 164cec24f033398cb8e40dab41bda1cdd2832b35 [file] [log] [blame]
edition = "2023";
package safepower_agent_persistence_proto;
import "safepower_agent.proto";
option features.field_presence = IMPLICIT;
message SavedAction {
safepower_agent_proto.StartActionRequest original_request = 1;
safepower_agent_proto.ActionStateLog action_state_log = 2;
}
message SavedActions {
// keyed using action id.
map<string, SavedAction> actions = 1;
}
message SavedActionRecord {
string action_id = 1;
SavedAction actions = 2;
}
// This is used to append new actions to the saved actions file. It is used
// to enable a append only file type.
// This structure will be transformed to a SavedActions Map for use.
message SavedActionAppendLog {
repeated SavedActionRecord records = 1;
}