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

filter: Statementstmt 100% 29 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 30 / 30 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« lib/IO/K8s/PrometheusOperator/V1/ServiceMonitor.pm ↑ Summary lib/IO/K8s/PrometheusOperator/V1/ShardRetentionPolicy.pm »
1 package IO::K8s::PrometheusOperator::V1::ServiceMonitorSpec;
2 # ABSTRACT: spec defines the specification of desired Service 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 endpoints => ['+IO::K8s::PrometheusOperator::V1::Endpoint'], { required => 'schema' };
10 3 k8s fallbackScrapeProtocol => Str, { enum => [qw(PrometheusProto OpenMetricsText0.0.1 OpenMetricsText1.0.0 PrometheusText0.0.4 PrometheusText1.0.0)] };
11 3 k8s jobLabel => Str;
12 3 k8s keepDroppedTargets => Int, { minimum => 0 };
13 3 k8s labelLimit => Int, { minimum => 0 };
14 3 k8s labelNameLengthLimit => Int, { minimum => 0 };
15 3 k8s labelValueLengthLimit => Int, { minimum => 0 };
16 3 k8s namespaceSelector => '+IO::K8s::PrometheusOperator::V1::NamespaceSelector';
17 3 k8s nativeHistogramBucketLimit => Int, { minimum => 0 };
18 3 k8s nativeHistogramMinBucketFactor => Quantity;
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 serviceDiscoveryRole => Str, { enum => [qw(Endpoints EndpointSlice)] };
28 3 k8s targetLabels => [Str];
29 3 k8s targetLimit => Int, { minimum => 0 };
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55 3 1;
56  
57 __END__
« lib/IO/K8s/PrometheusOperator/V1/ServiceMonitor.pm ↑ Summary lib/IO/K8s/PrometheusOperator/V1/ShardRetentionPolicy.pm »