pub struct CreateCallAnalyticsCategory { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateCallAnalyticsCategory
.
Creates a new Call Analytics category.
All categories are automatically applied to your Call Analytics jobs. Note that in order to apply your categories to your jobs, you must create them before submitting your job request, as categories cannot be applied retroactively.
Call Analytics categories are composed of rules. For each category, you must create between 1 and 20 rules. Rules can include these parameters: , , , and .
To update an existing category, see .
To learn more about:
-
Call Analytics categories, see Creating categories
-
Using rules, see Rule criteria and refer to the data type
-
Call Analytics, see Analyzing call center audio with Call Analytics
Implementations
sourceimpl CreateCallAnalyticsCategory
impl CreateCallAnalyticsCategory
sourcepub async fn send(
self
) -> Result<CreateCallAnalyticsCategoryOutput, SdkError<CreateCallAnalyticsCategoryError>>
pub async fn send(
self
) -> Result<CreateCallAnalyticsCategoryOutput, SdkError<CreateCallAnalyticsCategoryError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn category_name(self, input: impl Into<String>) -> Self
pub fn category_name(self, input: impl Into<String>) -> Self
A unique name, chosen by you, for your Call Analytics category. It's helpful to use a detailed naming system that will make sense to you in the future. For example, it's better to use sentiment-positive-last30seconds
for a category over a generic name like test-category
.
Category names are case sensitive.
sourcepub fn set_category_name(self, input: Option<String>) -> Self
pub fn set_category_name(self, input: Option<String>) -> Self
A unique name, chosen by you, for your Call Analytics category. It's helpful to use a detailed naming system that will make sense to you in the future. For example, it's better to use sentiment-positive-last30seconds
for a category over a generic name like test-category
.
Category names are case sensitive.
sourcepub fn rules(self, input: Rule) -> Self
pub fn rules(self, input: Rule) -> Self
Appends an item to Rules
.
To override the contents of this collection use set_rules
.
Rules define a Call Analytics category. When creating a new Call Analytics category, you must create between 1 and 20 rules for that category. For each rule, you specify a filter you want applied to the attributes of a call. For example, you can choose a sentiment filter that detects if a customer's sentiment was positive during the last 30 seconds of the call.
sourcepub fn set_rules(self, input: Option<Vec<Rule>>) -> Self
pub fn set_rules(self, input: Option<Vec<Rule>>) -> Self
Rules define a Call Analytics category. When creating a new Call Analytics category, you must create between 1 and 20 rules for that category. For each rule, you specify a filter you want applied to the attributes of a call. For example, you can choose a sentiment filter that detects if a customer's sentiment was positive during the last 30 seconds of the call.
Trait Implementations
sourceimpl Clone for CreateCallAnalyticsCategory
impl Clone for CreateCallAnalyticsCategory
sourcefn clone(&self) -> CreateCallAnalyticsCategory
fn clone(&self) -> CreateCallAnalyticsCategory
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for CreateCallAnalyticsCategory
impl Send for CreateCallAnalyticsCategory
impl Sync for CreateCallAnalyticsCategory
impl Unpin for CreateCallAnalyticsCategory
impl !UnwindSafe for CreateCallAnalyticsCategory
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