use conjure_http::endpoint;
/// An Event is an annotated moment or time range.
/// The Event Service is responsible for creating and retrieving events for a particular data source.
#[conjure_http::conjure_endpoints(name = "EventService", use_legacy_error_serialization)]
pub trait EventService {
    /// Creates an event.
    #[endpoint(
        method = POST,
        path = "/event/v1/events",
        name = "createEvent",
        produces = conjure_http::server::StdResponseSerializer
    )]
    fn create_event(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::CreateEvent,
    ) -> Result<
        super::super::super::objects::event::Event,
        conjure_http::private::Error,
    >;
    /// Gets a set of events by UUIDs
    #[endpoint(
        method = POST,
        path = "/event/v1/get-events",
        name = "getEvents",
        produces = conjure_http::server::conjure::CollectionResponseSerializer
    )]
    fn get_events(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::GetEvents,
    ) -> Result<
        std::collections::BTreeSet<super::super::super::objects::event::Event>,
        conjure_http::private::Error,
    >;
    /// Gets a set of events by RID.
    #[endpoint(
        method = POST,
        path = "/event/v1/events/batch-get",
        name = "batchGetEvents",
        produces = conjure_http::server::conjure::CollectionResponseSerializer
    )]
    fn batch_get_events(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: std::collections::BTreeSet<conjure_object::ResourceIdentifier>,
    ) -> Result<
        std::collections::BTreeSet<super::super::super::objects::event::Event>,
        conjure_http::private::Error,
    >;
    /// Gets a filtered set of events by RID and search filters.
    #[endpoint(
        method = POST,
        path = "/event/v1/events/batch-filter-get",
        name = "batchFilterEvents",
        produces = conjure_http::server::conjure::CollectionResponseSerializer
    )]
    fn batch_filter_events(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::BatchFilterEventsRequest,
    ) -> Result<
        std::collections::BTreeSet<super::super::super::objects::event::Event>,
        conjure_http::private::Error,
    >;
    /// Updates the fields of an event. Empty fields are left unchanged.
    #[endpoint(
        method = POST,
        path = "/event/v1/update-event",
        name = "updateEvent",
        produces = conjure_http::server::StdResponseSerializer
    )]
    fn update_event(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::UpdateEvent,
    ) -> Result<
        super::super::super::objects::event::Event,
        conjure_http::private::Error,
    >;
    /// Updates the fields of an event specified by each request in the batch.
    /// Empty fields in the UpdateEventRequest are left unchanged.
    #[endpoint(
        method = POST,
        path = "/event/v1/events/batch-update",
        name = "batchUpdateEvent",
        produces = conjure_http::server::StdResponseSerializer
    )]
    fn batch_update_event(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::BatchUpdateEventRequest,
    ) -> Result<
        super::super::super::objects::event::BatchUpdateEventResponse,
        conjure_http::private::Error,
    >;
    /// Updates the disposition of an event.
    #[endpoint(
        method = POST,
        path = "/event/v1/update-disposition",
        name = "batchUpdateDisposition",
        produces = conjure_http::server::StdResponseSerializer
    )]
    fn batch_update_disposition(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::BatchUpdateDispositionRequest,
    ) -> Result<
        super::super::super::objects::event::BatchUpdateDispositionResponse,
        conjure_http::private::Error,
    >;
    /// Archives an event
    #[endpoint(method = POST, path = "/event/v1/archive-event", name = "archiveEvent")]
    fn archive_event(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::ArchiveEvent,
    ) -> Result<(), conjure_http::private::Error>;
    /// Archives a set of events
    #[endpoint(
        method = POST,
        path = "/event/v1/batch-archive-events",
        name = "batchArchiveEvent"
    )]
    fn batch_archive_event(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: std::collections::BTreeSet<conjure_object::ResourceIdentifier>,
    ) -> Result<(), conjure_http::private::Error>;
    /// Unarchives a set of events
    #[endpoint(
        method = POST,
        path = "/event/v1/batch-unarchive-events",
        name = "batchUnarchiveEvent"
    )]
    fn batch_unarchive_event(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: std::collections::BTreeSet<conjure_object::ResourceIdentifier>,
    ) -> Result<(), conjure_http::private::Error>;
    /// Searches for events that match the given filters.
    #[endpoint(
        method = POST,
        path = "/event/v1/search-events",
        name = "searchEvents",
        produces = conjure_http::server::StdResponseSerializer
    )]
    fn search_events(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::SearchEventsRequest,
    ) -> Result<
        super::super::super::objects::event::SearchEventsResponse,
        conjure_http::private::Error,
    >;
    /// Searches for events matching the given filter and aggregates them based on the requested functions.
    #[endpoint(
        method = POST,
        path = "/event/v1/aggregate-events",
        name = "aggregateEvents",
        produces = conjure_http::server::StdResponseSerializer
    )]
    fn aggregate_events(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::AggregateEventsRequest,
    ) -> Result<
        super::super::super::objects::event::AggregateEventsResponse,
        conjure_http::private::Error,
    >;
    /// Searches for events matching the given filter and aggregates them based on the requested functions.
    /// Returns a list of responses in same order as the batched requests.
    #[endpoint(
        method = POST,
        path = "/event/v1/aggregate-events/batch",
        name = "batchAggregateEvents",
        produces = conjure_http::server::StdResponseSerializer
    )]
    fn batch_aggregate_events(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::BatchAggregateEventsRequest,
    ) -> Result<
        super::super::super::objects::event::BatchAggregateEventsResponse,
        conjure_http::private::Error,
    >;
    /// Gets a histogram of events that match the given filters.
    #[endpoint(
        method = POST,
        path = "/event/v1/histogram",
        name = "getEventsHistogram",
        produces = conjure_http::server::StdResponseSerializer
    )]
    fn get_events_histogram(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::EventsHistogramRequest,
    ) -> Result<
        super::super::super::objects::event::EventsHistogramResponse,
        conjure_http::private::Error,
    >;
    /// Lists the properties and labels of active events in the provided workspaces.
    /// Returns up to 500 of the most-used labels, and up to 500 of the most-used values for each property key.
    /// Property keys are not capped. Response maps and sets are unordered.
    #[endpoint(
        method = POST,
        path = "/event/v1/list-properties-labels",
        name = "listPropertiesAndLabels",
        produces = conjure_http::server::StdResponseSerializer
    )]
    fn list_properties_and_labels(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::ListPropertiesAndLabelsRequest,
    ) -> Result<
        super::super::super::objects::scout::metadata::ListPropertiesAndLabelsResponse,
        conjure_http::private::Error,
    >;
}
/// An Event is an annotated moment or time range.
/// The Event Service is responsible for creating and retrieving events for a particular data source.
#[conjure_http::conjure_endpoints(name = "EventService", use_legacy_error_serialization)]
pub trait AsyncEventService {
    /// Creates an event.
    #[endpoint(
        method = POST,
        path = "/event/v1/events",
        name = "createEvent",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn create_event(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::CreateEvent,
    ) -> Result<
        super::super::super::objects::event::Event,
        conjure_http::private::Error,
    >;
    /// Gets a set of events by UUIDs
    #[endpoint(
        method = POST,
        path = "/event/v1/get-events",
        name = "getEvents",
        produces = conjure_http::server::conjure::CollectionResponseSerializer
    )]
    async fn get_events(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::GetEvents,
    ) -> Result<
        std::collections::BTreeSet<super::super::super::objects::event::Event>,
        conjure_http::private::Error,
    >;
    /// Gets a set of events by RID.
    #[endpoint(
        method = POST,
        path = "/event/v1/events/batch-get",
        name = "batchGetEvents",
        produces = conjure_http::server::conjure::CollectionResponseSerializer
    )]
    async fn batch_get_events(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: std::collections::BTreeSet<conjure_object::ResourceIdentifier>,
    ) -> Result<
        std::collections::BTreeSet<super::super::super::objects::event::Event>,
        conjure_http::private::Error,
    >;
    /// Gets a filtered set of events by RID and search filters.
    #[endpoint(
        method = POST,
        path = "/event/v1/events/batch-filter-get",
        name = "batchFilterEvents",
        produces = conjure_http::server::conjure::CollectionResponseSerializer
    )]
    async fn batch_filter_events(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::BatchFilterEventsRequest,
    ) -> Result<
        std::collections::BTreeSet<super::super::super::objects::event::Event>,
        conjure_http::private::Error,
    >;
    /// Updates the fields of an event. Empty fields are left unchanged.
    #[endpoint(
        method = POST,
        path = "/event/v1/update-event",
        name = "updateEvent",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn update_event(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::UpdateEvent,
    ) -> Result<
        super::super::super::objects::event::Event,
        conjure_http::private::Error,
    >;
    /// Updates the fields of an event specified by each request in the batch.
    /// Empty fields in the UpdateEventRequest are left unchanged.
    #[endpoint(
        method = POST,
        path = "/event/v1/events/batch-update",
        name = "batchUpdateEvent",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn batch_update_event(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::BatchUpdateEventRequest,
    ) -> Result<
        super::super::super::objects::event::BatchUpdateEventResponse,
        conjure_http::private::Error,
    >;
    /// Updates the disposition of an event.
    #[endpoint(
        method = POST,
        path = "/event/v1/update-disposition",
        name = "batchUpdateDisposition",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn batch_update_disposition(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::BatchUpdateDispositionRequest,
    ) -> Result<
        super::super::super::objects::event::BatchUpdateDispositionResponse,
        conjure_http::private::Error,
    >;
    /// Archives an event
    #[endpoint(method = POST, path = "/event/v1/archive-event", name = "archiveEvent")]
    async fn archive_event(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::ArchiveEvent,
    ) -> Result<(), conjure_http::private::Error>;
    /// Archives a set of events
    #[endpoint(
        method = POST,
        path = "/event/v1/batch-archive-events",
        name = "batchArchiveEvent"
    )]
    async fn batch_archive_event(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: std::collections::BTreeSet<conjure_object::ResourceIdentifier>,
    ) -> Result<(), conjure_http::private::Error>;
    /// Unarchives a set of events
    #[endpoint(
        method = POST,
        path = "/event/v1/batch-unarchive-events",
        name = "batchUnarchiveEvent"
    )]
    async fn batch_unarchive_event(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: std::collections::BTreeSet<conjure_object::ResourceIdentifier>,
    ) -> Result<(), conjure_http::private::Error>;
    /// Searches for events that match the given filters.
    #[endpoint(
        method = POST,
        path = "/event/v1/search-events",
        name = "searchEvents",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn search_events(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::SearchEventsRequest,
    ) -> Result<
        super::super::super::objects::event::SearchEventsResponse,
        conjure_http::private::Error,
    >;
    /// Searches for events matching the given filter and aggregates them based on the requested functions.
    #[endpoint(
        method = POST,
        path = "/event/v1/aggregate-events",
        name = "aggregateEvents",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn aggregate_events(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::AggregateEventsRequest,
    ) -> Result<
        super::super::super::objects::event::AggregateEventsResponse,
        conjure_http::private::Error,
    >;
    /// Searches for events matching the given filter and aggregates them based on the requested functions.
    /// Returns a list of responses in same order as the batched requests.
    #[endpoint(
        method = POST,
        path = "/event/v1/aggregate-events/batch",
        name = "batchAggregateEvents",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn batch_aggregate_events(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::BatchAggregateEventsRequest,
    ) -> Result<
        super::super::super::objects::event::BatchAggregateEventsResponse,
        conjure_http::private::Error,
    >;
    /// Gets a histogram of events that match the given filters.
    #[endpoint(
        method = POST,
        path = "/event/v1/histogram",
        name = "getEventsHistogram",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn get_events_histogram(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::EventsHistogramRequest,
    ) -> Result<
        super::super::super::objects::event::EventsHistogramResponse,
        conjure_http::private::Error,
    >;
    /// Lists the properties and labels of active events in the provided workspaces.
    /// Returns up to 500 of the most-used labels, and up to 500 of the most-used values for each property key.
    /// Property keys are not capped. Response maps and sets are unordered.
    #[endpoint(
        method = POST,
        path = "/event/v1/list-properties-labels",
        name = "listPropertiesAndLabels",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn list_properties_and_labels(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::ListPropertiesAndLabelsRequest,
    ) -> Result<
        super::super::super::objects::scout::metadata::ListPropertiesAndLabelsResponse,
        conjure_http::private::Error,
    >;
}
/// An Event is an annotated moment or time range.
/// The Event Service is responsible for creating and retrieving events for a particular data source.
#[conjure_http::conjure_endpoints(
    name = "EventService",
    use_legacy_error_serialization,
    local
)]
pub trait LocalAsyncEventService {
    /// Creates an event.
    #[endpoint(
        method = POST,
        path = "/event/v1/events",
        name = "createEvent",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn create_event(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::CreateEvent,
    ) -> Result<
        super::super::super::objects::event::Event,
        conjure_http::private::Error,
    >;
    /// Gets a set of events by UUIDs
    #[endpoint(
        method = POST,
        path = "/event/v1/get-events",
        name = "getEvents",
        produces = conjure_http::server::conjure::CollectionResponseSerializer
    )]
    async fn get_events(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::GetEvents,
    ) -> Result<
        std::collections::BTreeSet<super::super::super::objects::event::Event>,
        conjure_http::private::Error,
    >;
    /// Gets a set of events by RID.
    #[endpoint(
        method = POST,
        path = "/event/v1/events/batch-get",
        name = "batchGetEvents",
        produces = conjure_http::server::conjure::CollectionResponseSerializer
    )]
    async fn batch_get_events(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: std::collections::BTreeSet<conjure_object::ResourceIdentifier>,
    ) -> Result<
        std::collections::BTreeSet<super::super::super::objects::event::Event>,
        conjure_http::private::Error,
    >;
    /// Gets a filtered set of events by RID and search filters.
    #[endpoint(
        method = POST,
        path = "/event/v1/events/batch-filter-get",
        name = "batchFilterEvents",
        produces = conjure_http::server::conjure::CollectionResponseSerializer
    )]
    async fn batch_filter_events(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::BatchFilterEventsRequest,
    ) -> Result<
        std::collections::BTreeSet<super::super::super::objects::event::Event>,
        conjure_http::private::Error,
    >;
    /// Updates the fields of an event. Empty fields are left unchanged.
    #[endpoint(
        method = POST,
        path = "/event/v1/update-event",
        name = "updateEvent",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn update_event(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::UpdateEvent,
    ) -> Result<
        super::super::super::objects::event::Event,
        conjure_http::private::Error,
    >;
    /// Updates the fields of an event specified by each request in the batch.
    /// Empty fields in the UpdateEventRequest are left unchanged.
    #[endpoint(
        method = POST,
        path = "/event/v1/events/batch-update",
        name = "batchUpdateEvent",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn batch_update_event(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::BatchUpdateEventRequest,
    ) -> Result<
        super::super::super::objects::event::BatchUpdateEventResponse,
        conjure_http::private::Error,
    >;
    /// Updates the disposition of an event.
    #[endpoint(
        method = POST,
        path = "/event/v1/update-disposition",
        name = "batchUpdateDisposition",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn batch_update_disposition(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::BatchUpdateDispositionRequest,
    ) -> Result<
        super::super::super::objects::event::BatchUpdateDispositionResponse,
        conjure_http::private::Error,
    >;
    /// Archives an event
    #[endpoint(method = POST, path = "/event/v1/archive-event", name = "archiveEvent")]
    async fn archive_event(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::ArchiveEvent,
    ) -> Result<(), conjure_http::private::Error>;
    /// Archives a set of events
    #[endpoint(
        method = POST,
        path = "/event/v1/batch-archive-events",
        name = "batchArchiveEvent"
    )]
    async fn batch_archive_event(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: std::collections::BTreeSet<conjure_object::ResourceIdentifier>,
    ) -> Result<(), conjure_http::private::Error>;
    /// Unarchives a set of events
    #[endpoint(
        method = POST,
        path = "/event/v1/batch-unarchive-events",
        name = "batchUnarchiveEvent"
    )]
    async fn batch_unarchive_event(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: std::collections::BTreeSet<conjure_object::ResourceIdentifier>,
    ) -> Result<(), conjure_http::private::Error>;
    /// Searches for events that match the given filters.
    #[endpoint(
        method = POST,
        path = "/event/v1/search-events",
        name = "searchEvents",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn search_events(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::SearchEventsRequest,
    ) -> Result<
        super::super::super::objects::event::SearchEventsResponse,
        conjure_http::private::Error,
    >;
    /// Searches for events matching the given filter and aggregates them based on the requested functions.
    #[endpoint(
        method = POST,
        path = "/event/v1/aggregate-events",
        name = "aggregateEvents",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn aggregate_events(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::AggregateEventsRequest,
    ) -> Result<
        super::super::super::objects::event::AggregateEventsResponse,
        conjure_http::private::Error,
    >;
    /// Searches for events matching the given filter and aggregates them based on the requested functions.
    /// Returns a list of responses in same order as the batched requests.
    #[endpoint(
        method = POST,
        path = "/event/v1/aggregate-events/batch",
        name = "batchAggregateEvents",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn batch_aggregate_events(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::BatchAggregateEventsRequest,
    ) -> Result<
        super::super::super::objects::event::BatchAggregateEventsResponse,
        conjure_http::private::Error,
    >;
    /// Gets a histogram of events that match the given filters.
    #[endpoint(
        method = POST,
        path = "/event/v1/histogram",
        name = "getEventsHistogram",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn get_events_histogram(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::EventsHistogramRequest,
    ) -> Result<
        super::super::super::objects::event::EventsHistogramResponse,
        conjure_http::private::Error,
    >;
    /// Lists the properties and labels of active events in the provided workspaces.
    /// Returns up to 500 of the most-used labels, and up to 500 of the most-used values for each property key.
    /// Property keys are not capped. Response maps and sets are unordered.
    #[endpoint(
        method = POST,
        path = "/event/v1/list-properties-labels",
        name = "listPropertiesAndLabels",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn list_properties_and_labels(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::objects::event::ListPropertiesAndLabelsRequest,
    ) -> Result<
        super::super::super::objects::scout::metadata::ListPropertiesAndLabelsResponse,
        conjure_http::private::Error,
    >;
}
