Skip to main content

nominal_api_conjure/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 active events in the provided workspaces.
237    /// Returns up to 500 of the most-used labels, and up to 500 of the most-used values for each property key.
238    /// Property keys are not capped. Response maps and sets are unordered.
239    #[endpoint(
240        method = POST,
241        path = "/event/v1/list-properties-labels",
242        name = "listPropertiesAndLabels",
243        produces = conjure_http::server::StdResponseSerializer
244    )]
245    fn list_properties_and_labels(
246        &self,
247        #[auth]
248        auth_: conjure_object::BearerToken,
249        #[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
250        request: super::super::super::objects::event::ListPropertiesAndLabelsRequest,
251    ) -> Result<
252        super::super::super::objects::scout::metadata::ListPropertiesAndLabelsResponse,
253        conjure_http::private::Error,
254    >;
255}
256/// An Event is an annotated moment or time range.
257/// The Event Service is responsible for creating and retrieving events for a particular data source.
258#[conjure_http::conjure_endpoints(name = "EventService", use_legacy_error_serialization)]
259pub trait AsyncEventService {
260    /// Creates an event.
261    #[endpoint(
262        method = POST,
263        path = "/event/v1/events",
264        name = "createEvent",
265        produces = conjure_http::server::StdResponseSerializer
266    )]
267    async fn create_event(
268        &self,
269        #[auth]
270        auth_: conjure_object::BearerToken,
271        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
272        request: super::super::super::objects::event::CreateEvent,
273    ) -> Result<
274        super::super::super::objects::event::Event,
275        conjure_http::private::Error,
276    >;
277    /// Gets a set of events by UUIDs
278    #[endpoint(
279        method = POST,
280        path = "/event/v1/get-events",
281        name = "getEvents",
282        produces = conjure_http::server::conjure::CollectionResponseSerializer
283    )]
284    async fn get_events(
285        &self,
286        #[auth]
287        auth_: conjure_object::BearerToken,
288        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
289        request: super::super::super::objects::event::GetEvents,
290    ) -> Result<
291        std::collections::BTreeSet<super::super::super::objects::event::Event>,
292        conjure_http::private::Error,
293    >;
294    /// Gets a set of events by RID.
295    #[endpoint(
296        method = POST,
297        path = "/event/v1/events/batch-get",
298        name = "batchGetEvents",
299        produces = conjure_http::server::conjure::CollectionResponseSerializer
300    )]
301    async fn batch_get_events(
302        &self,
303        #[auth]
304        auth_: conjure_object::BearerToken,
305        #[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
306        request: std::collections::BTreeSet<
307            super::super::super::objects::api::rids::EventRid,
308        >,
309    ) -> Result<
310        std::collections::BTreeSet<super::super::super::objects::event::Event>,
311        conjure_http::private::Error,
312    >;
313    /// Gets a filtered set of events by RID and search filters.
314    #[endpoint(
315        method = POST,
316        path = "/event/v1/events/batch-filter-get",
317        name = "batchFilterEvents",
318        produces = conjure_http::server::conjure::CollectionResponseSerializer
319    )]
320    async fn batch_filter_events(
321        &self,
322        #[auth]
323        auth_: conjure_object::BearerToken,
324        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
325        request: super::super::super::objects::event::BatchFilterEventsRequest,
326    ) -> Result<
327        std::collections::BTreeSet<super::super::super::objects::event::Event>,
328        conjure_http::private::Error,
329    >;
330    /// Updates the fields of an event. Empty fields are left unchanged.
331    #[endpoint(
332        method = POST,
333        path = "/event/v1/update-event",
334        name = "updateEvent",
335        produces = conjure_http::server::StdResponseSerializer
336    )]
337    async fn update_event(
338        &self,
339        #[auth]
340        auth_: conjure_object::BearerToken,
341        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
342        request: super::super::super::objects::event::UpdateEvent,
343    ) -> Result<
344        super::super::super::objects::event::Event,
345        conjure_http::private::Error,
346    >;
347    /// Updates the fields of an event specified by each request in the batch.
348    /// Empty fields in the UpdateEventRequest are left unchanged.
349    #[endpoint(
350        method = POST,
351        path = "/event/v1/events/batch-update",
352        name = "batchUpdateEvent",
353        produces = conjure_http::server::StdResponseSerializer
354    )]
355    async fn batch_update_event(
356        &self,
357        #[auth]
358        auth_: conjure_object::BearerToken,
359        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
360        request: super::super::super::objects::event::BatchUpdateEventRequest,
361    ) -> Result<
362        super::super::super::objects::event::BatchUpdateEventResponse,
363        conjure_http::private::Error,
364    >;
365    /// Updates the disposition of an event.
366    #[endpoint(
367        method = POST,
368        path = "/event/v1/update-disposition",
369        name = "batchUpdateDisposition",
370        produces = conjure_http::server::StdResponseSerializer
371    )]
372    async fn batch_update_disposition(
373        &self,
374        #[auth]
375        auth_: conjure_object::BearerToken,
376        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
377        request: super::super::super::objects::event::BatchUpdateDispositionRequest,
378    ) -> Result<
379        super::super::super::objects::event::BatchUpdateDispositionResponse,
380        conjure_http::private::Error,
381    >;
382    /// Archives an event
383    #[endpoint(method = POST, path = "/event/v1/archive-event", name = "archiveEvent")]
384    async fn archive_event(
385        &self,
386        #[auth]
387        auth_: conjure_object::BearerToken,
388        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
389        request: super::super::super::objects::event::ArchiveEvent,
390    ) -> Result<(), conjure_http::private::Error>;
391    /// Archives a set of events
392    #[endpoint(
393        method = POST,
394        path = "/event/v1/batch-archive-events",
395        name = "batchArchiveEvent"
396    )]
397    async fn batch_archive_event(
398        &self,
399        #[auth]
400        auth_: conjure_object::BearerToken,
401        #[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
402        request: std::collections::BTreeSet<
403            super::super::super::objects::api::rids::EventRid,
404        >,
405    ) -> Result<(), conjure_http::private::Error>;
406    /// Unarchives a set of events
407    #[endpoint(
408        method = POST,
409        path = "/event/v1/batch-unarchive-events",
410        name = "batchUnarchiveEvent"
411    )]
412    async fn batch_unarchive_event(
413        &self,
414        #[auth]
415        auth_: conjure_object::BearerToken,
416        #[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
417        request: std::collections::BTreeSet<
418            super::super::super::objects::api::rids::EventRid,
419        >,
420    ) -> Result<(), conjure_http::private::Error>;
421    /// Searches for events that match the given filters.
422    #[endpoint(
423        method = POST,
424        path = "/event/v1/search-events",
425        name = "searchEvents",
426        produces = conjure_http::server::StdResponseSerializer
427    )]
428    async fn search_events(
429        &self,
430        #[auth]
431        auth_: conjure_object::BearerToken,
432        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
433        request: super::super::super::objects::event::SearchEventsRequest,
434    ) -> Result<
435        super::super::super::objects::event::SearchEventsResponse,
436        conjure_http::private::Error,
437    >;
438    /// Searches for events matching the given filter and aggregates them based on the requested functions.
439    #[endpoint(
440        method = POST,
441        path = "/event/v1/aggregate-events",
442        name = "aggregateEvents",
443        produces = conjure_http::server::StdResponseSerializer
444    )]
445    async fn aggregate_events(
446        &self,
447        #[auth]
448        auth_: conjure_object::BearerToken,
449        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
450        request: super::super::super::objects::event::AggregateEventsRequest,
451    ) -> Result<
452        super::super::super::objects::event::AggregateEventsResponse,
453        conjure_http::private::Error,
454    >;
455    /// Searches for events matching the given filter and aggregates them based on the requested functions.
456    /// Returns a list of responses in same order as the batched requests.
457    #[endpoint(
458        method = POST,
459        path = "/event/v1/aggregate-events/batch",
460        name = "batchAggregateEvents",
461        produces = conjure_http::server::StdResponseSerializer
462    )]
463    async fn batch_aggregate_events(
464        &self,
465        #[auth]
466        auth_: conjure_object::BearerToken,
467        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
468        request: super::super::super::objects::event::BatchAggregateEventsRequest,
469    ) -> Result<
470        super::super::super::objects::event::BatchAggregateEventsResponse,
471        conjure_http::private::Error,
472    >;
473    /// Gets a histogram of events that match the given filters.
474    #[endpoint(
475        method = POST,
476        path = "/event/v1/histogram",
477        name = "getEventsHistogram",
478        produces = conjure_http::server::StdResponseSerializer
479    )]
480    async fn get_events_histogram(
481        &self,
482        #[auth]
483        auth_: conjure_object::BearerToken,
484        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
485        request: super::super::super::objects::event::EventsHistogramRequest,
486    ) -> Result<
487        super::super::super::objects::event::EventsHistogramResponse,
488        conjure_http::private::Error,
489    >;
490    /// Lists the properties and labels of active events in the provided workspaces.
491    /// Returns up to 500 of the most-used labels, and up to 500 of the most-used values for each property key.
492    /// Property keys are not capped. Response maps and sets are unordered.
493    #[endpoint(
494        method = POST,
495        path = "/event/v1/list-properties-labels",
496        name = "listPropertiesAndLabels",
497        produces = conjure_http::server::StdResponseSerializer
498    )]
499    async fn list_properties_and_labels(
500        &self,
501        #[auth]
502        auth_: conjure_object::BearerToken,
503        #[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
504        request: super::super::super::objects::event::ListPropertiesAndLabelsRequest,
505    ) -> Result<
506        super::super::super::objects::scout::metadata::ListPropertiesAndLabelsResponse,
507        conjure_http::private::Error,
508    >;
509}
510/// An Event is an annotated moment or time range.
511/// The Event Service is responsible for creating and retrieving events for a particular data source.
512#[conjure_http::conjure_endpoints(
513    name = "EventService",
514    use_legacy_error_serialization,
515    local
516)]
517pub trait LocalAsyncEventService {
518    /// Creates an event.
519    #[endpoint(
520        method = POST,
521        path = "/event/v1/events",
522        name = "createEvent",
523        produces = conjure_http::server::StdResponseSerializer
524    )]
525    async fn create_event(
526        &self,
527        #[auth]
528        auth_: conjure_object::BearerToken,
529        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
530        request: super::super::super::objects::event::CreateEvent,
531    ) -> Result<
532        super::super::super::objects::event::Event,
533        conjure_http::private::Error,
534    >;
535    /// Gets a set of events by UUIDs
536    #[endpoint(
537        method = POST,
538        path = "/event/v1/get-events",
539        name = "getEvents",
540        produces = conjure_http::server::conjure::CollectionResponseSerializer
541    )]
542    async fn get_events(
543        &self,
544        #[auth]
545        auth_: conjure_object::BearerToken,
546        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
547        request: super::super::super::objects::event::GetEvents,
548    ) -> Result<
549        std::collections::BTreeSet<super::super::super::objects::event::Event>,
550        conjure_http::private::Error,
551    >;
552    /// Gets a set of events by RID.
553    #[endpoint(
554        method = POST,
555        path = "/event/v1/events/batch-get",
556        name = "batchGetEvents",
557        produces = conjure_http::server::conjure::CollectionResponseSerializer
558    )]
559    async fn batch_get_events(
560        &self,
561        #[auth]
562        auth_: conjure_object::BearerToken,
563        #[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
564        request: std::collections::BTreeSet<
565            super::super::super::objects::api::rids::EventRid,
566        >,
567    ) -> Result<
568        std::collections::BTreeSet<super::super::super::objects::event::Event>,
569        conjure_http::private::Error,
570    >;
571    /// Gets a filtered set of events by RID and search filters.
572    #[endpoint(
573        method = POST,
574        path = "/event/v1/events/batch-filter-get",
575        name = "batchFilterEvents",
576        produces = conjure_http::server::conjure::CollectionResponseSerializer
577    )]
578    async fn batch_filter_events(
579        &self,
580        #[auth]
581        auth_: conjure_object::BearerToken,
582        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
583        request: super::super::super::objects::event::BatchFilterEventsRequest,
584    ) -> Result<
585        std::collections::BTreeSet<super::super::super::objects::event::Event>,
586        conjure_http::private::Error,
587    >;
588    /// Updates the fields of an event. Empty fields are left unchanged.
589    #[endpoint(
590        method = POST,
591        path = "/event/v1/update-event",
592        name = "updateEvent",
593        produces = conjure_http::server::StdResponseSerializer
594    )]
595    async fn 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::UpdateEvent,
601    ) -> Result<
602        super::super::super::objects::event::Event,
603        conjure_http::private::Error,
604    >;
605    /// Updates the fields of an event specified by each request in the batch.
606    /// Empty fields in the UpdateEventRequest are left unchanged.
607    #[endpoint(
608        method = POST,
609        path = "/event/v1/events/batch-update",
610        name = "batchUpdateEvent",
611        produces = conjure_http::server::StdResponseSerializer
612    )]
613    async fn batch_update_event(
614        &self,
615        #[auth]
616        auth_: conjure_object::BearerToken,
617        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
618        request: super::super::super::objects::event::BatchUpdateEventRequest,
619    ) -> Result<
620        super::super::super::objects::event::BatchUpdateEventResponse,
621        conjure_http::private::Error,
622    >;
623    /// Updates the disposition of an event.
624    #[endpoint(
625        method = POST,
626        path = "/event/v1/update-disposition",
627        name = "batchUpdateDisposition",
628        produces = conjure_http::server::StdResponseSerializer
629    )]
630    async fn batch_update_disposition(
631        &self,
632        #[auth]
633        auth_: conjure_object::BearerToken,
634        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
635        request: super::super::super::objects::event::BatchUpdateDispositionRequest,
636    ) -> Result<
637        super::super::super::objects::event::BatchUpdateDispositionResponse,
638        conjure_http::private::Error,
639    >;
640    /// Archives an event
641    #[endpoint(method = POST, path = "/event/v1/archive-event", name = "archiveEvent")]
642    async fn archive_event(
643        &self,
644        #[auth]
645        auth_: conjure_object::BearerToken,
646        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
647        request: super::super::super::objects::event::ArchiveEvent,
648    ) -> Result<(), conjure_http::private::Error>;
649    /// Archives a set of events
650    #[endpoint(
651        method = POST,
652        path = "/event/v1/batch-archive-events",
653        name = "batchArchiveEvent"
654    )]
655    async fn batch_archive_event(
656        &self,
657        #[auth]
658        auth_: conjure_object::BearerToken,
659        #[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
660        request: std::collections::BTreeSet<
661            super::super::super::objects::api::rids::EventRid,
662        >,
663    ) -> Result<(), conjure_http::private::Error>;
664    /// Unarchives a set of events
665    #[endpoint(
666        method = POST,
667        path = "/event/v1/batch-unarchive-events",
668        name = "batchUnarchiveEvent"
669    )]
670    async fn batch_unarchive_event(
671        &self,
672        #[auth]
673        auth_: conjure_object::BearerToken,
674        #[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
675        request: std::collections::BTreeSet<
676            super::super::super::objects::api::rids::EventRid,
677        >,
678    ) -> Result<(), conjure_http::private::Error>;
679    /// Searches for events that match the given filters.
680    #[endpoint(
681        method = POST,
682        path = "/event/v1/search-events",
683        name = "searchEvents",
684        produces = conjure_http::server::StdResponseSerializer
685    )]
686    async fn search_events(
687        &self,
688        #[auth]
689        auth_: conjure_object::BearerToken,
690        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
691        request: super::super::super::objects::event::SearchEventsRequest,
692    ) -> Result<
693        super::super::super::objects::event::SearchEventsResponse,
694        conjure_http::private::Error,
695    >;
696    /// Searches for events matching the given filter and aggregates them based on the requested functions.
697    #[endpoint(
698        method = POST,
699        path = "/event/v1/aggregate-events",
700        name = "aggregateEvents",
701        produces = conjure_http::server::StdResponseSerializer
702    )]
703    async fn aggregate_events(
704        &self,
705        #[auth]
706        auth_: conjure_object::BearerToken,
707        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
708        request: super::super::super::objects::event::AggregateEventsRequest,
709    ) -> Result<
710        super::super::super::objects::event::AggregateEventsResponse,
711        conjure_http::private::Error,
712    >;
713    /// Searches for events matching the given filter and aggregates them based on the requested functions.
714    /// Returns a list of responses in same order as the batched requests.
715    #[endpoint(
716        method = POST,
717        path = "/event/v1/aggregate-events/batch",
718        name = "batchAggregateEvents",
719        produces = conjure_http::server::StdResponseSerializer
720    )]
721    async fn batch_aggregate_events(
722        &self,
723        #[auth]
724        auth_: conjure_object::BearerToken,
725        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
726        request: super::super::super::objects::event::BatchAggregateEventsRequest,
727    ) -> Result<
728        super::super::super::objects::event::BatchAggregateEventsResponse,
729        conjure_http::private::Error,
730    >;
731    /// Gets a histogram of events that match the given filters.
732    #[endpoint(
733        method = POST,
734        path = "/event/v1/histogram",
735        name = "getEventsHistogram",
736        produces = conjure_http::server::StdResponseSerializer
737    )]
738    async fn get_events_histogram(
739        &self,
740        #[auth]
741        auth_: conjure_object::BearerToken,
742        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
743        request: super::super::super::objects::event::EventsHistogramRequest,
744    ) -> Result<
745        super::super::super::objects::event::EventsHistogramResponse,
746        conjure_http::private::Error,
747    >;
748    /// Lists the properties and labels of active events in the provided workspaces.
749    /// Returns up to 500 of the most-used labels, and up to 500 of the most-used values for each property key.
750    /// Property keys are not capped. Response maps and sets are unordered.
751    #[endpoint(
752        method = POST,
753        path = "/event/v1/list-properties-labels",
754        name = "listPropertiesAndLabels",
755        produces = conjure_http::server::StdResponseSerializer
756    )]
757    async fn list_properties_and_labels(
758        &self,
759        #[auth]
760        auth_: conjure_object::BearerToken,
761        #[body(deserializer = conjure_http::server::StdRequestDeserializer, safe)]
762        request: super::super::super::objects::event::ListPropertiesAndLabelsRequest,
763    ) -> Result<
764        super::super::super::objects::scout::metadata::ListPropertiesAndLabelsResponse,
765        conjure_http::private::Error,
766    >;
767}