blib/lib/Paws/Kafka/UpdateMonitoring.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Kafka::UpdateMonitoring;
3 use Moose;
4 has ClusterArn => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'clusterArn', required => 1);
5 has CurrentVersion => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'currentVersion', required => 1);
6 has EnhancedMonitoring => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'enhancedMonitoring');
7 has LoggingInfo => (is => 'ro', isa => 'Paws::Kafka::LoggingInfo', traits => ['NameInRequest'], request_name => 'loggingInfo');
8 has OpenMonitoring => (is => 'ro', isa => 'Paws::Kafka::OpenMonitoringInfo', traits => ['NameInRequest'], request_name => 'openMonitoring');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateMonitoring');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/clusters/{clusterArn}/monitoring');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Kafka::UpdateMonitoringResponse');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::Kafka::UpdateMonitoring - Arguments for method UpdateMonitoring on L<Paws::Kafka>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method UpdateMonitoring on the
27 L<Managed Streaming for Kafka|Paws::Kafka> service. Use the attributes of this class
28 as arguments to method UpdateMonitoring.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateMonitoring.
31  
32 =head1 SYNOPSIS
33  
34 my $kafka = Paws->service('Kafka');
35 my $UpdateMonitoringResponse = $kafka->UpdateMonitoring(
36 ClusterArn => 'My__string',
37 CurrentVersion => 'My__string',
38 EnhancedMonitoring => 'DEFAULT', # OPTIONAL
39 LoggingInfo => {
40 BrokerLogs => {
41 CloudWatchLogs => {
42 Enabled => 1,
43 LogGroup => 'My__string',
44 }, # OPTIONAL
45 Firehose => {
46 Enabled => 1,
47 DeliveryStream => 'My__string',
48 }, # OPTIONAL
49 S3 => {
50 Enabled => 1,
51 Bucket => 'My__string',
52 Prefix => 'My__string',
53 }, # OPTIONAL
54 },
55  
56 }, # OPTIONAL
57 OpenMonitoring => {
58 Prometheus => {
59 JmxExporter => {
60 EnabledInBroker => 1,
61  
62 }, # OPTIONAL
63 NodeExporter => {
64 EnabledInBroker => 1,
65  
66 }, # OPTIONAL
67 },
68  
69 }, # OPTIONAL
70 );
71  
72 # Results:
73 my $ClusterArn = $UpdateMonitoringResponse->ClusterArn;
74 my $ClusterOperationArn = $UpdateMonitoringResponse->ClusterOperationArn;
75  
76 # Returns a L<Paws::Kafka::UpdateMonitoringResponse> object.
77  
78 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.
79 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/kafka/UpdateMonitoring>
80  
81 =head1 ATTRIBUTES
82  
83  
84 =head2 B<REQUIRED> ClusterArn => Str
85  
86 The Amazon Resource Name (ARN) that uniquely identifies the cluster.
87  
88  
89  
90 =head2 B<REQUIRED> CurrentVersion => Str
91  
92 The version of the MSK cluster to update. Cluster versions aren't
93 simple numbers. You can describe an MSK cluster to find its version.
94 When this update operation is successful, it generates a new cluster
95 version.
96  
97  
98  
99 =head2 EnhancedMonitoring => Str
100  
101 Specifies which Apache Kafka metrics Amazon MSK gathers and sends to
102 Amazon CloudWatch for this cluster.
103  
104 Valid values are: C<"DEFAULT">, C<"PER_BROKER">, C<"PER_TOPIC_PER_BROKER">, C<"PER_TOPIC_PER_PARTITION">
105  
106 =head2 LoggingInfo => L<Paws::Kafka::LoggingInfo>
107  
108  
109  
110  
111  
112 =head2 OpenMonitoring => L<Paws::Kafka::OpenMonitoringInfo>
113  
114 The settings for open monitoring.
115  
116  
117  
118  
119 =head1 SEE ALSO
120  
121 This class forms part of L<Paws>, documenting arguments for method UpdateMonitoring in L<Paws::Kafka>
122  
123 =head1 BUGS and CONTRIBUTIONS
124  
125 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
126  
127 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
128  
129 =cut
130