Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct {
Id uint64 `gorm:"primarykey"`
Provider *Provider
ProviderId uint64
ResourceName string
MetricName string
MetricValue string
Severity string
Rule string
TriggeredAt time.Time
CreatedAt time.Time
UpdatedAt time.Time
}
func (*Alert) FromDomain ¶
type Namespace ¶
type Namespace struct {
Id uint64 `gorm:"primarykey"`
Provider *Provider
ProviderId uint64 `gorm:"uniqueIndex:urn_provider_id_unique"`
Urn string `gorm:"uniqueIndex:urn_provider_id_unique"`
Name string
Credentials string
Labels StringStringMap `gorm:"type:jsonb" sql:"type:jsonb" `
CreatedAt time.Time
UpdatedAt time.Time
}
func (*Namespace) FromDomain ¶
func (namespace *Namespace) FromDomain(n *domain.EncryptedNamespace) error
type Provider ¶
type Receiver ¶
type Receiver struct {
Id uint64 `gorm:"primarykey"`
Name string
Type string
Labels StringStringMap `gorm:"type:jsonb" sql:"type:jsonb" `
Configurations StringInterfaceMap `gorm:"type:jsonb" sql:"type:jsonb" `
Data StringInterfaceMap `gorm:"-"`
CreatedAt time.Time
UpdatedAt time.Time
}
func (*Receiver) FromDomain ¶
type ReceiverMetadata ¶
type ReceiverMetadataList ¶
type ReceiverMetadataList []ReceiverMetadata
func (*ReceiverMetadataList) Scan ¶
func (list *ReceiverMetadataList) Scan(src interface{}) error
type Rule ¶
type Rule struct {
Id uint64 `gorm:"primarykey"`
CreatedAt time.Time
UpdatedAt time.Time
Name string `gorm:"index:idx_rule_name,unique"`
Namespace string `gorm:"uniqueIndex:unique_name"`
GroupName string `gorm:"uniqueIndex:unique_name"`
Template string `gorm:"uniqueIndex:unique_name"`
Enabled *bool
Variables string `gorm:"type:jsonb" sql:"type:jsonb"`
ProviderNamespace uint64 `gorm:"uniqueIndex:unique_name"`
ProviderNamespaceInfo *Namespace `gorm:"foreignKey:ProviderNamespace"`
}
type StringInterfaceMap ¶
type StringInterfaceMap map[string]interface{}
func (*StringInterfaceMap) Scan ¶
func (m *StringInterfaceMap) Scan(value interface{}) error
type StringStringMap ¶
func (*StringStringMap) Scan ¶
func (m *StringStringMap) Scan(value interface{}) error
type Subscription ¶
type Subscription struct {
Id uint64 `gorm:"primarykey"`
Namespace *Namespace
NamespaceId uint64
Urn string `gorm:"unique"`
Receiver ReceiverMetadataList `gorm:"type:jsonb" sql:"type:jsonb" `
Match StringStringMap `gorm:"type:jsonb" sql:"type:jsonb" `
CreatedAt time.Time
UpdatedAt time.Time
}
func (*Subscription) FromDomain ¶
func (s *Subscription) FromDomain(sub *domain.Subscription)
func (*Subscription) ToDomain ¶
func (s *Subscription) ToDomain() *domain.Subscription
Click to show internal directories.
Click to hide internal directories.