« lib/IO/K8s/PrometheusOperator/V1/Prometheus.pm
↑ Summary
lib/IO/K8s/PrometheusOperator/V1/PrometheusRuleExcludeConfig.pm »
| 1 | package IO::K8s::PrometheusOperator::V1::PrometheusRule; | ||
| 2 | # ABSTRACT: The `PrometheusRule` custom resource definition (CRD) defines [alerting](https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/) and [recording](https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/) rules to be evaluated by `Prometheus` or `ThanosRuler` objects. | ||
| 3 | 5 | our $VERSION = '1.112'; | |
| 4 | use IO::K8s::APIObject | ||
| 5 | 5 | ▶ | api_version => 'monitoring.coreos.com/v1', |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | resource_plural => 'prometheusrules', | ||
| 7 | 5 | subresources => { status => {} }; | |
| 8 | 5 | with 'IO::K8s::Role::Namespaced'; | |
| 9 | |||
| 10 | 5 | k8s spec => '+IO::K8s::PrometheusOperator::V1::PrometheusRuleSpec', { required => 'schema' }; | |
| 11 | 5 | k8s status => '+IO::K8s::PrometheusOperator::V1::ConfigResourceStatus'; | |
| 12 | |||
| 13 | |||
| 14 | |||
| 15 | 5 | 1; | |
| 16 | |||
| 17 | __END__ | ||