Struct googapis::google::devtools::cloudprofiler::v2::profiler_service_client::ProfilerServiceClient [−][src]
pub struct ProfilerServiceClient<T> { /* fields omitted */ }
Expand description
Manage the collection of continuous profiling data provided by profiling agents running in the cloud or by an offline provider of profiling data.
General guidelines:
- Profiles for a single deployment must be created in ascending time order.
- Profiles can be created in either online or offline mode, see below.
Implementations
impl<T> ProfilerServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> ProfilerServiceClient<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
) -> ProfilerServiceClient<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 create_profile(
&mut self,
request: impl IntoRequest<CreateProfileRequest>
) -> Result<Response<Profile>, Status>
pub async fn create_profile(
&mut self,
request: impl IntoRequest<CreateProfileRequest>
) -> Result<Response<Profile>, Status>
CreateProfile creates a new profile resource in the online mode.
The server ensures that the new profiles are created at a constant rate per deployment, so the creation request may hang for some time until the next profile session is available.
The request may fail with ABORTED error if the creation is not available within ~1m, the response will indicate the duration of the backoff the client should take before attempting creating a profile again. The backoff duration is returned in google.rpc.RetryInfo extension on the response status. To a gRPC client, the extension will be return as a binary-serialized proto in the trailing metadata item named “google.rpc.retryinfo-bin”.
pub async fn create_offline_profile(
&mut self,
request: impl IntoRequest<CreateOfflineProfileRequest>
) -> Result<Response<Profile>, Status>
pub async fn create_offline_profile(
&mut self,
request: impl IntoRequest<CreateOfflineProfileRequest>
) -> Result<Response<Profile>, Status>
CreateOfflineProfile creates a new profile resource in the offline mode. The client provides the profile to create along with the profile bytes, the server records it.
pub async fn update_profile(
&mut self,
request: impl IntoRequest<UpdateProfileRequest>
) -> Result<Response<Profile>, Status>
pub async fn update_profile(
&mut self,
request: impl IntoRequest<UpdateProfileRequest>
) -> Result<Response<Profile>, Status>
UpdateProfile updates the profile bytes and labels on the profile resource created in the online mode. Updating the bytes for profiles created in the offline mode is currently not supported: the profile content must be provided at the time of the profile creation.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for ProfilerServiceClient<T> where
T: RefUnwindSafe,
impl<T> Send for ProfilerServiceClient<T> where
T: Send,
impl<T> Sync for ProfilerServiceClient<T> where
T: Sync,
impl<T> Unpin for ProfilerServiceClient<T> where
T: Unpin,
impl<T> UnwindSafe for ProfilerServiceClient<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