Class: Aws::IoT::Types::CreateCustomMetricRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-iot/types.rb

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#client_request_tokenString

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.

**A suitable default value is auto-generated.** You should normally not need to pass this option.

Returns:

  • (String)


2529
2530
2531
2532
2533
2534
2535
2536
2537
# File 'lib/aws-sdk-iot/types.rb', line 2529

class CreateCustomMetricRequest < Struct.new(
  :metric_name,
  :display_name,
  :metric_type,
  :tags,
  :client_request_token)
  SENSITIVE = []
  include Aws::Structure
end

#display_nameString

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.

Returns:

  • (String)


2529
2530
2531
2532
2533
2534
2535
2536
2537
# File 'lib/aws-sdk-iot/types.rb', line 2529

class CreateCustomMetricRequest < Struct.new(
  :metric_name,
  :display_name,
  :metric_type,
  :tags,
  :client_request_token)
  SENSITIVE = []
  include Aws::Structure
end

#metric_nameString

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.

Returns:

  • (String)


2529
2530
2531
2532
2533
2534
2535
2536
2537
# File 'lib/aws-sdk-iot/types.rb', line 2529

class CreateCustomMetricRequest < Struct.new(
  :metric_name,
  :display_name,
  :metric_type,
  :tags,
  :client_request_token)
  SENSITIVE = []
  include Aws::Structure
end

#metric_typeString

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.

Returns:

  • (String)


2529
2530
2531
2532
2533
2534
2535
2536
2537
# File 'lib/aws-sdk-iot/types.rb', line 2529

class CreateCustomMetricRequest < Struct.new(
  :metric_name,
  :display_name,
  :metric_type,
  :tags,
  :client_request_token)
  SENSITIVE = []
  include Aws::Structure
end

#tagsArray<Types::Tag>

Metadata that can be used to manage the custom metric.

Returns:



2529
2530
2531
2532
2533
2534
2535
2536
2537
# File 'lib/aws-sdk-iot/types.rb', line 2529

class CreateCustomMetricRequest < Struct.new(
  :metric_name,
  :display_name,
  :metric_type,
  :tags,
  :client_request_token)
  SENSITIVE = []
  include Aws::Structure
end