Versions in this module Expand all Collapse all v0 v0.4.0 Apr 20, 2022 Changes in this version + type EncryptedNamespace struct + Credentials string v0.3.1 Jan 28, 2022 v0.3.0 Dec 6, 2021 Changes in this version type Alert + CreatedAt time.Time + Id uint64 + MetricName string + MetricValue string + ProviderId uint64 + ResourceName string + Rule string + Severity string + TriggeredAt time.Time + UpdatedAt time.Time + type AlertService interface + Create func(*Alerts) ([]Alert, error) + Get func(string, uint64, uint64, uint64) ([]Alert, error) + Migrate func() error + type Namespace struct + CreatedAt time.Time + Credentials map[string]interface{} + Id uint64 + Labels map[string]string + Name string + Provider uint64 + UpdatedAt time.Time + Urn string + type NamespaceService interface + CreateNamespace func(*Namespace) (*Namespace, error) + DeleteNamespace func(uint64) error + GetNamespace func(uint64) (*Namespace, error) + ListNamespaces func() ([]*Namespace, error) + Migrate func() error + UpdateNamespace func(*Namespace) (*Namespace, error) + type Provider struct + CreatedAt time.Time + Credentials map[string]interface{} + Host string + Id uint64 + Labels map[string]string + Name string + Type string + UpdatedAt time.Time + Urn string + type ProviderService interface + CreateProvider func(*Provider) (*Provider, error) + DeleteProvider func(uint64) error + GetProvider func(uint64) (*Provider, error) + ListProviders func(map[string]interface{}) ([]*Provider, error) + Migrate func() error + UpdateProvider func(*Provider) (*Provider, error) + type Receiver struct + Configurations map[string]interface{} + CreatedAt time.Time + Data map[string]interface{} + Id uint64 + Labels map[string]string + Name string + Type string + UpdatedAt time.Time + type ReceiverMetadata struct + Configuration map[string]string + Id uint64 + type ReceiverService interface + CreateReceiver func(*Receiver) (*Receiver, error) + DeleteReceiver func(uint64) error + GetReceiver func(uint64) (*Receiver, error) + ListReceivers func() ([]*Receiver, error) + Migrate func() error + UpdateReceiver func(*Receiver) (*Receiver, error) type Rule + Enabled bool + Id uint64 + ProviderNamespace uint64 type SlackMessage + Token string + type SlackWorkspaceService interface + GetChannels func(string) ([]Channel, error) + type Subscription struct + CreatedAt time.Time + Id uint64 + Match map[string]string + Namespace uint64 + Receivers []ReceiverMetadata + UpdatedAt time.Time + Urn string + type SubscriptionService interface + CreateSubscription func(*Subscription) (*Subscription, error) + DeleteSubscription func(uint64) error + GetSubscription func(uint64) (*Subscription, error) + ListSubscriptions func() ([]*Subscription, error) + Migrate func() error + UpdateSubscription func(*Subscription) (*Subscription, error) v0.2.0 Aug 13, 2021 Changes in this version + type Channel struct + ID string + Name string + type CodeExchangeService interface + Exchange func(payload OAuthPayload) (*OAuthExchangeResponse, error) + GetToken func(string) (string, error) + Migrate func() error type Config + EncryptionKey string + SlackApp SlackApp + type NotifierServices struct + Slack SlackNotifierService + type OAuthExchangeResponse struct + OK bool + type OAuthPayload struct + Code string + Workspace string + type SlackApp struct + ClientID string + ClientSecret string + type SlackMessage struct + Blocks slack.Blocks + Entity string + Message string + ReceiverName string + ReceiverType string + func (sm *SlackMessage) Validate() error + type SlackMessageSendResponse struct + OK bool + type SlackNotifierService interface + Notify func(*SlackMessage) (*SlackMessageSendResponse, error) + type SlackService interface + GetJoinedChannelsList func() ([]slack.Channel, error) + GetUserByEmail func(string) (*slack.User, error) + SendMessage func(string, ...slack.MsgOption) (string, string, string, error) + type WorkspaceService interface + GetChannels func(string) ([]Channel, error) v0.1.2 May 25, 2021 v0.1.1 May 17, 2021 v0.1.0 May 12, 2021 Changes in this version + type Alert struct + Annotations Annotations + Labels Labels + Status string + type AlertCredential struct + Entity string + PagerdutyCredentials string + SlackConfig SlackConfig + TeamName string + type AlertHistoryObject struct + CreatedAt time.Time + ID uint64 + Level string + MetricName string + MetricValue string + Name string + TemplateID string + UpdatedAt time.Time + type AlertHistoryService interface + Create func(*Alerts) ([]AlertHistoryObject, error) + Get func(string, uint32, uint32) ([]AlertHistoryObject, error) + Migrate func() error + type AlertmanagerService interface + Get func(teamName string) (AlertCredential, error) + Migrate func() error + Upsert func(credential AlertCredential) error + type Alerts struct + Alerts []Alert + type Annotations struct + MetricName string + MetricValue string + Resource string + Template string + type Config struct + Cortex CortexConfig + DB DBConfig + Log LogConfig + NewRelic NewRelicConfig + Port int + SirenService SirenServiceConfig + type CortexConfig struct + Address string + type DBConfig struct + Host string + LogLevel string + Name string + Password string + Port string + SslMode string + User string + type Labels struct + Severity string + type LogConfig struct + Level string + type NewRelicConfig struct + AppName string + Enabled bool + License string + type Rule struct + CreatedAt time.Time + Entity string + GroupName string + ID uint + Name string + Namespace string + Status string + Template string + UpdatedAt time.Time + Variables []RuleVariable + type RuleService interface + Get func(string, string, string, string, string) ([]Rule, error) + Migrate func() error + Upsert func(*Rule) (*Rule, error) + type RuleVariable struct + Description string + Name string + Type string + Value string + type SirenServiceConfig struct + Host string + type SlackConfig struct + Critical SlackCredential + Warning SlackCredential + type SlackCredential struct + Channel string + Username string + Webhook string + type Template struct + Body string + CreatedAt time.Time + ID uint + Name string + Tags []string + UpdatedAt time.Time + Variables []Variable + type TemplatesService interface + Delete func(string) error + GetByName func(string) (*Template, error) + Index func(string) ([]Template, error) + Migrate func() error + Render func(string, map[string]string) (string, error) + Upsert func(*Template) (*Template, error) + type Variable struct + Default string + Description string + Name string + Type string