Struct aws_sdk_rum::Client
source · [−]pub struct Client { /* private fields */ }Expand description
Client for CloudWatch RUM
Client for invoking operations on CloudWatch RUM. Each operation on CloudWatch RUM is a method on this
this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_rum::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */Constructing a client with custom configuration
use aws_config::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_rum::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_rum::Client::from_conf(config);Implementations
sourceimpl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
sourceimpl Client
impl Client
sourcepub fn create_app_monitor(&self) -> CreateAppMonitor
pub fn create_app_monitor(&self) -> CreateAppMonitor
Constructs a fluent builder for the CreateAppMonitor operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):A name for the app monitor.
domain(impl Into<String>)/set_domain(Option<String>):The top-level internet domain name for which your application has administrative authority.
tags(HashMap<String, String>)/set_tags(Option<HashMap<String, String>>):Assigns one or more tags (key-value pairs) to the app monitor.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
Tags don’t have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.
You can associate as many as 50 tags with an app monitor.
For more information, see Tagging Amazon Web Services resources.
app_monitor_configuration(AppMonitorConfiguration)/set_app_monitor_configuration(Option<AppMonitorConfiguration>):A structure that contains much of the configuration data for the app monitor. If you are using Amazon Cognito for authorization, you must include this structure in your request, and it must include the ID of the Amazon Cognito identity pool to use for authorization. If you don’t include
AppMonitorConfiguration, you must set up your own authorization method. For more information, see Authorize your application to send data to Amazon Web Services.If you omit this argument, the sample rate used for RUM is set to 10% of the user sessions.
cw_log_enabled(bool)/set_cw_log_enabled(Option<bool>):Data collected by RUM is kept by RUM for 30 days and then deleted. This parameter specifies whether RUM sends a copy of this telemetry data to Amazon CloudWatch Logs in your account. This enables you to keep the telemetry data for more than 30 days, but it does incur Amazon CloudWatch Logs charges.
If you omit this parameter, the default is
false.
- On success, responds with
CreateAppMonitorOutputwith field(s):id(Option<String>):The unique ID of the new app monitor.
- On failure, responds with
SdkError<CreateAppMonitorError>
sourcepub fn delete_app_monitor(&self) -> DeleteAppMonitor
pub fn delete_app_monitor(&self) -> DeleteAppMonitor
Constructs a fluent builder for the DeleteAppMonitor operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):The name of the app monitor to delete.
- On success, responds with
DeleteAppMonitorOutput - On failure, responds with
SdkError<DeleteAppMonitorError>
sourcepub fn get_app_monitor(&self) -> GetAppMonitor
pub fn get_app_monitor(&self) -> GetAppMonitor
Constructs a fluent builder for the GetAppMonitor operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):The app monitor to retrieve information for.
- On success, responds with
GetAppMonitorOutputwith field(s):app_monitor(Option<AppMonitor>):A structure containing all the configuration information for the app monitor.
- On failure, responds with
SdkError<GetAppMonitorError>
sourcepub fn get_app_monitor_data(&self) -> GetAppMonitorData
pub fn get_app_monitor_data(&self) -> GetAppMonitorData
Constructs a fluent builder for the GetAppMonitorData operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):The name of the app monitor that collected the data that you want to retrieve.
time_range(TimeRange)/set_time_range(Option<TimeRange>):A structure that defines the time range that you want to retrieve results from.
filters(Vec<QueryFilter>)/set_filters(Option<Vec<QueryFilter>>):An array of structures that you can use to filter the results to those that match one or more sets of key-value pairs that you specify.
max_results(i32)/set_max_results(i32):The maximum number of results to return in one operation.
next_token(impl Into<String>)/set_next_token(Option<String>):Use the token returned by the previous operation to request the next page of results.
- On success, responds with
GetAppMonitorDataOutputwith field(s):events(Option<Vec<String>>):The events that RUM collected that match your request.
next_token(Option<String>):A token that you can use in a subsequent operation to retrieve the next set of results.
- On failure, responds with
SdkError<GetAppMonitorDataError>
sourcepub fn list_app_monitors(&self) -> ListAppMonitors
pub fn list_app_monitors(&self) -> ListAppMonitors
Constructs a fluent builder for the ListAppMonitors operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
max_results(i32)/set_max_results(Option<i32>):The maximum number of results to return in one operation.
next_token(impl Into<String>)/set_next_token(Option<String>):Use the token returned by the previous operation to request the next page of results.
- On success, responds with
ListAppMonitorsOutputwith field(s):next_token(Option<String>):A token that you can use in a subsequent operation to retrieve the next set of results.
app_monitor_summaries(Option<Vec<AppMonitorSummary>>):An array of structures that contain information about the returned app monitors.
- On failure, responds with
SdkError<ListAppMonitorsError>
Constructs a fluent builder for the ListTagsForResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):The ARN of the resource that you want to see the tags of.
- On success, responds with
ListTagsForResourceOutputwith field(s):resource_arn(Option<String>):The ARN of the resource that you are viewing.
tags(Option<HashMap<String, String>>):The list of tag keys and values associated with the resource you specified.
- On failure, responds with
SdkError<ListTagsForResourceError>
sourcepub fn put_rum_events(&self) -> PutRumEvents
pub fn put_rum_events(&self) -> PutRumEvents
Constructs a fluent builder for the PutRumEvents operation.
- The fluent builder is configurable:
id(impl Into<String>)/set_id(Option<String>):The ID of the app monitor that is sending this data.
batch_id(impl Into<String>)/set_batch_id(Option<String>):A unique identifier for this batch of RUM event data.
app_monitor_details(AppMonitorDetails)/set_app_monitor_details(Option<AppMonitorDetails>):A structure that contains information about the app monitor that collected this telemetry information.
user_details(UserDetails)/set_user_details(Option<UserDetails>):A structure that contains information about the user session that this batch of events was collected from.
rum_events(Vec<RumEvent>)/set_rum_events(Option<Vec<RumEvent>>):An array of structures that contain the telemetry event data.
- On success, responds with
PutRumEventsOutput - On failure, responds with
SdkError<PutRumEventsError>
sourcepub fn tag_resource(&self) -> TagResource
pub fn tag_resource(&self) -> TagResource
Constructs a fluent builder for the TagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):The ARN of the CloudWatch RUM resource that you’re adding tags to.
tags(HashMap<String, String>)/set_tags(Option<HashMap<String, String>>):The list of key-value pairs to associate with the resource.
- On success, responds with
TagResourceOutput - On failure, responds with
SdkError<TagResourceError>
sourcepub fn untag_resource(&self) -> UntagResource
pub fn untag_resource(&self) -> UntagResource
Constructs a fluent builder for the UntagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):The ARN of the CloudWatch RUM resource that you’re removing tags from.
tag_keys(Vec<String>)/set_tag_keys(Option<Vec<String>>):The list of tag keys to remove from the resource.
- On success, responds with
UntagResourceOutput - On failure, responds with
SdkError<UntagResourceError>
sourcepub fn update_app_monitor(&self) -> UpdateAppMonitor
pub fn update_app_monitor(&self) -> UpdateAppMonitor
Constructs a fluent builder for the UpdateAppMonitor operation.
- The fluent builder is configurable:
name(impl Into<String>)/set_name(Option<String>):The name of the app monitor to update.
domain(impl Into<String>)/set_domain(Option<String>):The top-level internet domain name for which your application has administrative authority.
app_monitor_configuration(AppMonitorConfiguration)/set_app_monitor_configuration(Option<AppMonitorConfiguration>):A structure that contains much of the configuration data for the app monitor. If you are using Amazon Cognito for authorization, you must include this structure in your request, and it must include the ID of the Amazon Cognito identity pool to use for authorization. If you don’t include
AppMonitorConfiguration, you must set up your own authorization method. For more information, see Authorize your application to send data to Amazon Web Services.cw_log_enabled(bool)/set_cw_log_enabled(Option<bool>):Data collected by RUM is kept by RUM for 30 days and then deleted. This parameter specifies whether RUM sends a copy of this telemetry data to Amazon CloudWatch Logs in your account. This enables you to keep the telemetry data for more than 30 days, but it does incur Amazon CloudWatch Logs charges.
- On success, responds with
UpdateAppMonitorOutput - On failure, responds with
SdkError<UpdateAppMonitorError>
sourceimpl Client
impl Client
sourcepub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
pub fn from_conf_conn<C, E>(conf: Config, conn: C) -> Self where
C: SmithyConnector<Error = E> + Send + 'static,
E: Into<ConnectorError>,
Creates a client with the given service config and connector override.
Trait Implementations
sourceimpl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
impl From<Client<DynConnector, DynMiddleware<DynConnector>, Standard>> for Client
sourcefn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
fn from(client: Client<DynConnector, DynMiddleware<DynConnector>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more