Documentation
¶
Index ¶
- type Alert
- type App
- func (app *App) CheckBasicAuth(r *http.Request) bool
- func (app *App) EnableBasicAuth() bool
- func (app *App) HandleSQS(ctx context.Context, event *events.SQSEvent) (*grat.BatchItemFailureResponse, error)
- func (app *App) ProcessRule(ctx context.Context, rule *Rule, body *WebhookBody) error
- func (app *App) Run(ctx context.Context, opts RunOptions) error
- func (app *App) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (app *App) WithQueryRunningContext(ctx context.Context, reqID uint64, message *events.SQSMessage) context.Context
- type Host
- type QueryData
- type RenderInfomationData
- type Role
- type Rule
- type RunOptions
- type Service
- type WebhookBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct { OpenedAt int64 `json:"openedAt"` ClosedAt int64 `json:"closedAt"` CreatedAt int64 `json:"createdAt"` CriticalThreshold float64 `json:"criticalThreshold"` Duration int64 `json:"duration"` IsOpen bool `json:"isOpen"` MetricLabel string `json:"metricLabel"` MetricValue float64 `json:"metricValue"` MonitorName string `json:"monitorName"` MonitorOperator string `json:"monitorOperator"` Status string `json:"status"` Trigger string `json:"trigger"` ID string `json:"id"` URL string `json:"url"` WarningThreshold float64 `json:"warningThreshold"` }
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) EnableBasicAuth ¶
func (*App) ProcessRule ¶
func (*App) WithQueryRunningContext ¶ added in v0.2.0
type QueryData ¶ added in v0.0.5
type QueryData struct { *WebhookBody Params interface{} }
type RenderInfomationData ¶ added in v0.2.0
type RenderInfomationData struct { *WebhookBody QueryResults map[string]*queryrunner.QueryResult Params interface{} }
type Rule ¶
type Rule struct {
// contains filtered or unexported fields
}
func (*Rule) BuildInfomation ¶ added in v0.2.0
func (*Rule) Match ¶
func (rule *Rule) Match(body *WebhookBody) bool
func (*Rule) RenderInfomation ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.