« blib/lib/Paws/XRay/GetSamplingStatisticSummariesResult.pm
↑ Summary
blib/lib/Paws/XRay/GetSamplingTargetsResult.pm »
| 1 | |||
| 2 | package Paws::XRay::GetSamplingTargets; | ||
| 3 | use Moose; | ||
| 4 | has SamplingStatisticsDocuments => (is => 'ro', isa => 'ArrayRef[Paws::XRay::SamplingStatisticsDocument]', required => 1); | ||
| 5 | |||
| 6 | use MooseX::ClassAttribute; | ||
| 7 | |||
| 8 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'GetSamplingTargets'); | ||
| 9 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/SamplingTargets'); | ||
| 10 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 11 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::XRay::GetSamplingTargetsResult'); | ||
| 12 | 1; | ||
| 13 | |||
| 14 | ### main pod documentation begin ### | ||
| 15 | |||
| 16 | =head1 NAME | ||
| 17 | |||
| 18 | Paws::XRay::GetSamplingTargets - Arguments for method GetSamplingTargets on L<Paws::XRay> | ||
| 19 | |||
| 20 | =head1 DESCRIPTION | ||
| 21 | |||
| 22 | This class represents the parameters used for calling the method GetSamplingTargets on the | ||
| 23 | L<AWS X-Ray|Paws::XRay> service. Use the attributes of this class | ||
| 24 | as arguments to method GetSamplingTargets. | ||
| 25 | |||
| 26 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetSamplingTargets. | ||
| 27 | |||
| 28 | =head1 SYNOPSIS | ||
| 29 | |||
| 30 | my $xray = Paws->service('XRay'); | ||
| 31 | my $GetSamplingTargetsResult = $xray->GetSamplingTargets( | ||
| 32 | SamplingStatisticsDocuments => [ | ||
| 33 | { | ||
| 34 | ClientID => 'MyClientID', # min: 24, max: 24 | ||
| 35 | RequestCount => 1, | ||
| 36 | RuleName => 'MyRuleName', # min: 1, max: 32 | ||
| 37 | SampledCount => 1, | ||
| 38 | Timestamp => '1970-01-01T01:00:00', | ||
| 39 | BorrowCount => 1, # OPTIONAL | ||
| 40 | }, | ||
| 41 | ... | ||
| 42 | ], | ||
| 43 | |||
| 44 | ); | ||
| 45 | |||
| 46 | # Results: | ||
| 47 | my $LastRuleModification = $GetSamplingTargetsResult->LastRuleModification; | ||
| 48 | my $SamplingTargetDocuments = | ||
| 49 | $GetSamplingTargetsResult->SamplingTargetDocuments; | ||
| 50 | my $UnprocessedStatistics = | ||
| 51 | $GetSamplingTargetsResult->UnprocessedStatistics; | ||
| 52 | |||
| 53 | # Returns a L<Paws::XRay::GetSamplingTargetsResult> object. | ||
| 54 | |||
| 55 | Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. | ||
| 56 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/xray/GetSamplingTargets> | ||
| 57 | |||
| 58 | =head1 ATTRIBUTES | ||
| 59 | |||
| 60 | |||
| 61 | =head2 B<REQUIRED> SamplingStatisticsDocuments => ArrayRef[L<Paws::XRay::SamplingStatisticsDocument>] | ||
| 62 | |||
| 63 | Information about rules that the service is using to sample requests. | ||
| 64 | |||
| 65 | |||
| 66 | |||
| 67 | |||
| 68 | =head1 SEE ALSO | ||
| 69 | |||
| 70 | This class forms part of L<Paws>, documenting arguments for method GetSamplingTargets in L<Paws::XRay> | ||
| 71 | |||
| 72 | =head1 BUGS and CONTRIBUTIONS | ||
| 73 | |||
| 74 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 75 | |||
| 76 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 77 | |||
| 78 | =cut | ||
| 79 |