Skip to main content

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