« blib/lib/Paws/ComputeOptimizer/LambdaFunctionRecommendationFilter.pm
↑ Summary
blib/lib/Paws/ComputeOptimizer/ProjectedMetric.pm »
| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::ComputeOptimizer::LambdaFunctionUtilizationMetric; | ||
| 3 | use Moose; | ||
| 4 | has Name => (is => 'ro', isa => 'Str', request_name => 'name', traits => ['NameInRequest']); | ||
| 5 | has Statistic => (is => 'ro', isa => 'Str', request_name => 'statistic', traits => ['NameInRequest']); | ||
| 6 | has Value => (is => 'ro', isa => 'Num', request_name => 'value', traits => ['NameInRequest']); | ||
| 7 | |||
| 8 | 1; | ||
| 9 | |||
| 10 | ### main pod documentation begin ### | ||
| 11 | |||
| 12 | =head1 NAME | ||
| 13 | |||
| 14 | Paws::ComputeOptimizer::LambdaFunctionUtilizationMetric | ||
| 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::LambdaFunctionUtilizationMetric object: | ||
| 26 | |||
| 27 | $service_obj->Method(Att1 => { Name => $value, ..., Value => $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::LambdaFunctionUtilizationMetric object: | ||
| 32 | |||
| 33 | $result = $service_obj->Method(...); | ||
| 34 | $result->Att1->Name | ||
| 35 | |||
| 36 | =head1 DESCRIPTION | ||
| 37 | |||
| 38 | Describes a utilization metric of an AWS Lambda function. | ||
| 39 | |||
| 40 | =head1 ATTRIBUTES | ||
| 41 | |||
| 42 | |||
| 43 | =head2 Name => Str | ||
| 44 | |||
| 45 | The name of the utilization metric. | ||
| 46 | |||
| 47 | The following utilization metrics are available: | ||
| 48 | |||
| 49 | =over | ||
| 50 | |||
| 51 | =item * | ||
| 52 | |||
| 53 | C<Duration> - The amount of time that your function code spends | ||
| 54 | processing an event. | ||
| 55 | |||
| 56 | =item * | ||
| 57 | |||
| 58 | C<Memory> - The amount of memory used per invocation. | ||
| 59 | |||
| 60 | =back | ||
| 61 | |||
| 62 | |||
| 63 | |||
| 64 | =head2 Statistic => Str | ||
| 65 | |||
| 66 | The statistic of the utilization metric. | ||
| 67 | |||
| 68 | The Compute Optimizer API, AWS Command Line Interface (AWS CLI), and | ||
| 69 | SDKs return utilization metrics using only the C<Maximum> statistic, | ||
| 70 | which is the highest value observed during the specified period. | ||
| 71 | |||
| 72 | The Compute Optimizer console displays graphs for some utilization | ||
| 73 | metrics using the C<Average> statistic, which is the value of C<Sum> / | ||
| 74 | C<SampleCount> during the specified period. For more information, see | ||
| 75 | Viewing resource recommendations | ||
| 76 | (https://docs.aws.amazon.com/compute-optimizer/latest/ug/viewing-recommendations.html) | ||
| 77 | in the I<AWS Compute Optimizer User Guide>. You can also get averaged | ||
| 78 | utilization metric data for your resources using Amazon CloudWatch. For | ||
| 79 | more information, see the Amazon CloudWatch User Guide | ||
| 80 | (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/WhatIsCloudWatch.html). | ||
| 81 | |||
| 82 | |||
| 83 | =head2 Value => Num | ||
| 84 | |||
| 85 | The value of the utilization metric. | ||
| 86 | |||
| 87 | |||
| 88 | |||
| 89 | =head1 SEE ALSO | ||
| 90 | |||
| 91 | This class forms part of L<Paws>, describing an object used in L<Paws::ComputeOptimizer> | ||
| 92 | |||
| 93 | =head1 BUGS and CONTRIBUTIONS | ||
| 94 | |||
| 95 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 96 | |||
| 97 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 98 | |||
| 99 | =cut | ||
| 100 |