lib/IO/K8s/PrometheusOperator/V1/PodMonitorSpec.pm

filter: Statementstmt 100% 27 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 28 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« lib/IO/K8s/PrometheusOperator/V1/PodMonitor.pm ↑ Summary lib/IO/K8s/PrometheusOperator/V1/Probe.pm »
1 package IO::K8s::PrometheusOperator::V1::PodMonitorSpec;
2 # ABSTRACT: spec defines the specification of desired Pod selection for target discovery by Prometheus.
3 3 our $VERSION = '1.112';
4 3 ▶use IO::K8s::Resource;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 k8s attachMetadata => '+IO::K8s::PrometheusOperator::V1::AttachMetadata';
7 3 k8s bodySizeLimit => Str, { pattern => qr/(^0|([0-9]*[.])?[0-9]+((K|M|G|T|E|P)i?)?B)$/ };
8 3 k8s convertClassicHistogramsToNHCB => Bool;
9 3 k8s fallbackScrapeProtocol => Str, { enum => [qw(PrometheusProto OpenMetricsText0.0.1 OpenMetricsText1.0.0 PrometheusText0.0.4 PrometheusText1.0.0)] };
10 3 k8s jobLabel => Str;
11 3 k8s keepDroppedTargets => Int, { minimum => 0 };
12 3 k8s labelLimit => Int, { minimum => 0 };
13 3 k8s labelNameLengthLimit => Int, { minimum => 0 };
14 3 k8s labelValueLengthLimit => Int, { minimum => 0 };
15 3 k8s namespaceSelector => '+IO::K8s::PrometheusOperator::V1::NamespaceSelector';
16 3 k8s nativeHistogramBucketLimit => Int, { minimum => 0 };
17 3 k8s nativeHistogramMinBucketFactor => Quantity;
18 3 k8s podMetricsEndpoints => ['+IO::K8s::PrometheusOperator::V1::PodMetricsEndpoint'];
19 3 k8s podTargetLabels => [Str];
20 3 k8s sampleLimit => Int, { minimum => 0 };
21 3 k8s scrapeClass => Str;
22 3 k8s scrapeClassicHistograms => Bool;
23 3 k8s scrapeNativeHistograms => Bool;
24 3 k8s scrapeProtocols => [Str], { enum => [qw(PrometheusProto OpenMetricsText0.0.1 OpenMetricsText1.0.0 PrometheusText0.0.4 PrometheusText1.0.0)] };
25 3 k8s selector => 'Meta::V1::LabelSelector', { required => 'schema' };
26 3 k8s selectorMechanism => Str, { enum => [qw(RelabelConfig RoleSelector)] };
27 3 k8s targetLimit => Int, { minimum => 0 };
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51 3 1;
52  
53 __END__
« lib/IO/K8s/PrometheusOperator/V1/PodMonitor.pm ↑ Summary lib/IO/K8s/PrometheusOperator/V1/Probe.pm »