File Coverage

blib/lib/IO/K8s/Api/Autoscaling/V2/ContainerResourceMetricSource.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package IO::K8s::Api::Autoscaling::V2::ContainerResourceMetricSource;
2             # ABSTRACT: ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set.
3             our $VERSION = '1.008';
4 1     1   1503 use IO::K8s::Resource;
  1         4  
  1         10  
5              
6             k8s container => Str, 'required';
7              
8              
9             k8s name => Str, 'required';
10              
11              
12             k8s target => 'Autoscaling::V2::MetricTarget', 'required';
13              
14              
15             1;
16              
17             __END__