#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct E2m {
#[prost(message, optional, tag = "1")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "2")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "3")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "4")]
pub create_time: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "5")]
pub update_time: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "6")]
pub permutations: ::core::option::Option<E2mPermutations>,
#[prost(message, repeated, tag = "7")]
pub metric_labels: ::prost::alloc::vec::Vec<MetricLabel>,
#[prost(message, repeated, tag = "8")]
pub metric_fields: ::prost::alloc::vec::Vec<MetricField>,
#[prost(enumeration = "E2mType", tag = "9")]
pub r#type: i32,
#[prost(message, optional, tag = "12")]
pub is_internal: ::core::option::Option<bool>,
#[prost(oneof = "e2m::Query", tags = "10, 11")]
pub query: ::core::option::Option<e2m::Query>,
}
pub mod e2m {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Query {
#[prost(message, tag = "10")]
SpansQuery(super::super::super::spans2metrics::v2::SpansQuery),
#[prost(message, tag = "11")]
LogsQuery(super::super::super::logs2metrics::v2::LogsQuery),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct E2mCreateParams {
#[prost(message, optional, tag = "1")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "2")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "3")]
pub permutations_limit: ::core::option::Option<i32>,
#[prost(message, repeated, tag = "4")]
pub metric_labels: ::prost::alloc::vec::Vec<MetricLabel>,
#[prost(message, repeated, tag = "5")]
pub metric_fields: ::prost::alloc::vec::Vec<MetricField>,
#[prost(enumeration = "E2mType", tag = "6")]
pub r#type: i32,
#[prost(oneof = "e2m_create_params::Query", tags = "7, 8")]
pub query: ::core::option::Option<e2m_create_params::Query>,
}
pub mod e2m_create_params {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Query {
#[prost(message, tag = "7")]
SpansQuery(super::super::super::spans2metrics::v2::SpansQuery),
#[prost(message, tag = "8")]
LogsQuery(super::super::super::logs2metrics::v2::LogsQuery),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct E2mPermutations {
#[prost(int32, tag = "1")]
pub limit: i32,
#[prost(bool, tag = "2")]
pub has_exceeded_limit: bool,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetricLabel {
#[prost(message, optional, tag = "1")]
pub target_label: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "2")]
pub source_field: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetricField {
#[prost(message, optional, tag = "1")]
pub target_base_metric_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "2")]
pub source_field: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, repeated, tag = "7")]
pub aggregations: ::prost::alloc::vec::Vec<Aggregation>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Aggregation {
#[prost(bool, tag = "1")]
pub enabled: bool,
#[prost(enumeration = "aggregation::AggType", tag = "2")]
pub agg_type: i32,
#[prost(string, tag = "3")]
pub target_metric_name: ::prost::alloc::string::String,
#[prost(oneof = "aggregation::AggMetadata", tags = "4, 5")]
pub agg_metadata: ::core::option::Option<aggregation::AggMetadata>,
}
pub mod aggregation {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum AggType {
Unspecified = 0,
Min = 1,
Max = 2,
Count = 3,
Avg = 4,
Sum = 5,
Histogram = 6,
Samples = 7,
}
impl AggType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "AGG_TYPE_UNSPECIFIED",
Self::Min => "AGG_TYPE_MIN",
Self::Max => "AGG_TYPE_MAX",
Self::Count => "AGG_TYPE_COUNT",
Self::Avg => "AGG_TYPE_AVG",
Self::Sum => "AGG_TYPE_SUM",
Self::Histogram => "AGG_TYPE_HISTOGRAM",
Self::Samples => "AGG_TYPE_SAMPLES",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"AGG_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"AGG_TYPE_MIN" => Some(Self::Min),
"AGG_TYPE_MAX" => Some(Self::Max),
"AGG_TYPE_COUNT" => Some(Self::Count),
"AGG_TYPE_AVG" => Some(Self::Avg),
"AGG_TYPE_SUM" => Some(Self::Sum),
"AGG_TYPE_HISTOGRAM" => Some(Self::Histogram),
"AGG_TYPE_SAMPLES" => Some(Self::Samples),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum AggMetadata {
#[prost(message, tag = "4")]
Samples(super::E2mAggSamples),
#[prost(message, tag = "5")]
Histogram(super::E2mAggHistogram),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct E2mAggSamples {
#[prost(enumeration = "e2m_agg_samples::SampleType", tag = "2")]
pub sample_type: i32,
}
pub mod e2m_agg_samples {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum SampleType {
Unspecified = 0,
Min = 1,
Max = 2,
}
impl SampleType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "SAMPLE_TYPE_UNSPECIFIED",
Self::Min => "SAMPLE_TYPE_MIN",
Self::Max => "SAMPLE_TYPE_MAX",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SAMPLE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"SAMPLE_TYPE_MIN" => Some(Self::Min),
"SAMPLE_TYPE_MAX" => Some(Self::Max),
_ => None,
}
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct E2mAggHistogram {
#[prost(float, repeated, tag = "1")]
pub buckets: ::prost::alloc::vec::Vec<f32>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum E2mType {
Unspecified = 0,
Logs2metrics = 1,
Spans2metrics = 2,
}
impl E2mType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "E2M_TYPE_UNSPECIFIED",
Self::Logs2metrics => "E2M_TYPE_LOGS2METRICS",
Self::Spans2metrics => "E2M_TYPE_SPANS2METRICS",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"E2M_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"E2M_TYPE_LOGS2METRICS" => Some(Self::Logs2metrics),
"E2M_TYPE_SPANS2METRICS" => Some(Self::Spans2metrics),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateE2mRequest {
#[prost(message, optional, tag = "1")]
pub e2m: ::core::option::Option<E2mCreateParams>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateE2mResponse {
#[prost(message, optional, tag = "1")]
pub e2m: ::core::option::Option<E2m>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ListE2mRequest {}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListE2mResponse {
#[prost(message, repeated, tag = "1")]
pub e2m: ::prost::alloc::vec::Vec<E2m>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReplaceE2mRequest {
#[prost(message, optional, tag = "1")]
pub e2m: ::core::option::Option<E2m>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReplaceE2mResponse {
#[prost(message, optional, tag = "1")]
pub e2m: ::core::option::Option<E2m>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetE2mRequest {
#[prost(message, optional, tag = "1")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetE2mResponse {
#[prost(message, optional, tag = "1")]
pub e2m: ::core::option::Option<E2m>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteE2mRequest {
#[prost(message, optional, tag = "1")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteE2mResponse {
#[prost(message, optional, tag = "1")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct E2mExecutionRequest {
#[prost(oneof = "e2m_execution_request::Request", tags = "1, 2, 3")]
pub request: ::core::option::Option<e2m_execution_request::Request>,
}
pub mod e2m_execution_request {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Request {
#[prost(message, tag = "1")]
Create(super::CreateE2mRequest),
#[prost(message, tag = "2")]
Replace(super::ReplaceE2mRequest),
#[prost(message, tag = "3")]
Delete(super::DeleteE2mRequest),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AtomicBatchExecuteE2mRequest {
#[prost(message, repeated, tag = "1")]
pub requests: ::prost::alloc::vec::Vec<E2mExecutionRequest>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct E2mExecutionResponse {
#[prost(oneof = "e2m_execution_response::Response", tags = "1, 2, 3")]
pub response: ::core::option::Option<e2m_execution_response::Response>,
}
pub mod e2m_execution_response {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Response {
#[prost(message, tag = "1")]
Created(super::CreateE2mResponse),
#[prost(message, tag = "2")]
Replaced(super::ReplaceE2mResponse),
#[prost(message, tag = "3")]
Deleted(super::DeleteE2mResponse),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AtomicBatchExecuteE2mResponse {
#[prost(message, repeated, tag = "1")]
pub matching_responses: ::prost::alloc::vec::Vec<E2mExecutionResponse>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListLabelsCardinalityRequest {
#[prost(message, repeated, tag = "3")]
pub metric_labels: ::prost::alloc::vec::Vec<MetricLabel>,
#[prost(oneof = "list_labels_cardinality_request::Query", tags = "1, 2")]
pub query: ::core::option::Option<list_labels_cardinality_request::Query>,
}
pub mod list_labels_cardinality_request {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Query {
#[prost(message, tag = "1")]
SpansQuery(super::super::super::spans2metrics::v2::SpansQuery),
#[prost(message, tag = "2")]
LogsQuery(super::super::super::logs2metrics::v2::LogsQuery),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LabelsPermutationsCardinalityDay {
#[prost(string, tag = "1")]
pub day: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub permutations: i32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListLabelsCardinalityResponse {
#[prost(message, repeated, tag = "1")]
pub permutations: ::prost::alloc::vec::Vec<LabelsPermutationsCardinalityDay>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GetLimitsRequest {}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetLimitsResponse {
#[prost(message, optional, tag = "1")]
pub company_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(int32, tag = "2")]
pub labels_limit: i32,
#[prost(message, optional, tag = "3")]
pub permutations_limit: ::core::option::Option<get_limits_response::LimitUsage>,
#[prost(message, optional, tag = "4")]
pub metrics_limit: ::core::option::Option<get_limits_response::LimitUsage>,
}
pub mod get_limits_response {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct LimitUsage {
#[prost(message, optional, tag = "1")]
pub limit: ::core::option::Option<i32>,
#[prost(message, optional, tag = "2")]
pub used: ::core::option::Option<i32>,
}
}
pub mod events2_metric_service_client {
#![allow(
unused_variables,
dead_code,
missing_docs,
clippy::wildcard_imports,
clippy::let_unit_value,
)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
#[derive(Debug, Clone)]
pub struct Events2MetricServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl Events2MetricServiceClient<tonic::transport::Channel> {
pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
where
D: TryInto<tonic::transport::Endpoint>,
D::Error: Into<StdError>,
{
let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
Ok(Self::new(conn))
}
}
impl<T> Events2MetricServiceClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> Events2MetricServiceClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
{
Events2MetricServiceClient::new(InterceptedService::new(inner, interceptor))
}
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
pub async fn create_e2m(
&mut self,
request: impl tonic::IntoRequest<super::CreateE2mRequest>,
) -> std::result::Result<
tonic::Response<super::CreateE2mResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/com.coralogixapis.events2metrics.v2.Events2MetricService/CreateE2M",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"com.coralogixapis.events2metrics.v2.Events2MetricService",
"CreateE2M",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn list_e2m(
&mut self,
request: impl tonic::IntoRequest<super::ListE2mRequest>,
) -> std::result::Result<
tonic::Response<super::ListE2mResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/com.coralogixapis.events2metrics.v2.Events2MetricService/ListE2M",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"com.coralogixapis.events2metrics.v2.Events2MetricService",
"ListE2M",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn replace_e2m(
&mut self,
request: impl tonic::IntoRequest<super::ReplaceE2mRequest>,
) -> std::result::Result<
tonic::Response<super::ReplaceE2mResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/com.coralogixapis.events2metrics.v2.Events2MetricService/ReplaceE2M",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"com.coralogixapis.events2metrics.v2.Events2MetricService",
"ReplaceE2M",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_e2m(
&mut self,
request: impl tonic::IntoRequest<super::GetE2mRequest>,
) -> std::result::Result<tonic::Response<super::GetE2mResponse>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/com.coralogixapis.events2metrics.v2.Events2MetricService/GetE2M",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"com.coralogixapis.events2metrics.v2.Events2MetricService",
"GetE2M",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn delete_e2m(
&mut self,
request: impl tonic::IntoRequest<super::DeleteE2mRequest>,
) -> std::result::Result<
tonic::Response<super::DeleteE2mResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/com.coralogixapis.events2metrics.v2.Events2MetricService/DeleteE2M",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"com.coralogixapis.events2metrics.v2.Events2MetricService",
"DeleteE2M",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn atomic_batch_execute_e2m(
&mut self,
request: impl tonic::IntoRequest<super::AtomicBatchExecuteE2mRequest>,
) -> std::result::Result<
tonic::Response<super::AtomicBatchExecuteE2mResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/com.coralogixapis.events2metrics.v2.Events2MetricService/AtomicBatchExecuteE2M",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"com.coralogixapis.events2metrics.v2.Events2MetricService",
"AtomicBatchExecuteE2M",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn list_labels_cardinality(
&mut self,
request: impl tonic::IntoRequest<super::ListLabelsCardinalityRequest>,
) -> std::result::Result<
tonic::Response<super::ListLabelsCardinalityResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/com.coralogixapis.events2metrics.v2.Events2MetricService/ListLabelsCardinality",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"com.coralogixapis.events2metrics.v2.Events2MetricService",
"ListLabelsCardinality",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn get_limits(
&mut self,
request: impl tonic::IntoRequest<super::GetLimitsRequest>,
) -> std::result::Result<
tonic::Response<super::GetLimitsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::unknown(
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/com.coralogixapis.events2metrics.v2.Events2MetricService/GetLimits",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"com.coralogixapis.events2metrics.v2.Events2MetricService",
"GetLimits",
),
);
self.inner.unary(req, path, codec).await
}
}
}