Struct aws_sdk_iot::input::CreateCustomMetricInput [−][src]
#[non_exhaustive]pub struct CreateCustomMetricInput {
pub metric_name: Option<String>,
pub display_name: Option<String>,
pub metric_type: Option<CustomMetricType>,
pub tags: Option<Vec<Tag>>,
pub client_request_token: Option<String>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.metric_name: Option<String>
The name of the custom metric. This will be used in the metric report submitted from the device/thing. Shouldn't begin with aws:
.
Cannot be updated
once defined.
display_name: Option<String>
Field represents a friendly name in the console for the custom metric; it doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. Can be updated once defined.
metric_type: Option<CustomMetricType>
The type of the custom metric. Types include string-list
, ip-address-list
, number-list
, and number
.
Metadata that can be used to manage the custom metric.
client_request_token: Option<String>
Each custom metric must have a unique client request token. If you try to create a new custom metric that already exists with a different token, an exception occurs. If you omit this value, Amazon Web Services SDKs will automatically generate a unique client request.
Implementations
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateCustomMetric, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateCustomMetric, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<CreateCustomMetric
>
Creates a new builder-style object to manufacture CreateCustomMetricInput
The name of the custom metric. This will be used in the metric report submitted from the device/thing. Shouldn't begin with aws:
.
Cannot be updated
once defined.
Field represents a friendly name in the console for the custom metric; it doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. Can be updated once defined.
The type of the custom metric. Types include string-list
, ip-address-list
, number-list
, and number
.
Metadata that can be used to manage the custom metric.
Each custom metric must have a unique client request token. If you try to create a new custom metric that already exists with a different token, an exception occurs. If you omit this value, Amazon Web Services SDKs will automatically generate a unique client request.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CreateCustomMetricInput
impl Send for CreateCustomMetricInput
impl Sync for CreateCustomMetricInput
impl Unpin for CreateCustomMetricInput
impl UnwindSafe for CreateCustomMetricInput
Blanket Implementations
Mutably borrows from an owned value. Read more
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