Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KustoDeepLink ¶
KustoDeepLink returns an encoded string that can be used to create a deep link to a Kusto query.
func KustoQueryLinks ¶
KustoQueryLinks returns a string containing HTML links to the Kusto query in both the web and desktop UI.
Types ¶
type Client ¶
type Client interface { Endpoint(db string) string Query(ctx context.Context, qc *QueryContext, fn func(ctx context.Context, endpoint string, qc *QueryContext, row *table.Row) error) (error, int) }
func NewFakeKustoClient ¶
func NewFakeKustoClient() Client
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
func NewExecutor(opts ExecutorOpts) *Executor
TODO make AlertAddr string part of alertcli
type ExecutorOpts ¶
type Notification ¶
type Notification struct { // Title maps to the Title Notification field. Title string `kusto:"Title"` // Summary maps to the Description Notification field. Summary string `kusto:"Summary"` // Description maps to the Description Notification field. Description string `kusto:"Description"` // Severity maps to the Severity Notification field. Severity int64 `kusto:"Severity"` // CorrelationID maps to the CorrelationId Notification field. If a correlation ID is specified, the hit count for // the original Notification will be incremented on each firing of the Notification. CorrelationID string `kusto:"CorrelationId"` // Recipient is the destination of the Notification. Typically, a queue or email address. Recipient string `kusto:"Recipient"` // CustomFields are any additional fields that are not part of the Notification struct. CustomFields map[string]string }
func (Notification) Validate ¶
func (i Notification) Validate() error
type NotificationValidationError ¶
type NotificationValidationError struct {
Msg string
}
func (*NotificationValidationError) Error ¶
func (e *NotificationValidationError) Error() string
type QueryContext ¶
type QueryContext struct { Rule *rules.Rule Query string Stmt kusto.Stmt Params kusto.Parameters Region string StartTime time.Time EndTime time.Time }
func NewQueryContext ¶
type UnknownDBError ¶
type UnknownDBError struct {
DB string
}
func (*UnknownDBError) Error ¶
func (e *UnknownDBError) Error() string
Click to show internal directories.
Click to hide internal directories.