Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertNotificationResponse ¶
type AlertNotificationResponse struct {
Status string `json:"status"`
AlertID string `json:"alertId,omitempty"`
EmailRecipients []string `json:"emailRecipients,omitempty"`
}
AlertNotificationResponse represents the outcome of processing an alert notification.
type AlertingRuleCondition ¶
type AlertingRuleCondition struct {
Enabled bool `json:"enabled"`
Window string `json:"window"`
Interval string `json:"interval"`
Operator string `json:"operator"`
Threshold float64 `json:"threshold"`
}
AlertingRuleCondition defines the condition that triggers the alert
type AlertingRuleMetadata ¶
type AlertingRuleMetadata struct {
Name string `json:"name"`
ComponentUID string `json:"component-uid"`
ProjectUID string `json:"project-uid"`
EnvironmentUID string `json:"environment-uid"`
Severity string `json:"severity"`
NotificationChannel string `json:"notificationChannel"`
EnableAiRootCauseAnalysis bool `json:"enableAiRootCauseAnalysis"`
}
AlertingRuleMetadata contains metadata about an alerting rule
type AlertingRuleRequest ¶
type AlertingRuleRequest struct {
Metadata AlertingRuleMetadata `json:"metadata"`
Source AlertingRuleSource `json:"source"`
Condition AlertingRuleCondition `json:"condition"`
}
AlertingRuleRequest represents the request body for PUT /api/alerting/rule/{sourceType}/{ruleName}
type AlertingRuleSource ¶
type AlertingRuleSource struct {
Type string `json:"type"`
Query string `json:"query"` // For log-based alert rules
}
AlertingRuleSource defines the source of data for the alerting rule
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 captures the result of an alert rule upsert.
Click to show internal directories.
Click to hide internal directories.