This repository has been archived by the owner on Jul 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
activity_log.go
46 lines (41 loc) · 1.97 KB
/
activity_log.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
package doppler
type (
// ActivityLog represents a doppler activity log.
ActivityLog struct {
ID *string `json:"id,omitempty"` // ID is the unique identifier for the activity log.
Text *string `json:"text,omitempty"` // Text describing the event.
HTML *string `json:"html,omitempty"` // HTML describing the event.
User *User `json:"user,omitempty"` // User is the user that triggered the event.
Project *string `json:"project,omitempty"` // Project is the project that triggered the event.
Environment *string `json:"environment,omitempty"` // Environment is the environment's unique identifier.
Config *string `json:"config,omitempty"` // Config is the config's name.
CreatedAt *string `json:"created_at,omitempty"` // CreatedAt is the time the activity log was created.
}
// ActivityLogGetResponse represents a response from the activity log endpoint.
//
// Method: GET
// Endpoint: https://api.doppler.com/v3/logs
// Docs: https://docs.doppler.com/reference/activity-log-retrieve
ActivityLogGetResponse struct {
APIResponse `json:",inline"`
ActivityLog *ActivityLog `json:"log"`
}
// ActivityLogGetOptions represents the query parameters for an activity log get request.
ActivityLogGetOptions struct {
ID string `url:"log" json:"-"` // ID is the unique identifier for the log object.
}
// ActivityLogListResponse represents a response from the activity log list endpoint.
//
// Method: GET
// Endpoint: https://api.doppler.com/v3/logs
// Docs: https://docs.doppler.com/reference/activity-logs-list
// ActivityLogsListResponse represents a response from the activity logs list endpoint.
ActivityLogListResponse struct {
APIResponse `json:",inline"`
ActivityLogs []*ActivityLog `json:"logs"`
}
// ActivityLogListOptions represents the query parameters for an activity log list request.
ActivityLogListOptions struct {
ListOptions `url:",inline" json:"-"`
}
)