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