line |
true |
false |
branch |
145
|
0 |
0 |
if (defined $args{'type'}) |
150
|
0 |
0 |
if (defined $args{'value'}) { } |
|
0 |
0 |
elsif (defined $args{'data_points'}) { } |
159
|
0 |
0 |
if (defined $args{'host'}) |
166
|
0 |
0 |
if (defined $args{'tags'}) |
205
|
0 |
0 |
if not defined $args{$arg} or $args{$arg} eq '' |
210
|
0 |
0 |
unless (defined $args{'value'} or defined $args{'data_points'}) |
216
|
0 |
0 |
if (defined $args{'value'} and defined $args{'data_points'}) |
222
|
0 |
0 |
unless ($args{'name'} =~ /^[a-zA-Z]/) |
227
|
0 |
0 |
if (defined $args{'value'}) |
229
|
0 |
0 |
unless $args{'value'} =~ /^\d+(\.\d+)?$/ |
233
|
0 |
0 |
if (defined $args{'data_points'}) |
235
|
0 |
0 |
unless Data::Validate::Type::is_arrayref($args{'data_points'}) |
241
|
0 |
0 |
unless Data::Validate::Type::is_arrayref($data_point) |
247
|
0 |
0 |
unless $timestamp =~ /^\d{10,}$/ |
250
|
0 |
0 |
unless $data_value =~ /^\d+(\.\d+)?$/ |
256
|
0 |
0 |
if (defined $args{'tags'} and scalar $args{'tags'} != 0) |
259
|
0 |
0 |
unless (Data::Validate::Type::is_arrayref($args{'tags'})) |
267
|
0 |
0 |
unless $tag =~ /^[a-zA-Z]/ |
271
|
0 |
0 |
if length $tag > 200 |
276
|
0 |
0 |
if $tag =~ /^\S+:\S+:/ |