lib/IO/K8s/PrometheusOperator/V1alpha1/OVHCloudSDConfig.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« lib/IO/K8s/PrometheusOperator/V1alpha1/OAuth2.pm ↑ Summary lib/IO/K8s/PrometheusOperator/V1alpha1/OpenStackSDConfig.pm »
1 package IO::K8s::PrometheusOperator::V1alpha1::OVHCloudSDConfig;
2 # ABSTRACT: OVHCloudSDConfig configurations allow retrieving scrape targets from OVHcloud's dedicated servers and VPS using their API.
3 1 our $VERSION = '1.112';
4 1 ▶use IO::K8s::Resource;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 k8s applicationKey => Str, { required => 'schema' };
7 1 k8s applicationSecret => 'Core::V1::ConfigMapKeySelector', { required => 'schema' };
8 1 k8s consumerKey => 'Core::V1::ConfigMapKeySelector', { required => 'schema' };
9 1 k8s endpoint => Str;
10 1 k8s refreshInterval => Str, { pattern => qr/^(0|(([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?)$/ };
11 1 k8s service => Str, { required => 'schema', enum => [qw(VPS DedicatedServer)] };
12  
13  
14  
15  
16  
17  
18  
19 1 1;
20  
21 __END__
« lib/IO/K8s/PrometheusOperator/V1alpha1/OAuth2.pm ↑ Summary lib/IO/K8s/PrometheusOperator/V1alpha1/OpenStackSDConfig.pm »