| 1 | package IO::K8s::PrometheusOperator::V1::RuleGroup; | ||
| 2 | # ABSTRACT: RuleGroup is a list of sequentially evaluated recording and alerting rules. | ||
| 3 | 3 | our $VERSION = '1.112'; | |
| 4 | 3 | ▶ | use IO::K8s::Resource; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 3 | k8s interval => 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)?)$/ }; | |
| 7 | 3 | k8s labels => HashRef[Str]; | |
| 8 | 3 | k8s limit => Int; | |
| 9 | 3 | k8s name => Str, { required => 'schema' }; | |
| 10 | # Upstream's own text, kept as the plain string it is: the inline modifier | ||
| 11 | # has no ECMA262 spelling, so as a qr// (which also picks up an 'i' flag a | ||
| 12 | # CRD pattern cannot carry) to_crd could not emit it back. This is what | ||
| 13 | # IO::K8s::CRD::Emitter now renders for a flagged pattern too (k110). | ||
| 14 | 3 | k8s partial_response_strategy => Str, { pattern => '^(?i)(abort|warn)?$' }; | |
| 15 | 3 | k8s query_offset => 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)?)$/ }; | |
| 16 | 3 | k8s rules => ['+IO::K8s::PrometheusOperator::V1::Rule']; | |
| 17 | |||
| 18 | |||
| 19 | |||
| 20 | |||
| 21 | |||
| 22 | |||
| 23 | |||
| 24 | |||
| 25 | 3 | 1; | |
| 26 | |||
| 27 | __END__ | ||