Documentation
¶
Index ¶
Constants ¶
View Source
const (
// AlertRuleCleanupFinalizer is used to ensure alert rules are deleted from the backend before the CR is removed
AlertRuleCleanupFinalizer = "openchoreo.dev/alertrule-cleanup"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertingRuleCondition ¶
type AlertingRuleCondition struct {
Enabled bool `json:"enabled"`
Window string `json:"window"`
Interval string `json:"interval"`
Operator string `json:"operator"`
Threshold int64 `json:"threshold"`
}
AlertingRuleCondition represents the condition section of the observer alerting rule API.
type AlertingRuleMetadata ¶
type AlertingRuleMetadata struct {
Name string `json:"name"`
ComponentUID string `json:"component-uid,omitempty"`
ProjectUID string `json:"project-uid,omitempty"`
EnvironmentUID string `json:"environment-uid,omitempty"`
Severity string `json:"severity,omitempty"`
EnableAiRootCauseAnalysis bool `json:"enableAiRootCauseAnalysis,omitempty"`
NotificationChannel string `json:"notificationChannel,omitempty"`
}
AlertingRuleMetadata represents the metadata section of the observer alerting rule API.
type AlertingRuleRequest ¶
type AlertingRuleRequest struct {
Metadata AlertingRuleMetadata `json:"metadata"`
Source AlertingRuleSource `json:"source"`
Condition AlertingRuleCondition `json:"condition"`
}
AlertingRuleRequest is the payload sent to the observer alerting API.
type AlertingRuleSource ¶
type AlertingRuleSource struct {
Type string `json:"type"`
Query string `json:"query,omitempty"`
// Metric is kept for future metric-based alerting support.
Metric string `json:"metric,omitempty"`
}
AlertingRuleSource represents the source section of the observer alerting rule API.
type AlertingRuleSyncResponse ¶
type AlertingRuleSyncResponse struct {
Status string `json:"status"`
LogicalID string `json:"logicalId"`
BackendID string `json:"backendId"`
Action string `json:"action"`
LastSynced string `json:"lastSynced"`
}
AlertingRuleSyncResponse is the response from the observer alerting API.
type Reconciler ¶
type Reconciler struct {
client.Client
Scheme *runtime.Scheme
// contains filtered or unexported fields
}
Reconciler reconciles a ObservabilityAlertRule object
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.