blib/lib/Paws/LookoutMetrics/UpdateMetricSet.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::LookoutMetrics::UpdateMetricSet;
3 use Moose;
4 has DimensionList => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
5 has MetricList => (is => 'ro', isa => 'ArrayRef[Paws::LookoutMetrics::Metric]');
6 has MetricSetArn => (is => 'ro', isa => 'Str', required => 1);
7 has MetricSetDescription => (is => 'ro', isa => 'Str');
8 has MetricSetFrequency => (is => 'ro', isa => 'Str');
9 has MetricSource => (is => 'ro', isa => 'Paws::LookoutMetrics::MetricSource');
10 has Offset => (is => 'ro', isa => 'Int');
11 has TimestampColumn => (is => 'ro', isa => 'Paws::LookoutMetrics::TimestampColumn');
12  
13 use MooseX::ClassAttribute;
14  
15 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateMetricSet');
16 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/UpdateMetricSet');
17 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
18 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LookoutMetrics::UpdateMetricSetResponse');
19 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::LookoutMetrics::UpdateMetricSet - Arguments for method UpdateMetricSet on L<Paws::LookoutMetrics>
26  
27 =head1 DESCRIPTION
28  
29 This class represents the parameters used for calling the method UpdateMetricSet on the
30 L<Amazon Lookout for Metrics|Paws::LookoutMetrics> service. Use the attributes of this class
31 as arguments to method UpdateMetricSet.
32  
33 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateMetricSet.
34  
35 =head1 SYNOPSIS
36  
37 my $lookoutmetrics = Paws->service('LookoutMetrics');
38 my $UpdateMetricSetResponse = $lookoutmetrics->UpdateMetricSet(
39 MetricSetArn => 'MyArn',
40 DimensionList => [
41 'MyColumnName', ... # min: 1, max: 63
42 ], # OPTIONAL
43 MetricList => [
44 {
45 AggregationFunction => 'AVG', # values: AVG, SUM
46 MetricName => 'MyColumnName', # min: 1, max: 63
47 Namespace => 'MyNamespace', # min: 1, max: 255; OPTIONAL
48 },
49 ...
50 ], # OPTIONAL
51 MetricSetDescription => 'MyMetricSetDescription', # OPTIONAL
52 MetricSetFrequency => 'P1D', # OPTIONAL
53 MetricSource => {
54 AppFlowConfig => {
55 FlowName => 'MyFlowName', # max: 256
56 RoleArn => 'MyArn', # max: 256
57  
58 }, # OPTIONAL
59 CloudWatchConfig => {
60 RoleArn => 'MyArn', # max: 256
61  
62 }, # OPTIONAL
63 RDSSourceConfig => {
64 DBInstanceIdentifier => 'MyRDSDatabaseIdentifier', # min: 1, max: 63
65 DatabaseHost => 'MyDatabaseHost', # min: 1, max: 253
66 DatabaseName => 'MyRDSDatabaseName', # min: 1, max: 64
67 DatabasePort => 1, # min: 1, max: 65535
68 RoleArn => 'MyArn', # max: 256
69 SecretManagerArn => 'MyPoirotSecretManagerArn', # max: 256
70 TableName => 'MyTableName', # min: 1, max: 100
71 VpcConfiguration => {
72 SecurityGroupIdList => [
73 'MySecurityGroupId', ... # min: 1, max: 255
74 ],
75 SubnetIdList => [
76 'MySubnetId', ... # max: 255
77 ],
78  
79 },
80  
81 }, # OPTIONAL
82 RedshiftSourceConfig => {
83 ClusterIdentifier => 'MyRedshiftClusterIdentifier', # min: 1, max: 63
84 DatabaseHost => 'MyDatabaseHost', # min: 1, max: 253
85 DatabaseName => 'MyRedshiftDatabaseName', # min: 1, max: 100
86 DatabasePort => 1, # min: 1, max: 65535
87 RoleArn => 'MyArn', # max: 256
88 SecretManagerArn => 'MyPoirotSecretManagerArn', # max: 256
89 TableName => 'MyTableName', # min: 1, max: 100
90 VpcConfiguration => {
91 SecurityGroupIdList => [
92 'MySecurityGroupId', ... # min: 1, max: 255
93 ],
94 SubnetIdList => [
95 'MySubnetId', ... # max: 255
96 ],
97  
98 },
99  
100 }, # OPTIONAL
101 S3SourceConfig => {
102 RoleArn => 'MyArn', # max: 256
103 FileFormatDescriptor => {
104 CsvFormatDescriptor => {
105 Charset => 'MyCharset', # max: 63; OPTIONAL
106 ContainsHeader => 1, # OPTIONAL
107 Delimiter => 'MyDelimiter', # max: 1; OPTIONAL
108 FileCompression => 'NONE', # values: NONE, GZIP; OPTIONAL
109 HeaderList => [
110 'MyColumnName', ... # min: 1, max: 63
111 ], # OPTIONAL
112 QuoteSymbol => 'MyQuoteSymbol', # max: 1; OPTIONAL
113 }, # OPTIONAL
114 JsonFormatDescriptor => {
115 Charset => 'MyCharset', # max: 63; OPTIONAL
116 FileCompression => 'NONE', # values: NONE, GZIP; OPTIONAL
117 }, # OPTIONAL
118 }, # OPTIONAL
119 HistoricalDataPathList => [
120 'MyHistoricalDataPath', ... # max: 1024
121 ], # min: 1, max: 1; OPTIONAL
122 TemplatedPathList => [
123 'MyTemplatedPath', ... # max: 1024
124 ], # min: 1, max: 1; OPTIONAL
125 }, # OPTIONAL
126 }, # OPTIONAL
127 Offset => 1, # OPTIONAL
128 TimestampColumn => {
129 ColumnFormat => 'MyDateTimeFormat', # max: 63; OPTIONAL
130 ColumnName => 'MyColumnName', # min: 1, max: 63
131 }, # OPTIONAL
132 );
133  
134 # Results:
135 my $MetricSetArn = $UpdateMetricSetResponse->MetricSetArn;
136  
137 # Returns a L<Paws::LookoutMetrics::UpdateMetricSetResponse> object.
138  
139 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.
140 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics/UpdateMetricSet>
141  
142 =head1 ATTRIBUTES
143  
144  
145 =head2 DimensionList => ArrayRef[Str|Undef]
146  
147 The dimension list.
148  
149  
150  
151 =head2 MetricList => ArrayRef[L<Paws::LookoutMetrics::Metric>]
152  
153 The metric list.
154  
155  
156  
157 =head2 B<REQUIRED> MetricSetArn => Str
158  
159 The ARN of the dataset to update.
160  
161  
162  
163 =head2 MetricSetDescription => Str
164  
165 The dataset's description.
166  
167  
168  
169 =head2 MetricSetFrequency => Str
170  
171 The dataset's interval.
172  
173 Valid values are: C<"P1D">, C<"PT1H">, C<"PT10M">, C<"PT5M">
174  
175 =head2 MetricSource => L<Paws::LookoutMetrics::MetricSource>
176  
177  
178  
179  
180  
181 =head2 Offset => Int
182  
183 After an interval ends, the amount of seconds that the detector waits
184 before importing data. Offset is only supported for S3 and Redshift
185 datasources.
186  
187  
188  
189 =head2 TimestampColumn => L<Paws::LookoutMetrics::TimestampColumn>
190  
191 The timestamp column.
192  
193  
194  
195  
196 =head1 SEE ALSO
197  
198 This class forms part of L<Paws>, documenting arguments for method UpdateMetricSet in L<Paws::LookoutMetrics>
199  
200 =head1 BUGS and CONTRIBUTIONS
201  
202 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
203  
204 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
205  
206 =cut
207