-
Notifications
You must be signed in to change notification settings - Fork 12
/
auditmessage.go
81 lines (47 loc) · 2.08 KB
/
auditmessage.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
package platformclientv2
import (
"encoding/json"
"strconv"
"strings"
)
// Auditmessage
type Auditmessage struct {
// Id - AuditMessage ID.
Id *string `json:"id,omitempty"`
// User
User *Audituser `json:"user,omitempty"`
// CorrelationId - Correlation ID.
CorrelationId *string `json:"correlationId,omitempty"`
// TransactionId - Transaction ID.
TransactionId *string `json:"transactionId,omitempty"`
// TransactionInitiator - Whether or not this audit can be considered the initiator of the transaction it is a part of.
TransactionInitiator *bool `json:"transactionInitiator,omitempty"`
// Application - The application through which the action of this AuditMessage was initiated.
Application *string `json:"application,omitempty"`
// ServiceName - The name of the service which sent this AuditMessage.
ServiceName *string `json:"serviceName,omitempty"`
// Level - The level of this audit. USER or SYSTEM.
Level *string `json:"level,omitempty"`
// Timestamp - The time at which the action of this AuditMessage was initiated.
Timestamp *string `json:"timestamp,omitempty"`
// ReceivedTimestamp - The time at which this AuditMessage was received.
ReceivedTimestamp *string `json:"receivedTimestamp,omitempty"`
// Status - The status of the action of this AuditMessage
Status *string `json:"status,omitempty"`
// ActionContext - The context of a system-level action
ActionContext *string `json:"actionContext,omitempty"`
// Action - A string representing the action that took place
Action *string `json:"action,omitempty"`
// Changes - Details about any changes that occurred in this audit
Changes *[]Change `json:"changes,omitempty"`
// Entity
Entity *Auditentity `json:"entity,omitempty"`
// ServiceContext - The service-specific context associated with this AuditMessage.
ServiceContext *Servicecontext `json:"serviceContext,omitempty"`
}
// String returns a JSON representation of the model
func (o *Auditmessage) String() string {
j, _ := json.Marshal(o)
str, _ := strconv.Unquote(strings.Replace(strconv.Quote(string(j)), `\\u`, `\u`, -1))
return str
}