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