« lib/IO/K8s/PrometheusOperator/V1/RollingUpdateStatefulSetStrategy.pm
↑ Summary
lib/IO/K8s/PrometheusOperator/V1/RuleGroup.pm »
| 1 | package IO::K8s::PrometheusOperator::V1::Rule; | ||
| 2 | # ABSTRACT: Rule describes an alerting or recording rule See Prometheus documentation: [alerting](https://www.prometheus.io/docs/prometheus/latest/configuration/alerting_rules/) or [recording](https://www.prometheus.io/docs/prometheus/latest/configuration/recording_rules/#recording-rules) rule | ||
| 3 | 3 | our $VERSION = '1.112'; | |
| 4 | 3 | ▶ | use IO::K8s::Resource; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 3 | k8s alert => Str; | |
| 7 | 3 | k8s annotations => HashRef[Str]; | |
| 8 | 3 | k8s expr => IntOrStr, { required => 'schema' }; | |
| 9 | 3 | k8s for => 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)?)$/ }; | |
| 10 | 3 | k8s keep_firing_for => 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 | 3 | k8s labels => HashRef[Str]; | |
| 12 | 3 | k8s record => Str; | |
| 13 | |||
| 14 | |||
| 15 | |||
| 16 | |||
| 17 | |||
| 18 | |||
| 19 | |||
| 20 | |||
| 21 | 3 | 1; | |
| 22 | |||
| 23 | __END__ | ||