Documentation ¶
Index ¶
- Variables
- type Alert
- type Policy
- type Rule
- type Service
- func (svc *Service) GetAlertPolicy(ctx context.Context, projectSlug string, resource string) (*Policy, error)
- func (svc *Service) GetAlertTemplate(ctx context.Context, urn string) (*Template, error)
- func (svc *Service) GetProjectDataSource(ctx context.Context, projectSlug string) (string, error)
- func (svc *Service) HandleListTemplates() http.HandlerFunc
- func (svc *Service) ListAlertTemplates(ctx context.Context, tag string) ([]Template, error)
- func (svc *Service) ListAlerts(ctx context.Context, projectSlug string, resource string) ([]Alert, error)
- func (svc *Service) UpsertAlertPolicy(ctx context.Context, projectSlug string, update Policy) (*Policy, error)
- type Template
- type Variable
Constants ¶
This section is empty.
Variables ¶
View Source
var SuppliedVariables = []string{"name", "team", "entity"}
Functions ¶
This section is empty.
Types ¶
type Rule ¶
type Rule struct { ID string `json:"id"` Template string `json:"Template"` Enabled bool `json:"enabled"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Variables []Variable `json:"variables"` }
type Service ¶
type Service struct {
Siren sirenv1beta1grpc.SirenServiceClient
}
func (*Service) GetAlertPolicy ¶
func (*Service) GetAlertTemplate ¶
func (*Service) GetProjectDataSource ¶
func (*Service) HandleListTemplates ¶
func (svc *Service) HandleListTemplates() http.HandlerFunc
func (*Service) ListAlertTemplates ¶
func (*Service) ListAlerts ¶
type Template ¶
type Template struct { ID string `json:"id"` Name string `json:"name"` Body string `json:"body"` Tags []string `json:"tags"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Variables []Variable `json:"variables"` }
Click to show internal directories.
Click to hide internal directories.