@@ -37,8 +37,32 @@ func NewEventService(opts ...option.RequestOption) (r *EventService) {
3737 return
3838}
3939
40- // ListAuditLogs retrieves a paginated list of audit logs for the specified
41- // organization
40+ // Lists audit logs with filtering and pagination options.
41+ //
42+ // Use this method to:
43+ //
44+ // - View audit history
45+ // - Track user actions
46+ // - Monitor system changes
47+ //
48+ // ### Examples
49+ //
50+ // - List all logs:
51+ //
52+ // ```yaml
53+ // pagination:
54+ // pageSize: 20
55+ // ```
56+ //
57+ // - Filter by actor:
58+ //
59+ // ```yaml
60+ // filter:
61+ // actorIds: ["d2c94c27-3b76-4a42-b88c-95a85e392c68"]
62+ // actorPrincipals: ["PRINCIPAL_USER"]
63+ // pagination:
64+ // pageSize: 20
65+ // ```
4266func (r * EventService ) List (ctx context.Context , params EventListParams , opts ... option.RequestOption ) (res * pagination.EntriesPage [EventListResponse ], err error ) {
4367 var raw * http.Response
4468 opts = append (r .Options [:], opts ... )
@@ -56,13 +80,53 @@ func (r *EventService) List(ctx context.Context, params EventListParams, opts ..
5680 return res , nil
5781}
5882
59- // ListAuditLogs retrieves a paginated list of audit logs for the specified
60- // organization
83+ // Lists audit logs with filtering and pagination options.
84+ //
85+ // Use this method to:
86+ //
87+ // - View audit history
88+ // - Track user actions
89+ // - Monitor system changes
90+ //
91+ // ### Examples
92+ //
93+ // - List all logs:
94+ //
95+ // ```yaml
96+ // pagination:
97+ // pageSize: 20
98+ // ```
99+ //
100+ // - Filter by actor:
101+ //
102+ // ```yaml
103+ // filter:
104+ // actorIds: ["d2c94c27-3b76-4a42-b88c-95a85e392c68"]
105+ // actorPrincipals: ["PRINCIPAL_USER"]
106+ // pagination:
107+ // pageSize: 20
108+ // ```
61109func (r * EventService ) ListAutoPaging (ctx context.Context , params EventListParams , opts ... option.RequestOption ) * pagination.EntriesPageAutoPager [EventListResponse ] {
62110 return pagination .NewEntriesPageAutoPager (r .List (ctx , params , opts ... ))
63111}
64112
65- // WatchEvents streams all requests events to the client
113+ // Streams events for all projects, runners, environments, tasks, and services
114+ // based on the specified scope.
115+ //
116+ // Use this method to:
117+ //
118+ // - Monitor resource changes in real-time
119+ // - Track system events
120+ // - Receive notifications
121+ //
122+ // The scope parameter determines which events to watch:
123+ //
124+ // - Organization scope (default): Watch all organization-wide events including
125+ // projects, runners and environments. Task and service events are not included.
126+ // Use by setting organization=true or omitting the scope.
127+ // - Environment scope: Watch events for a specific environment, including its
128+ // tasks, task executions, and services. Use by setting environment_id to the
129+ // UUID of the environment to watch.
66130func (r * EventService ) WatchStreaming (ctx context.Context , body EventWatchParams , opts ... option.RequestOption ) (stream * jsonl.Stream [EventWatchResponse ]) {
67131 var (
68132 raw * http.Response
0 commit comments