Struct gapi_grpc::google::logging::v2::metrics_service_v2_client::MetricsServiceV2Client[][src]

pub struct MetricsServiceV2Client<T> { /* fields omitted */ }

Service for configuring logs-based metrics.

Implementations

impl MetricsServiceV2Client<Channel>[src]

pub async fn connect<D>(dst: D) -> Result<Self, Error> where
    D: TryInto<Endpoint>,
    D::Error: Into<StdError>, 
[src]

Attempt to create a new client by connecting to a given endpoint.

impl<T> MetricsServiceV2Client<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn list_log_metrics(
    &mut self,
    request: impl IntoRequest<ListLogMetricsRequest>
) -> Result<Response<ListLogMetricsResponse>, Status>
[src]

Lists logs-based metrics.

pub async fn get_log_metric(
    &mut self,
    request: impl IntoRequest<GetLogMetricRequest>
) -> Result<Response<LogMetric>, Status>
[src]

Gets a logs-based metric.

pub async fn create_log_metric(
    &mut self,
    request: impl IntoRequest<CreateLogMetricRequest>
) -> Result<Response<LogMetric>, Status>
[src]

Creates a logs-based metric.

pub async fn update_log_metric(
    &mut self,
    request: impl IntoRequest<UpdateLogMetricRequest>
) -> Result<Response<LogMetric>, Status>
[src]

Creates or updates a logs-based metric.

pub async fn delete_log_metric(
    &mut self,
    request: impl IntoRequest<DeleteLogMetricRequest>
) -> Result<Response<()>, Status>
[src]

Deletes a logs-based metric.

Trait Implementations

impl<T: Clone> Clone for MetricsServiceV2Client<T>[src]

impl<T> Debug for MetricsServiceV2Client<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for MetricsServiceV2Client<T>

impl<T> Send for MetricsServiceV2Client<T> where
    T: Send

impl<T> Sync for MetricsServiceV2Client<T> where
    T: Sync

impl<T> Unpin for MetricsServiceV2Client<T> where
    T: Unpin

impl<T> !UnwindSafe for MetricsServiceV2Client<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]