64 lines
2.5 KiB
Go
64 lines
2.5 KiB
Go
package models
|
|
|
|
import "time"
|
|
|
|
type RemediationProposal struct {
|
|
ID int64 `json:"id"`
|
|
Scope string `json:"scope"`
|
|
Target string `json:"target"`
|
|
DoctorExecutionID string `json:"doctor_execution_id"`
|
|
EvidenceHash string `json:"evidence_hash"`
|
|
EvidenceJSON string `json:"evidence_json"`
|
|
Command string `json:"command"`
|
|
ArgumentsJSON string `json:"arguments_json"`
|
|
RiskLevel string `json:"risk_level"`
|
|
Rollback string `json:"rollback"`
|
|
Status string `json:"status"`
|
|
CreatedBy string `json:"created_by"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|
|
|
|
type RemediationApproval struct {
|
|
ID int64 `json:"id"`
|
|
ProposalID int64 `json:"proposal_id"`
|
|
OperatorEmail string `json:"operator_email"`
|
|
EvidenceHash string `json:"evidence_hash"`
|
|
ApprovedAt time.Time `json:"approved_at"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|
|
|
|
type OperationExecution struct {
|
|
ID int64 `json:"id"`
|
|
ProposalID int64 `json:"proposal_id"`
|
|
JeannieExecutionID string `json:"jeannie_execution_id"`
|
|
Status string `json:"status"`
|
|
Output string `json:"output"`
|
|
Error string `json:"error"`
|
|
ReportID int64 `json:"report_id"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|
|
|
|
type IncidentReport struct {
|
|
ID int64 `json:"id"`
|
|
ExecutionID int64 `json:"execution_id"`
|
|
ProposalID int64 `json:"proposal_id"`
|
|
Scope string `json:"scope"`
|
|
Target string `json:"target"`
|
|
Outcome string `json:"outcome"`
|
|
Findings string `json:"findings"`
|
|
Diagnostic string `json:"diagnostic"`
|
|
FiveWhysJSON string `json:"five_whys_json"`
|
|
Mitigation string `json:"mitigation"`
|
|
Validation string `json:"validation"`
|
|
Recommendation string `json:"recommendation"`
|
|
BeforeEvidenceJSON string `json:"before_evidence_json"`
|
|
AfterEvidenceJSON string `json:"after_evidence_json"`
|
|
ExecutionOutput string `json:"execution_output"`
|
|
ApprovedBy string `json:"approved_by"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|