Struct googapis::google::devtools::clouderrorreporting::v1beta1::report_errors_service_client::ReportErrorsServiceClient [−][src]
pub struct ReportErrorsServiceClient<T> { /* fields omitted */ }
Expand description
An API for reporting error events.
Implementations
impl<T> ReportErrorsServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> ReportErrorsServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> ReportErrorsServiceClient<InterceptedService<T, F>> where
F: Interceptor,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub async fn report_error_event(
&mut self,
request: impl IntoRequest<ReportErrorEventRequest>
) -> Result<Response<ReportErrorEventResponse>, Status>
pub async fn report_error_event(
&mut self,
request: impl IntoRequest<ReportErrorEventRequest>
) -> Result<Response<ReportErrorEventResponse>, Status>
Report an individual error event and record the event to a log.
This endpoint accepts either an OAuth token,
or an API key
for authentication. To use an API key, append it to the URL as the value of
a key
parameter. For example:
POST https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456
Note: Error Reporting is a global service built on Cloud Logging and doesn’t analyze logs stored in regional log buckets or logs routed to other Google Cloud projects.
For more information, see Using Error Reporting with regionalized logs.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for ReportErrorsServiceClient<T> where
T: RefUnwindSafe,
impl<T> Send for ReportErrorsServiceClient<T> where
T: Send,
impl<T> Sync for ReportErrorsServiceClient<T> where
T: Sync,
impl<T> Unpin for ReportErrorsServiceClient<T> where
T: Unpin,
impl<T> UnwindSafe for ReportErrorsServiceClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more