Monitoring/V3/Alert/Types.pm untested

filter: Statementstmt 0.0% 0 / 319 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod n/a totaltotal 0.0% 0 / 324 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Google::Monitoring::V3::Alert::Types;
2  
3 use strict;
4 use warnings;
5  
6 use Type::Library -base;
7 use Type::Utils -all;
8 use Types::Standard -types;
9  
10 declare 'AlertPolicy',
11 as InstanceOf['Google::Monitoring::V3::Alert::AlertPolicy'];
12  
13 coerce 'AlertPolicy',
14 from HashRef, via { 'Google::Monitoring::V3::Alert::AlertPolicy'->new($_) };
15  
16 declare 'RepeatedAlertPolicy',
17 as ArrayRef[AlertPolicy()];
18  
19 coerce 'RepeatedAlertPolicy',
20 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Alert::AlertPolicy'->new($_) } @$_ ] };
21  
22 declare 'MapStringAlertPolicy',
23 as HashRef[AlertPolicy()];
24  
25 declare 'ConditionCombinerType',
26 as (Int | Str);
27  
28 declare 'Severity',
29 as (Int | Str);
30  
31 declare 'Documentation',
32 as InstanceOf['Google::Monitoring::V3::Alert::AlertPolicy::Documentation'];
33  
34 coerce 'Documentation',
35 from HashRef, via { 'Google::Monitoring::V3::Alert::AlertPolicy::Documentation'->new($_) };
36  
37 declare 'RepeatedDocumentation',
38 as ArrayRef[Documentation()];
39  
40 coerce 'RepeatedDocumentation',
41 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Alert::AlertPolicy::Documentation'->new($_) } @$_ ] };
42  
43 declare 'MapStringDocumentation',
44 as HashRef[Documentation()];
45  
46 declare 'Link',
47 as InstanceOf['Google::Monitoring::V3::Alert::AlertPolicy::Documentation::Link'];
48  
49 coerce 'Link',
50 from HashRef, via { 'Google::Monitoring::V3::Alert::AlertPolicy::Documentation::Link'->new($_) };
51  
52 declare 'RepeatedLink',
53 as ArrayRef[Link()];
54  
55 coerce 'RepeatedLink',
56 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Alert::AlertPolicy::Documentation::Link'->new($_) } @$_ ] };
57  
58 declare 'MapStringLink',
59 as HashRef[Link()];
60  
61 declare 'Condition',
62 as InstanceOf['Google::Monitoring::V3::Alert::AlertPolicy::Condition'];
63  
64 coerce 'Condition',
65 from HashRef, via { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition'->new($_) };
66  
67 declare 'RepeatedCondition',
68 as ArrayRef[Condition()];
69  
70 coerce 'RepeatedCondition',
71 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition'->new($_) } @$_ ] };
72  
73 declare 'MapStringCondition',
74 as HashRef[Condition()];
75  
76 declare 'EvaluationMissingData',
77 as (Int | Str);
78  
79 declare 'Trigger',
80 as InstanceOf['Google::Monitoring::V3::Alert::AlertPolicy::Condition::Trigger'];
81  
82 coerce 'Trigger',
83 from HashRef, via { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::Trigger'->new($_) };
84  
85 declare 'RepeatedTrigger',
86 as ArrayRef[Trigger()];
87  
88 coerce 'RepeatedTrigger',
89 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::Trigger'->new($_) } @$_ ] };
90  
91 declare 'MapStringTrigger',
92 as HashRef[Trigger()];
93  
94 declare 'MetricThreshold',
95 as InstanceOf['Google::Monitoring::V3::Alert::AlertPolicy::Condition::MetricThreshold'];
96  
97 coerce 'MetricThreshold',
98 from HashRef, via { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::MetricThreshold'->new($_) };
99  
100 declare 'RepeatedMetricThreshold',
101 as ArrayRef[MetricThreshold()];
102  
103 coerce 'RepeatedMetricThreshold',
104 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::MetricThreshold'->new($_) } @$_ ] };
105  
106 declare 'MapStringMetricThreshold',
107 as HashRef[MetricThreshold()];
108  
109 declare 'ForecastOptions',
110 as InstanceOf['Google::Monitoring::V3::Alert::AlertPolicy::Condition::MetricThreshold::ForecastOptions'];
111  
112 coerce 'ForecastOptions',
113 from HashRef, via { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::MetricThreshold::ForecastOptions'->new($_) };
114  
115 declare 'RepeatedForecastOptions',
116 as ArrayRef[ForecastOptions()];
117  
118 coerce 'RepeatedForecastOptions',
119 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::MetricThreshold::ForecastOptions'->new($_) } @$_ ] };
120  
121 declare 'MapStringForecastOptions',
122 as HashRef[ForecastOptions()];
123  
124 declare 'MetricAbsence',
125 as InstanceOf['Google::Monitoring::V3::Alert::AlertPolicy::Condition::MetricAbsence'];
126  
127 coerce 'MetricAbsence',
128 from HashRef, via { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::MetricAbsence'->new($_) };
129  
130 declare 'RepeatedMetricAbsence',
131 as ArrayRef[MetricAbsence()];
132  
133 coerce 'RepeatedMetricAbsence',
134 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::MetricAbsence'->new($_) } @$_ ] };
135  
136 declare 'MapStringMetricAbsence',
137 as HashRef[MetricAbsence()];
138  
139 declare 'LogMatch',
140 as InstanceOf['Google::Monitoring::V3::Alert::AlertPolicy::Condition::LogMatch'];
141  
142 coerce 'LogMatch',
143 from HashRef, via { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::LogMatch'->new($_) };
144  
145 declare 'RepeatedLogMatch',
146 as ArrayRef[LogMatch()];
147  
148 coerce 'RepeatedLogMatch',
149 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::LogMatch'->new($_) } @$_ ] };
150  
151 declare 'MapStringLogMatch',
152 as HashRef[LogMatch()];
153  
154 declare 'LabelExtractorsEntry',
155 as InstanceOf['Google::Monitoring::V3::Alert::AlertPolicy::Condition::LogMatch::LabelExtractorsEntry'];
156  
157 coerce 'LabelExtractorsEntry',
158 from HashRef, via { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::LogMatch::LabelExtractorsEntry'->new($_) };
159  
160 declare 'RepeatedLabelExtractorsEntry',
161 as ArrayRef[LabelExtractorsEntry()];
162  
163 coerce 'RepeatedLabelExtractorsEntry',
164 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::LogMatch::LabelExtractorsEntry'->new($_) } @$_ ] };
165  
166 declare 'MapStringLabelExtractorsEntry',
167 as HashRef[LabelExtractorsEntry()];
168  
169 declare 'MonitoringQueryLanguageCondition',
170 as InstanceOf['Google::Monitoring::V3::Alert::AlertPolicy::Condition::MonitoringQueryLanguageCondition'];
171  
172 coerce 'MonitoringQueryLanguageCondition',
173 from HashRef, via { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::MonitoringQueryLanguageCondition'->new($_) };
174  
175 declare 'RepeatedMonitoringQueryLanguageCondition',
176 as ArrayRef[MonitoringQueryLanguageCondition()];
177  
178 coerce 'RepeatedMonitoringQueryLanguageCondition',
179 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::MonitoringQueryLanguageCondition'->new($_) } @$_ ] };
180  
181 declare 'MapStringMonitoringQueryLanguageCondition',
182 as HashRef[MonitoringQueryLanguageCondition()];
183  
184 declare 'PrometheusQueryLanguageCondition',
185 as InstanceOf['Google::Monitoring::V3::Alert::AlertPolicy::Condition::PrometheusQueryLanguageCondition'];
186  
187 coerce 'PrometheusQueryLanguageCondition',
188 from HashRef, via { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::PrometheusQueryLanguageCondition'->new($_) };
189  
190 declare 'RepeatedPrometheusQueryLanguageCondition',
191 as ArrayRef[PrometheusQueryLanguageCondition()];
192  
193 coerce 'RepeatedPrometheusQueryLanguageCondition',
194 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::PrometheusQueryLanguageCondition'->new($_) } @$_ ] };
195  
196 declare 'MapStringPrometheusQueryLanguageCondition',
197 as HashRef[PrometheusQueryLanguageCondition()];
198  
199 declare 'LabelsEntry',
200 as InstanceOf['Google::Monitoring::V3::Alert::AlertPolicy::Condition::PrometheusQueryLanguageCondition::LabelsEntry'];
201  
202 coerce 'LabelsEntry',
203 from HashRef, via { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::PrometheusQueryLanguageCondition::LabelsEntry'->new($_) };
204  
205 declare 'RepeatedLabelsEntry',
206 as ArrayRef[LabelsEntry()];
207  
208 coerce 'RepeatedLabelsEntry',
209 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::PrometheusQueryLanguageCondition::LabelsEntry'->new($_) } @$_ ] };
210  
211 declare 'MapStringLabelsEntry',
212 as HashRef[LabelsEntry()];
213  
214 declare 'SqlCondition',
215 as InstanceOf['Google::Monitoring::V3::Alert::AlertPolicy::Condition::SqlCondition'];
216  
217 coerce 'SqlCondition',
218 from HashRef, via { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::SqlCondition'->new($_) };
219  
220 declare 'RepeatedSqlCondition',
221 as ArrayRef[SqlCondition()];
222  
223 coerce 'RepeatedSqlCondition',
224 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::SqlCondition'->new($_) } @$_ ] };
225  
226 declare 'MapStringSqlCondition',
227 as HashRef[SqlCondition()];
228  
229 declare 'Minutes',
230 as InstanceOf['Google::Monitoring::V3::Alert::AlertPolicy::Condition::SqlCondition::Minutes'];
231  
232 coerce 'Minutes',
233 from HashRef, via { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::SqlCondition::Minutes'->new($_) };
234  
235 declare 'RepeatedMinutes',
236 as ArrayRef[Minutes()];
237  
238 coerce 'RepeatedMinutes',
239 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::SqlCondition::Minutes'->new($_) } @$_ ] };
240  
241 declare 'MapStringMinutes',
242 as HashRef[Minutes()];
243  
244 declare 'Hourly',
245 as InstanceOf['Google::Monitoring::V3::Alert::AlertPolicy::Condition::SqlCondition::Hourly'];
246  
247 coerce 'Hourly',
248 from HashRef, via { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::SqlCondition::Hourly'->new($_) };
249  
250 declare 'RepeatedHourly',
251 as ArrayRef[Hourly()];
252  
253 coerce 'RepeatedHourly',
254 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::SqlCondition::Hourly'->new($_) } @$_ ] };
255  
256 declare 'MapStringHourly',
257 as HashRef[Hourly()];
258  
259 declare 'Daily',
260 as InstanceOf['Google::Monitoring::V3::Alert::AlertPolicy::Condition::SqlCondition::Daily'];
261  
262 coerce 'Daily',
263 from HashRef, via { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::SqlCondition::Daily'->new($_) };
264  
265 declare 'RepeatedDaily',
266 as ArrayRef[Daily()];
267  
268 coerce 'RepeatedDaily',
269 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::SqlCondition::Daily'->new($_) } @$_ ] };
270  
271 declare 'MapStringDaily',
272 as HashRef[Daily()];
273  
274 declare 'RowCountTest',
275 as InstanceOf['Google::Monitoring::V3::Alert::AlertPolicy::Condition::SqlCondition::RowCountTest'];
276  
277 coerce 'RowCountTest',
278 from HashRef, via { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::SqlCondition::RowCountTest'->new($_) };
279  
280 declare 'RepeatedRowCountTest',
281 as ArrayRef[RowCountTest()];
282  
283 coerce 'RepeatedRowCountTest',
284 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::SqlCondition::RowCountTest'->new($_) } @$_ ] };
285  
286 declare 'MapStringRowCountTest',
287 as HashRef[RowCountTest()];
288  
289 declare 'BooleanTest',
290 as InstanceOf['Google::Monitoring::V3::Alert::AlertPolicy::Condition::SqlCondition::BooleanTest'];
291  
292 coerce 'BooleanTest',
293 from HashRef, via { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::SqlCondition::BooleanTest'->new($_) };
294  
295 declare 'RepeatedBooleanTest',
296 as ArrayRef[BooleanTest()];
297  
298 coerce 'RepeatedBooleanTest',
299 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Alert::AlertPolicy::Condition::SqlCondition::BooleanTest'->new($_) } @$_ ] };
300  
301 declare 'MapStringBooleanTest',
302 as HashRef[BooleanTest()];
303  
304 declare 'AlertStrategy',
305 as InstanceOf['Google::Monitoring::V3::Alert::AlertPolicy::AlertStrategy'];
306  
307 coerce 'AlertStrategy',
308 from HashRef, via { 'Google::Monitoring::V3::Alert::AlertPolicy::AlertStrategy'->new($_) };
309  
310 declare 'RepeatedAlertStrategy',
311 as ArrayRef[AlertStrategy()];
312  
313 coerce 'RepeatedAlertStrategy',
314 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Alert::AlertPolicy::AlertStrategy'->new($_) } @$_ ] };
315  
316 declare 'MapStringAlertStrategy',
317 as HashRef[AlertStrategy()];
318  
319 declare 'NotificationPrompt',
320 as (Int | Str);
321  
322 declare 'NotificationRateLimit',
323 as InstanceOf['Google::Monitoring::V3::Alert::AlertPolicy::AlertStrategy::NotificationRateLimit'];
324  
325 coerce 'NotificationRateLimit',
326 from HashRef, via { 'Google::Monitoring::V3::Alert::AlertPolicy::AlertStrategy::NotificationRateLimit'->new($_) };
327  
328 declare 'RepeatedNotificationRateLimit',
329 as ArrayRef[NotificationRateLimit()];
330  
331 coerce 'RepeatedNotificationRateLimit',
332 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Alert::AlertPolicy::AlertStrategy::NotificationRateLimit'->new($_) } @$_ ] };
333  
334 declare 'MapStringNotificationRateLimit',
335 as HashRef[NotificationRateLimit()];
336  
337 declare 'NotificationChannelStrategy',
338 as InstanceOf['Google::Monitoring::V3::Alert::AlertPolicy::AlertStrategy::NotificationChannelStrategy'];
339  
340 coerce 'NotificationChannelStrategy',
341 from HashRef, via { 'Google::Monitoring::V3::Alert::AlertPolicy::AlertStrategy::NotificationChannelStrategy'->new($_) };
342  
343 declare 'RepeatedNotificationChannelStrategy',
344 as ArrayRef[NotificationChannelStrategy()];
345  
346 coerce 'RepeatedNotificationChannelStrategy',
347 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Alert::AlertPolicy::AlertStrategy::NotificationChannelStrategy'->new($_) } @$_ ] };
348  
349 declare 'MapStringNotificationChannelStrategy',
350 as HashRef[NotificationChannelStrategy()];
351  
352 declare 'UserLabelsEntry',
353 as InstanceOf['Google::Monitoring::V3::Alert::AlertPolicy::UserLabelsEntry'];
354  
355 coerce 'UserLabelsEntry',
356 from HashRef, via { 'Google::Monitoring::V3::Alert::AlertPolicy::UserLabelsEntry'->new($_) };
357  
358 declare 'RepeatedUserLabelsEntry',
359 as ArrayRef[UserLabelsEntry()];
360  
361 coerce 'RepeatedUserLabelsEntry',
362 from ArrayRef[HashRef], via { [ map { 'Google::Monitoring::V3::Alert::AlertPolicy::UserLabelsEntry'->new($_) } @$_ ] };
363  
364 declare 'MapStringUserLabelsEntry',
365 as HashRef[UserLabelsEntry()];
366  
367 1;
368  
369 __END__