pub struct CreateCustomMetricRequest {
pub client_request_token: String,
pub display_name: Option<String>,
pub metric_name: String,
pub metric_type: String,
pub tags: Option<Vec<Tag>>,
}Fields§
§client_request_token: StringEach 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, AWS SDKs will automatically generate a unique client request.
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_name: 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.
metric_type: String 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.
Trait Implementations§
Source§impl Clone for CreateCustomMetricRequest
impl Clone for CreateCustomMetricRequest
Source§fn clone(&self) -> CreateCustomMetricRequest
fn clone(&self) -> CreateCustomMetricRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more