Struct aws_sdk_iot::input::CreateCustomMetricInput
source · [−]#[non_exhaustive]pub struct CreateCustomMetricInput { /* private fields */ }Implementations
sourceimpl CreateCustomMetricInput
impl CreateCustomMetricInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateCustomMetric, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateCustomMetric, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateCustomMetric>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateCustomMetricInput.
sourceimpl CreateCustomMetricInput
impl CreateCustomMetricInput
sourcepub fn metric_name(&self) -> Option<&str>
pub fn metric_name(&self) -> Option<&str>
The name of the custom metric. This will be used in the metric report submitted from the device/thing. The name can't begin with aws:. You can't change the name after you define it.
sourcepub fn display_name(&self) -> Option<&str>
pub fn display_name(&self) -> Option<&str>
The friendly name in the console for the custom metric. This name doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. You can update the friendly name after you define it.
sourcepub fn metric_type(&self) -> Option<&CustomMetricType>
pub fn metric_type(&self) -> Option<&CustomMetricType>
The type of the custom metric.
The type number only takes a single metric value as an input, but when you submit the metrics value in the DeviceMetrics report, you must pass it as an array with a single value.
Metadata that can be used to manage the custom metric.
sourcepub fn client_request_token(&self) -> Option<&str>
pub fn client_request_token(&self) -> Option<&str>
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
sourceimpl Clone for CreateCustomMetricInput
impl Clone for CreateCustomMetricInput
sourcefn clone(&self) -> CreateCustomMetricInput
fn clone(&self) -> CreateCustomMetricInput
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more