v1.7.6
This commit is contained in:
102
pkg/cloudbroker/audit/models.go
Normal file
102
pkg/cloudbroker/audit/models.go
Normal file
@@ -0,0 +1,102 @@
|
||||
package audit
|
||||
|
||||
// Main info about audit
|
||||
type ItemAudit struct {
|
||||
// Call
|
||||
Call string `json:"call"`
|
||||
|
||||
// GUID
|
||||
GUID string `json:"guid"`
|
||||
|
||||
// Response time
|
||||
ResponseTime float64 `json:"responsetime"`
|
||||
|
||||
// Status code
|
||||
StatusCode uint64 `json:"statuscode"`
|
||||
|
||||
// Timestamp
|
||||
Timestamp float64 `json:"timestamp"`
|
||||
|
||||
// User
|
||||
User string `json:"user"`
|
||||
}
|
||||
|
||||
// List of audits
|
||||
type ListAudits struct {
|
||||
// Data
|
||||
Data []ItemAudit `json:"data"`
|
||||
|
||||
// EntryCount
|
||||
EntryCount uint64 `json:"entryCount"`
|
||||
}
|
||||
|
||||
// Main info about audit
|
||||
type RecordAudit struct {
|
||||
|
||||
// Apitask
|
||||
Apitask string `json:"apitask"`
|
||||
|
||||
// Arguments
|
||||
Arguments string `json:"args"`
|
||||
|
||||
// Call
|
||||
Call string `json:"call"`
|
||||
|
||||
// GUID
|
||||
GUID string `json:"guid"`
|
||||
|
||||
// Kwargs
|
||||
Kwargs string `json:"kwargs"`
|
||||
|
||||
// RemoteAddr
|
||||
RemoteAddr string `json:"remote_addr"`
|
||||
|
||||
// Response time
|
||||
ResponseTime float64 `json:"responsetime"`
|
||||
|
||||
// Result
|
||||
Result string `json:"result"`
|
||||
|
||||
// Status code
|
||||
StatusCode uint64 `json:"statuscode"`
|
||||
|
||||
// Tags
|
||||
Tags string `json:"tags"`
|
||||
|
||||
// Timestamp
|
||||
Timestamp float64 `json:"timestamp"`
|
||||
|
||||
// TimestampEnd
|
||||
TimestampEnd float64 `json:"timestampEnd"`
|
||||
|
||||
// User
|
||||
User string `json:"user"`
|
||||
}
|
||||
|
||||
// List of Linked Jobs
|
||||
type ListLinkedJobs []ItemLinkedJobs
|
||||
|
||||
// Main info about Linked Jobs
|
||||
type ItemLinkedJobs struct {
|
||||
|
||||
// CMD
|
||||
CMD string `json:"cmd"`
|
||||
|
||||
// NID
|
||||
NID uint64 `json:"nid"`
|
||||
|
||||
// state
|
||||
State string `json:"state"`
|
||||
|
||||
// TimeCreate
|
||||
TimeCreate uint64 `json:"timeCreate"`
|
||||
|
||||
// TimeStart
|
||||
TimeStart uint64 `json:"timeStart"`
|
||||
|
||||
// TimeStop
|
||||
TimeStop uint64 `json:"timeStop"`
|
||||
|
||||
// Timeout
|
||||
Timeout uint64 `json:"timeout"`
|
||||
}
|
||||
Reference in New Issue
Block a user