Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrRelation = errors.New("provider id does not exist")
)
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct {
ID uint64 `json:"id"`
ProviderID uint64 `json:"provider_id"`
ResourceName string `json:"resource_name"`
MetricName string `json:"metric_name"`
MetricValue string `json:"metric_value"`
Severity string `json:"severity"`
Rule string `json:"rule"`
TriggeredAt time.Time `json:"triggered_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type Repository ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service handles business logic
func NewService ¶
func NewService(repository Repository) *Service
NewService returns repository struct
Click to show internal directories.
Click to hide internal directories.