blob: 5ad09c895872362e5c95458a6dbac3245d11e6e6 [file]
syntax = "proto3";
package safepower_agent_persistence_proto;
import "safepower_agent.proto";
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;
}