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