Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusTotal = "total" StatusPartial = "partial" )
View Source
const ( TypeMatchers = "Matchers" TypeSubscription = "subscription" )
View Source
const TargetExpressionRuleKey = "rule"
Variables ¶
This section is empty.
Functions ¶
func IsTypeValid ¶
Types ¶
type Repository ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repo Repository) *Service
type Silence ¶
type Silence struct { ID string `json:"id"` NamespaceID uint64 `json:"namespace_id"` Type string `json:"type"` TargetID uint64 `json:"target_id"` TargetExpression map[string]any `json:"target_expression"` Creator string `json:"creator"` Comment string `json:"comment"` CreatedAt time.Time `json:"created_at"` DeletedAt time.Time `json:"deleted_at"` }
func (Silence) EvaluateSubscriptionRule ¶
Click to show internal directories.
Click to hide internal directories.