Skip to main content

nominal_api/conjure/endpoints/event/
event_service.rs

1use conjure_http::endpoint;
2/// An Event is an annotated moment or time range.
3/// The Event Service is responsible for creating and retrieving events for a particular data source.
4#[conjure_http::conjure_endpoints(name = "EventService", use_legacy_error_serialization)]
5pub trait EventService {
6    /// Creates an event.
7    #[endpoint(
8        method = POST,
9        path = "/event/v1/events",
10        name = "createEvent",
11        produces = conjure_http::server::StdResponseSerializer
12    )]
13    fn create_event(
14        &self,
15        #[auth]
16        auth_: conjure_object::BearerToken,
17        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
18        request: super::super::super::objects::event::CreateEvent,
19    ) -> Result<
20        super::super::super::objects::event::Event,
21        conjure_http::private::Error,
22    >;
23    /// Gets a set of events by UUIDs
24    #[endpoint(
25        method = POST,
26        path = "/event/v1/get-events",
27        name = "getEvents",
28        produces = conjure_http::server::conjure::CollectionResponseSerializer
29    )]
30    fn get_events(
31        &self,
32        #[auth]
33        auth_: conjure_object::BearerToken,
34        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
35        request: super::super::super::objects::event::GetEvents,
36    ) -> Result<
37        std::collections::BTreeSet<super::super::super::objects::event::Event>,
38        conjure_http::private::Error,
39    >;
40    /// Gets a set of events by RID.
41    #[endpoint(
42        method = POST,
43        path = "/event/v1/events/batch-get",
44        name = "batchGetEvents",
45        produces = conjure_http::server::conjure::CollectionResponseSerializer
46    )]
47    fn batch_get_events(
48        &self,
49        #[auth]
50        auth_: conjure_object::BearerToken,
51        #[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
52        request: std::collections::BTreeSet<
53            super::super::super::objects::api::rids::EventRid,
54        >,
55    ) -> Result<
56        std::collections::BTreeSet<super::super::super::objects::event::Event>,
57        conjure_http::private::Error,
58    >;
59    /// Gets a filtered set of events by RID and search filters.
60    #[endpoint(
61        method = POST,
62        path = "/event/v1/events/batch-filter-get",
63        name = "batchFilterEvents",
64        produces = conjure_http::server::conjure::CollectionResponseSerializer
65    )]
66    fn batch_filter_events(
67        &self,
68        #[auth]
69        auth_: conjure_object::BearerToken,
70        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
71        request: super::super::super::objects::event::BatchFilterEventsRequest,
72    ) -> Result<
73        std::collections::BTreeSet<super::super::super::objects::event::Event>,
74        conjure_http::private::Error,
75    >;
76    /// Updates the fields of an event. Empty fields are left unchanged.
77    #[endpoint(
78        method = POST,
79        path = "/event/v1/update-event",
80        name = "updateEvent",
81        produces = conjure_http::server::StdResponseSerializer
82    )]
83    fn update_event(
84        &self,
85        #[auth]
86        auth_: conjure_object::BearerToken,
87        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
88        request: super::super::super::objects::event::UpdateEvent,
89    ) -> Result<
90        super::super::super::objects::event::Event,
91        conjure_http::private::Error,
92    >;
93    /// Updates the fields of an event specified by each request in the batch.
94    /// Empty fields in the UpdateEventRequest are left unchanged.
95    #[endpoint(
96        method = POST,
97        path = "/event/v1/events/batch-update",
98        name = "batchUpdateEvent",
99        produces = conjure_http::server::StdResponseSerializer
100    )]
101    fn batch_update_event(
102        &self,
103        #[auth]
104        auth_: conjure_object::BearerToken,
105        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
106        request: super::super::super::objects::event::BatchUpdateEventRequest,
107    ) -> Result<
108        super::super::super::objects::event::BatchUpdateEventResponse,
109        conjure_http::private::Error,
110    >;
111    /// Updates the disposition of an event.
112    #[endpoint(
113        method = POST,
114        path = "/event/v1/update-disposition",
115        name = "batchUpdateDisposition",
116        produces = conjure_http::server::StdResponseSerializer
117    )]
118    fn batch_update_disposition(
119        &self,
120        #[auth]
121        auth_: conjure_object::BearerToken,
122        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
123        request: super::super::super::objects::event::BatchUpdateDispositionRequest,
124    ) -> Result<
125        super::super::super::objects::event::BatchUpdateDispositionResponse,
126        conjure_http::private::Error,
127    >;
128    /// Archives an event
129    #[endpoint(method = POST, path = "/event/v1/archive-event", name = "archiveEvent")]
130    fn archive_event(
131        &self,
132        #[auth]
133        auth_: conjure_object::BearerToken,
134        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
135        request: super::super::super::objects::event::ArchiveEvent,
136    ) -> Result<(), conjure_http::private::Error>;
137    /// Archives a set of events
138    #[endpoint(
139        method = POST,
140        path = "/event/v1/batch-archive-events",
141        name = "batchArchiveEvent"
142    )]
143    fn batch_archive_event(
144        &self,
145        #[auth]
146        auth_: conjure_object::BearerToken,
147        #[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
148        request: std::collections::BTreeSet<
149            super::super::super::objects::api::rids::EventRid,
150        >,
151    ) -> Result<(), conjure_http::private::Error>;
152    /// Unarchives a set of events
153    #[endpoint(
154        method = POST,
155        path = "/event/v1/batch-unarchive-events",
156        name = "batchUnarchiveEvent"
157    )]
158    fn batch_unarchive_event(
159        &self,
160        #[auth]
161        auth_: conjure_object::BearerToken,
162        #[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
163        request: std::collections::BTreeSet<
164            super::super::super::objects::api::rids::EventRid,
165        >,
166    ) -> Result<(), conjure_http::private::Error>;
167    /// Searches for events that match the given filters.
168    #[endpoint(
169        method = POST,
170        path = "/event/v1/search-events",
171        name = "searchEvents",
172        produces = conjure_http::server::StdResponseSerializer
173    )]
174    fn search_events(
175        &self,
176        #[auth]
177        auth_: conjure_object::BearerToken,
178        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
179        request: super::super::super::objects::event::SearchEventsRequest,
180    ) -> Result<
181        super::super::super::objects::event::SearchEventsResponse,
182        conjure_http::private::Error,
183    >;
184    /// Searches for events matching the given filter and aggregates them based on the requested functions.
185    #[endpoint(
186        method = POST,
187        path = "/event/v1/aggregate-events",
188        name = "aggregateEvents",
189        produces = conjure_http::server::StdResponseSerializer
190    )]
191    fn aggregate_events(
192        &self,
193        #[auth]
194        auth_: conjure_object::BearerToken,
195        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
196        request: super::super::super::objects::event::AggregateEventsRequest,
197    ) -> Result<
198        super::super::super::objects::event::AggregateEventsResponse,
199        conjure_http::private::Error,
200    >;
201    /// Searches for events matching the given filter and aggregates them based on the requested functions.
202    /// Returns a list of responses in same order as the batched requests.
203    #[endpoint(
204        method = POST,
205        path = "/event/v1/aggregate-events/batch",
206        name = "batchAggregateEvents",
207        produces = conjure_http::server::StdResponseSerializer
208    )]
209    fn batch_aggregate_events(
210        &self,
211        #[auth]
212        auth_: conjure_object::BearerToken,
213        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
214        request: super::super::super::objects::event::BatchAggregateEventsRequest,
215    ) -> Result<
216        super::super::super::objects::event::BatchAggregateEventsResponse,
217        conjure_http::private::Error,
218    >;
219    /// Gets a histogram of events that match the given filters.
220    #[endpoint(
221        method = POST,
222        path = "/event/v1/histogram",
223        name = "getEventsHistogram",
224        produces = conjure_http::server::StdResponseSerializer
225    )]
226    fn get_events_histogram(
227        &self,
228        #[auth]
229        auth_: conjure_object::BearerToken,
230        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
231        request: super::super::super::objects::event::EventsHistogramRequest,
232    ) -> Result<
233        super::super::super::objects::event::EventsHistogramResponse,
234        conjure_http::private::Error,
235    >;
236    /// Lists the properties and labels of all events in the provided workspaces.
237    #[endpoint(
238        method = POST,
239        path = "/event/v1/list-properties-labels",
240        name = "listPropertiesAndLabels",
241        produces = conjure_http::server::StdResponseSerializer
242    )]
243    fn list_properties_and_labels(
244        &self,
245        #[auth]
246        auth_: conjure_object::BearerToken,
247        #[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
248        request: super::super::super::objects::event::ListPropertiesAndLabelsRequest,
249    ) -> Result<
250        super::super::super::objects::scout::metadata::ListPropertiesAndLabelsResponse,
251        conjure_http::private::Error,
252    >;
253}
254/// An Event is an annotated moment or time range.
255/// The Event Service is responsible for creating and retrieving events for a particular data source.
256#[conjure_http::conjure_endpoints(name = "EventService", use_legacy_error_serialization)]
257pub trait AsyncEventService {
258    /// Creates an event.
259    #[endpoint(
260        method = POST,
261        path = "/event/v1/events",
262        name = "createEvent",
263        produces = conjure_http::server::StdResponseSerializer
264    )]
265    async fn create_event(
266        &self,
267        #[auth]
268        auth_: conjure_object::BearerToken,
269        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
270        request: super::super::super::objects::event::CreateEvent,
271    ) -> Result<
272        super::super::super::objects::event::Event,
273        conjure_http::private::Error,
274    >;
275    /// Gets a set of events by UUIDs
276    #[endpoint(
277        method = POST,
278        path = "/event/v1/get-events",
279        name = "getEvents",
280        produces = conjure_http::server::conjure::CollectionResponseSerializer
281    )]
282    async fn get_events(
283        &self,
284        #[auth]
285        auth_: conjure_object::BearerToken,
286        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
287        request: super::super::super::objects::event::GetEvents,
288    ) -> Result<
289        std::collections::BTreeSet<super::super::super::objects::event::Event>,
290        conjure_http::private::Error,
291    >;
292    /// Gets a set of events by RID.
293    #[endpoint(
294        method = POST,
295        path = "/event/v1/events/batch-get",
296        name = "batchGetEvents",
297        produces = conjure_http::server::conjure::CollectionResponseSerializer
298    )]
299    async fn batch_get_events(
300        &self,
301        #[auth]
302        auth_: conjure_object::BearerToken,
303        #[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
304        request: std::collections::BTreeSet<
305            super::super::super::objects::api::rids::EventRid,
306        >,
307    ) -> Result<
308        std::collections::BTreeSet<super::super::super::objects::event::Event>,
309        conjure_http::private::Error,
310    >;
311    /// Gets a filtered set of events by RID and search filters.
312    #[endpoint(
313        method = POST,
314        path = "/event/v1/events/batch-filter-get",
315        name = "batchFilterEvents",
316        produces = conjure_http::server::conjure::CollectionResponseSerializer
317    )]
318    async fn batch_filter_events(
319        &self,
320        #[auth]
321        auth_: conjure_object::BearerToken,
322        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
323        request: super::super::super::objects::event::BatchFilterEventsRequest,
324    ) -> Result<
325        std::collections::BTreeSet<super::super::super::objects::event::Event>,
326        conjure_http::private::Error,
327    >;
328    /// Updates the fields of an event. Empty fields are left unchanged.
329    #[endpoint(
330        method = POST,
331        path = "/event/v1/update-event",
332        name = "updateEvent",
333        produces = conjure_http::server::StdResponseSerializer
334    )]
335    async fn update_event(
336        &self,
337        #[auth]
338        auth_: conjure_object::BearerToken,
339        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
340        request: super::super::super::objects::event::UpdateEvent,
341    ) -> Result<
342        super::super::super::objects::event::Event,
343        conjure_http::private::Error,
344    >;
345    /// Updates the fields of an event specified by each request in the batch.
346    /// Empty fields in the UpdateEventRequest are left unchanged.
347    #[endpoint(
348        method = POST,
349        path = "/event/v1/events/batch-update",
350        name = "batchUpdateEvent",
351        produces = conjure_http::server::StdResponseSerializer
352    )]
353    async fn batch_update_event(
354        &self,
355        #[auth]
356        auth_: conjure_object::BearerToken,
357        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
358        request: super::super::super::objects::event::BatchUpdateEventRequest,
359    ) -> Result<
360        super::super::super::objects::event::BatchUpdateEventResponse,
361        conjure_http::private::Error,
362    >;
363    /// Updates the disposition of an event.
364    #[endpoint(
365        method = POST,
366        path = "/event/v1/update-disposition",
367        name = "batchUpdateDisposition",
368        produces = conjure_http::server::StdResponseSerializer
369    )]
370    async fn batch_update_disposition(
371        &self,
372        #[auth]
373        auth_: conjure_object::BearerToken,
374        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
375        request: super::super::super::objects::event::BatchUpdateDispositionRequest,
376    ) -> Result<
377        super::super::super::objects::event::BatchUpdateDispositionResponse,
378        conjure_http::private::Error,
379    >;
380    /// Archives an event
381    #[endpoint(method = POST, path = "/event/v1/archive-event", name = "archiveEvent")]
382    async fn archive_event(
383        &self,
384        #[auth]
385        auth_: conjure_object::BearerToken,
386        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
387        request: super::super::super::objects::event::ArchiveEvent,
388    ) -> Result<(), conjure_http::private::Error>;
389    /// Archives a set of events
390    #[endpoint(
391        method = POST,
392        path = "/event/v1/batch-archive-events",
393        name = "batchArchiveEvent"
394    )]
395    async fn batch_archive_event(
396        &self,
397        #[auth]
398        auth_: conjure_object::BearerToken,
399        #[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
400        request: std::collections::BTreeSet<
401            super::super::super::objects::api::rids::EventRid,
402        >,
403    ) -> Result<(), conjure_http::private::Error>;
404    /// Unarchives a set of events
405    #[endpoint(
406        method = POST,
407        path = "/event/v1/batch-unarchive-events",
408        name = "batchUnarchiveEvent"
409    )]
410    async fn batch_unarchive_event(
411        &self,
412        #[auth]
413        auth_: conjure_object::BearerToken,
414        #[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
415        request: std::collections::BTreeSet<
416            super::super::super::objects::api::rids::EventRid,
417        >,
418    ) -> Result<(), conjure_http::private::Error>;
419    /// Searches for events that match the given filters.
420    #[endpoint(
421        method = POST,
422        path = "/event/v1/search-events",
423        name = "searchEvents",
424        produces = conjure_http::server::StdResponseSerializer
425    )]
426    async fn search_events(
427        &self,
428        #[auth]
429        auth_: conjure_object::BearerToken,
430        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
431        request: super::super::super::objects::event::SearchEventsRequest,
432    ) -> Result<
433        super::super::super::objects::event::SearchEventsResponse,
434        conjure_http::private::Error,
435    >;
436    /// Searches for events matching the given filter and aggregates them based on the requested functions.
437    #[endpoint(
438        method = POST,
439        path = "/event/v1/aggregate-events",
440        name = "aggregateEvents",
441        produces = conjure_http::server::StdResponseSerializer
442    )]
443    async fn aggregate_events(
444        &self,
445        #[auth]
446        auth_: conjure_object::BearerToken,
447        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
448        request: super::super::super::objects::event::AggregateEventsRequest,
449    ) -> Result<
450        super::super::super::objects::event::AggregateEventsResponse,
451        conjure_http::private::Error,
452    >;
453    /// Searches for events matching the given filter and aggregates them based on the requested functions.
454    /// Returns a list of responses in same order as the batched requests.
455    #[endpoint(
456        method = POST,
457        path = "/event/v1/aggregate-events/batch",
458        name = "batchAggregateEvents",
459        produces = conjure_http::server::StdResponseSerializer
460    )]
461    async fn batch_aggregate_events(
462        &self,
463        #[auth]
464        auth_: conjure_object::BearerToken,
465        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
466        request: super::super::super::objects::event::BatchAggregateEventsRequest,
467    ) -> Result<
468        super::super::super::objects::event::BatchAggregateEventsResponse,
469        conjure_http::private::Error,
470    >;
471    /// Gets a histogram of events that match the given filters.
472    #[endpoint(
473        method = POST,
474        path = "/event/v1/histogram",
475        name = "getEventsHistogram",
476        produces = conjure_http::server::StdResponseSerializer
477    )]
478    async fn get_events_histogram(
479        &self,
480        #[auth]
481        auth_: conjure_object::BearerToken,
482        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
483        request: super::super::super::objects::event::EventsHistogramRequest,
484    ) -> Result<
485        super::super::super::objects::event::EventsHistogramResponse,
486        conjure_http::private::Error,
487    >;
488    /// Lists the properties and labels of all events in the provided workspaces.
489    #[endpoint(
490        method = POST,
491        path = "/event/v1/list-properties-labels",
492        name = "listPropertiesAndLabels",
493        produces = conjure_http::server::StdResponseSerializer
494    )]
495    async fn list_properties_and_labels(
496        &self,
497        #[auth]
498        auth_: conjure_object::BearerToken,
499        #[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
500        request: super::super::super::objects::event::ListPropertiesAndLabelsRequest,
501    ) -> Result<
502        super::super::super::objects::scout::metadata::ListPropertiesAndLabelsResponse,
503        conjure_http::private::Error,
504    >;
505}
506/// An Event is an annotated moment or time range.
507/// The Event Service is responsible for creating and retrieving events for a particular data source.
508#[conjure_http::conjure_endpoints(
509    name = "EventService",
510    use_legacy_error_serialization,
511    local
512)]
513pub trait LocalAsyncEventService {
514    /// Creates an event.
515    #[endpoint(
516        method = POST,
517        path = "/event/v1/events",
518        name = "createEvent",
519        produces = conjure_http::server::StdResponseSerializer
520    )]
521    async fn create_event(
522        &self,
523        #[auth]
524        auth_: conjure_object::BearerToken,
525        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
526        request: super::super::super::objects::event::CreateEvent,
527    ) -> Result<
528        super::super::super::objects::event::Event,
529        conjure_http::private::Error,
530    >;
531    /// Gets a set of events by UUIDs
532    #[endpoint(
533        method = POST,
534        path = "/event/v1/get-events",
535        name = "getEvents",
536        produces = conjure_http::server::conjure::CollectionResponseSerializer
537    )]
538    async fn get_events(
539        &self,
540        #[auth]
541        auth_: conjure_object::BearerToken,
542        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
543        request: super::super::super::objects::event::GetEvents,
544    ) -> Result<
545        std::collections::BTreeSet<super::super::super::objects::event::Event>,
546        conjure_http::private::Error,
547    >;
548    /// Gets a set of events by RID.
549    #[endpoint(
550        method = POST,
551        path = "/event/v1/events/batch-get",
552        name = "batchGetEvents",
553        produces = conjure_http::server::conjure::CollectionResponseSerializer
554    )]
555    async fn batch_get_events(
556        &self,
557        #[auth]
558        auth_: conjure_object::BearerToken,
559        #[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
560        request: std::collections::BTreeSet<
561            super::super::super::objects::api::rids::EventRid,
562        >,
563    ) -> Result<
564        std::collections::BTreeSet<super::super::super::objects::event::Event>,
565        conjure_http::private::Error,
566    >;
567    /// Gets a filtered set of events by RID and search filters.
568    #[endpoint(
569        method = POST,
570        path = "/event/v1/events/batch-filter-get",
571        name = "batchFilterEvents",
572        produces = conjure_http::server::conjure::CollectionResponseSerializer
573    )]
574    async fn batch_filter_events(
575        &self,
576        #[auth]
577        auth_: conjure_object::BearerToken,
578        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
579        request: super::super::super::objects::event::BatchFilterEventsRequest,
580    ) -> Result<
581        std::collections::BTreeSet<super::super::super::objects::event::Event>,
582        conjure_http::private::Error,
583    >;
584    /// Updates the fields of an event. Empty fields are left unchanged.
585    #[endpoint(
586        method = POST,
587        path = "/event/v1/update-event",
588        name = "updateEvent",
589        produces = conjure_http::server::StdResponseSerializer
590    )]
591    async fn update_event(
592        &self,
593        #[auth]
594        auth_: conjure_object::BearerToken,
595        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
596        request: super::super::super::objects::event::UpdateEvent,
597    ) -> Result<
598        super::super::super::objects::event::Event,
599        conjure_http::private::Error,
600    >;
601    /// Updates the fields of an event specified by each request in the batch.
602    /// Empty fields in the UpdateEventRequest are left unchanged.
603    #[endpoint(
604        method = POST,
605        path = "/event/v1/events/batch-update",
606        name = "batchUpdateEvent",
607        produces = conjure_http::server::StdResponseSerializer
608    )]
609    async fn batch_update_event(
610        &self,
611        #[auth]
612        auth_: conjure_object::BearerToken,
613        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
614        request: super::super::super::objects::event::BatchUpdateEventRequest,
615    ) -> Result<
616        super::super::super::objects::event::BatchUpdateEventResponse,
617        conjure_http::private::Error,
618    >;
619    /// Updates the disposition of an event.
620    #[endpoint(
621        method = POST,
622        path = "/event/v1/update-disposition",
623        name = "batchUpdateDisposition",
624        produces = conjure_http::server::StdResponseSerializer
625    )]
626    async fn batch_update_disposition(
627        &self,
628        #[auth]
629        auth_: conjure_object::BearerToken,
630        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
631        request: super::super::super::objects::event::BatchUpdateDispositionRequest,
632    ) -> Result<
633        super::super::super::objects::event::BatchUpdateDispositionResponse,
634        conjure_http::private::Error,
635    >;
636    /// Archives an event
637    #[endpoint(method = POST, path = "/event/v1/archive-event", name = "archiveEvent")]
638    async fn archive_event(
639        &self,
640        #[auth]
641        auth_: conjure_object::BearerToken,
642        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
643        request: super::super::super::objects::event::ArchiveEvent,
644    ) -> Result<(), conjure_http::private::Error>;
645    /// Archives a set of events
646    #[endpoint(
647        method = POST,
648        path = "/event/v1/batch-archive-events",
649        name = "batchArchiveEvent"
650    )]
651    async fn batch_archive_event(
652        &self,
653        #[auth]
654        auth_: conjure_object::BearerToken,
655        #[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
656        request: std::collections::BTreeSet<
657            super::super::super::objects::api::rids::EventRid,
658        >,
659    ) -> Result<(), conjure_http::private::Error>;
660    /// Unarchives a set of events
661    #[endpoint(
662        method = POST,
663        path = "/event/v1/batch-unarchive-events",
664        name = "batchUnarchiveEvent"
665    )]
666    async fn batch_unarchive_event(
667        &self,
668        #[auth]
669        auth_: conjure_object::BearerToken,
670        #[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
671        request: std::collections::BTreeSet<
672            super::super::super::objects::api::rids::EventRid,
673        >,
674    ) -> Result<(), conjure_http::private::Error>;
675    /// Searches for events that match the given filters.
676    #[endpoint(
677        method = POST,
678        path = "/event/v1/search-events",
679        name = "searchEvents",
680        produces = conjure_http::server::StdResponseSerializer
681    )]
682    async fn search_events(
683        &self,
684        #[auth]
685        auth_: conjure_object::BearerToken,
686        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
687        request: super::super::super::objects::event::SearchEventsRequest,
688    ) -> Result<
689        super::super::super::objects::event::SearchEventsResponse,
690        conjure_http::private::Error,
691    >;
692    /// Searches for events matching the given filter and aggregates them based on the requested functions.
693    #[endpoint(
694        method = POST,
695        path = "/event/v1/aggregate-events",
696        name = "aggregateEvents",
697        produces = conjure_http::server::StdResponseSerializer
698    )]
699    async fn aggregate_events(
700        &self,
701        #[auth]
702        auth_: conjure_object::BearerToken,
703        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
704        request: super::super::super::objects::event::AggregateEventsRequest,
705    ) -> Result<
706        super::super::super::objects::event::AggregateEventsResponse,
707        conjure_http::private::Error,
708    >;
709    /// Searches for events matching the given filter and aggregates them based on the requested functions.
710    /// Returns a list of responses in same order as the batched requests.
711    #[endpoint(
712        method = POST,
713        path = "/event/v1/aggregate-events/batch",
714        name = "batchAggregateEvents",
715        produces = conjure_http::server::StdResponseSerializer
716    )]
717    async fn batch_aggregate_events(
718        &self,
719        #[auth]
720        auth_: conjure_object::BearerToken,
721        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
722        request: super::super::super::objects::event::BatchAggregateEventsRequest,
723    ) -> Result<
724        super::super::super::objects::event::BatchAggregateEventsResponse,
725        conjure_http::private::Error,
726    >;
727    /// Gets a histogram of events that match the given filters.
728    #[endpoint(
729        method = POST,
730        path = "/event/v1/histogram",
731        name = "getEventsHistogram",
732        produces = conjure_http::server::StdResponseSerializer
733    )]
734    async fn get_events_histogram(
735        &self,
736        #[auth]
737        auth_: conjure_object::BearerToken,
738        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
739        request: super::super::super::objects::event::EventsHistogramRequest,
740    ) -> Result<
741        super::super::super::objects::event::EventsHistogramResponse,
742        conjure_http::private::Error,
743    >;
744    /// Lists the properties and labels of all events in the provided workspaces.
745    #[endpoint(
746        method = POST,
747        path = "/event/v1/list-properties-labels",
748        name = "listPropertiesAndLabels",
749        produces = conjure_http::server::StdResponseSerializer
750    )]
751    async fn list_properties_and_labels(
752        &self,
753        #[auth]
754        auth_: conjure_object::BearerToken,
755        #[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
756        request: super::super::super::objects::event::ListPropertiesAndLabelsRequest,
757    ) -> Result<
758        super::super::super::objects::scout::metadata::ListPropertiesAndLabelsResponse,
759        conjure_http::private::Error,
760    >;
761}