Class: Aws::ComputeOptimizer::Types::GetEC2RecommendationProjectedMetricsRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-computeoptimizer/lib/aws-sdk-computeoptimizer/types.rb

Overview

Note:

When making an API call, you may pass GetEC2RecommendationProjectedMetricsRequest data as a hash:

{
  instance_arn: "InstanceArn", # required
  stat: "Maximum", # required, accepts Maximum, Average
  period: 1, # required
  start_time: Time.now, # required
  end_time: Time.now, # required
  recommendation_preferences: {
    cpu_vendor_architectures: ["AWS_ARM64"], # accepts AWS_ARM64, CURRENT
  },
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#end_timeTime

The timestamp of the last projected metrics data point to return.

Returns:

  • (Time)


1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
# File 'gems/aws-sdk-computeoptimizer/lib/aws-sdk-computeoptimizer/types.rb', line 1496

class GetEC2RecommendationProjectedMetricsRequest < Struct.new(
  :instance_arn,
  :stat,
  :period,
  :start_time,
  :end_time,
  :recommendation_preferences)
  SENSITIVE = []
  include Aws::Structure
end

#instance_arnString

The Amazon Resource Name (ARN) of the instances for which to return recommendation projected metrics.

Returns:

  • (String)


1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
# File 'gems/aws-sdk-computeoptimizer/lib/aws-sdk-computeoptimizer/types.rb', line 1496

class GetEC2RecommendationProjectedMetricsRequest < Struct.new(
  :instance_arn,
  :stat,
  :period,
  :start_time,
  :end_time,
  :recommendation_preferences)
  SENSITIVE = []
  include Aws::Structure
end

#periodInteger

The granularity, in seconds, of the projected metrics data points.

Returns:

  • (Integer)


1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
# File 'gems/aws-sdk-computeoptimizer/lib/aws-sdk-computeoptimizer/types.rb', line 1496

class GetEC2RecommendationProjectedMetricsRequest < Struct.new(
  :instance_arn,
  :stat,
  :period,
  :start_time,
  :end_time,
  :recommendation_preferences)
  SENSITIVE = []
  include Aws::Structure
end

#recommendation_preferencesTypes::RecommendationPreferences

An object to specify the preferences for the Amazon EC2 recommendation projected metrics to return in the response.



1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
# File 'gems/aws-sdk-computeoptimizer/lib/aws-sdk-computeoptimizer/types.rb', line 1496

class GetEC2RecommendationProjectedMetricsRequest < Struct.new(
  :instance_arn,
  :stat,
  :period,
  :start_time,
  :end_time,
  :recommendation_preferences)
  SENSITIVE = []
  include Aws::Structure
end

#start_timeTime

The timestamp of the first projected metrics data point to return.

Returns:

  • (Time)


1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
# File 'gems/aws-sdk-computeoptimizer/lib/aws-sdk-computeoptimizer/types.rb', line 1496

class GetEC2RecommendationProjectedMetricsRequest < Struct.new(
  :instance_arn,
  :stat,
  :period,
  :start_time,
  :end_time,
  :recommendation_preferences)
  SENSITIVE = []
  include Aws::Structure
end

#statString

The statistic of the projected metrics.

Returns:

  • (String)


1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
# File 'gems/aws-sdk-computeoptimizer/lib/aws-sdk-computeoptimizer/types.rb', line 1496

class GetEC2RecommendationProjectedMetricsRequest < Struct.new(
  :instance_arn,
  :stat,
  :period,
  :start_time,
  :end_time,
  :recommendation_preferences)
  SENSITIVE = []
  include Aws::Structure
end