« blib/lib/Paws/ComputeOptimizer/LambdaFunctionUtilizationMetric.pm
↑ Summary
blib/lib/Paws/ComputeOptimizer/ReasonCodeSummary.pm »
| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::ComputeOptimizer::ProjectedMetric; | ||
| 3 | use Moose; | ||
| 4 | has Name => (is => 'ro', isa => 'Str', request_name => 'name', traits => ['NameInRequest']); | ||
| 5 | has Timestamps => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'timestamps', traits => ['NameInRequest']); | ||
| 6 | has Values => (is => 'ro', isa => 'ArrayRef[Num]', request_name => 'values', traits => ['NameInRequest']); | ||
| 7 | |||
| 8 | 1; | ||
| 9 | |||
| 10 | ### main pod documentation begin ### | ||
| 11 | |||
| 12 | =head1 NAME | ||
| 13 | |||
| 14 | Paws::ComputeOptimizer::ProjectedMetric | ||
| 15 | |||
| 16 | =head1 USAGE | ||
| 17 | |||
| 18 | This class represents one of two things: | ||
| 19 | |||
| 20 | =head3 Arguments in a call to a service | ||
| 21 | |||
| 22 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 23 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 24 | |||
| 25 | As an example, if Att1 is expected to be a Paws::ComputeOptimizer::ProjectedMetric object: | ||
| 26 | |||
| 27 | $service_obj->Method(Att1 => { Name => $value, ..., Values => $value }); | ||
| 28 | |||
| 29 | =head3 Results returned from an API call | ||
| 30 | |||
| 31 | Use accessors for each attribute. If Att1 is expected to be an Paws::ComputeOptimizer::ProjectedMetric object: | ||
| 32 | |||
| 33 | $result = $service_obj->Method(...); | ||
| 34 | $result->Att1->Name | ||
| 35 | |||
| 36 | =head1 DESCRIPTION | ||
| 37 | |||
| 38 | Describes a projected utilization metric of a recommendation option, | ||
| 39 | such as an Amazon EC2 instance. This represents the projected | ||
| 40 | utilization of a recommendation option had you used that resource | ||
| 41 | during the analyzed period. | ||
| 42 | |||
| 43 | Compare the utilization metric data of your resource against its | ||
| 44 | projected utilization metric data to determine the performance | ||
| 45 | difference between your current resource and the recommended option. | ||
| 46 | |||
| 47 | The C<Cpu> and C<Memory> metrics are the only projected utilization | ||
| 48 | metrics returned when you run the | ||
| 49 | C<GetEC2RecommendationProjectedMetrics> action. Additionally, the | ||
| 50 | C<Memory> metric is returned only for resources that have the unified | ||
| 51 | CloudWatch agent installed on them. For more information, see Enabling | ||
| 52 | Memory Utilization with the CloudWatch Agent | ||
| 53 | (https://docs.aws.amazon.com/compute-optimizer/latest/ug/metrics.html#cw-agent). | ||
| 54 | |||
| 55 | =head1 ATTRIBUTES | ||
| 56 | |||
| 57 | |||
| 58 | =head2 Name => Str | ||
| 59 | |||
| 60 | The name of the projected utilization metric. | ||
| 61 | |||
| 62 | The following projected utilization metrics are returned: | ||
| 63 | |||
| 64 | =over | ||
| 65 | |||
| 66 | =item * | ||
| 67 | |||
| 68 | C<Cpu> - The projected percentage of allocated EC2 compute units that | ||
| 69 | would be in use on the recommendation option had you used that resource | ||
| 70 | during the analyzed period. This metric identifies the processing power | ||
| 71 | required to run an application on the recommendation option. | ||
| 72 | |||
| 73 | Depending on the instance type, tools in your operating system can show | ||
| 74 | a lower percentage than CloudWatch when the instance is not allocated a | ||
| 75 | full processor core. | ||
| 76 | |||
| 77 | Units: Percent | ||
| 78 | |||
| 79 | =item * | ||
| 80 | |||
| 81 | C<Memory> - The percentage of memory that would be in use on the | ||
| 82 | recommendation option had you used that resource during the analyzed | ||
| 83 | period. This metric identifies the amount of memory required to run an | ||
| 84 | application on the recommendation option. | ||
| 85 | |||
| 86 | Units: Percent | ||
| 87 | |||
| 88 | The C<Memory> metric is returned only for resources that have the | ||
| 89 | unified CloudWatch agent installed on them. For more information, see | ||
| 90 | Enabling Memory Utilization with the CloudWatch Agent | ||
| 91 | (https://docs.aws.amazon.com/compute-optimizer/latest/ug/metrics.html#cw-agent). | ||
| 92 | |||
| 93 | =back | ||
| 94 | |||
| 95 | |||
| 96 | |||
| 97 | =head2 Timestamps => ArrayRef[Str|Undef] | ||
| 98 | |||
| 99 | The time stamps of the projected utilization metric. | ||
| 100 | |||
| 101 | |||
| 102 | =head2 Values => ArrayRef[Num] | ||
| 103 | |||
| 104 | The values of the projected utilization metrics. | ||
| 105 | |||
| 106 | |||
| 107 | |||
| 108 | =head1 SEE ALSO | ||
| 109 | |||
| 110 | This class forms part of L<Paws>, describing an object used in L<Paws::ComputeOptimizer> | ||
| 111 | |||
| 112 | =head1 BUGS and CONTRIBUTIONS | ||
| 113 | |||
| 114 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 115 | |||
| 116 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 117 | |||
| 118 | =cut | ||
| 119 |