Documentation
¶
Index ¶
- Constants
- type AlertmanagerAlert
- type AlertmanagerSilence
- type AlertmanagerSilenceStatus
- type AlertmanagerWebhookPayload
- type Client
- func (c *Client) CreateSilence(silence SilencePayload) (string, error)
- func (c *Client) ExpireSilence(silenceID string) error
- func (c *Client) GetAlertsFromPrometheus() ([]PrometheusAlert, error)
- func (c *Client) GetSilence(silenceID string) (AlertmanagerSilence, error)
- func (c *Client) ListSilences() ([]AlertmanagerSilence, error)
- func (c *Client) Query(query string) (map[string]any, error)
- func (c *Client) QueryRange(query, start, end, step string) (map[string]any, error)
- type Configuration
- type CreateSilence
- func (c *CreateSilence) Actions() []core.Action
- func (c *CreateSilence) Cancel(ctx core.ExecutionContext) error
- func (c *CreateSilence) Cleanup(ctx core.SetupContext) error
- func (c *CreateSilence) Color() string
- func (c *CreateSilence) Configuration() []configuration.Field
- func (c *CreateSilence) Description() string
- func (c *CreateSilence) Documentation() string
- func (c *CreateSilence) ExampleOutput() map[string]any
- func (c *CreateSilence) Execute(ctx core.ExecutionContext) error
- func (c *CreateSilence) HandleAction(ctx core.ActionContext) error
- func (c *CreateSilence) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *CreateSilence) Icon() string
- func (c *CreateSilence) Label() string
- func (c *CreateSilence) Name() string
- func (c *CreateSilence) OutputChannels(configuration any) []core.OutputChannel
- func (c *CreateSilence) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *CreateSilence) Setup(ctx core.SetupContext) error
- type CreateSilenceConfiguration
- type CreateSilenceNodeMetadata
- type ExpireSilence
- func (c *ExpireSilence) Actions() []core.Action
- func (c *ExpireSilence) Cancel(ctx core.ExecutionContext) error
- func (c *ExpireSilence) Cleanup(ctx core.SetupContext) error
- func (c *ExpireSilence) Color() string
- func (c *ExpireSilence) Configuration() []configuration.Field
- func (c *ExpireSilence) Description() string
- func (c *ExpireSilence) Documentation() string
- func (c *ExpireSilence) ExampleOutput() map[string]any
- func (c *ExpireSilence) Execute(ctx core.ExecutionContext) error
- func (c *ExpireSilence) HandleAction(ctx core.ActionContext) error
- func (c *ExpireSilence) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *ExpireSilence) Icon() string
- func (c *ExpireSilence) Label() string
- func (c *ExpireSilence) Name() string
- func (c *ExpireSilence) OutputChannels(configuration any) []core.OutputChannel
- func (c *ExpireSilence) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *ExpireSilence) Setup(ctx core.SetupContext) error
- type ExpireSilenceConfiguration
- type ExpireSilenceNodeMetadata
- type GetAlert
- func (c *GetAlert) Actions() []core.Action
- func (c *GetAlert) Cancel(ctx core.ExecutionContext) error
- func (c *GetAlert) Cleanup(ctx core.SetupContext) error
- func (c *GetAlert) Color() string
- func (c *GetAlert) Configuration() []configuration.Field
- func (c *GetAlert) Description() string
- func (c *GetAlert) Documentation() string
- func (c *GetAlert) ExampleOutput() map[string]any
- func (c *GetAlert) Execute(ctx core.ExecutionContext) error
- func (c *GetAlert) HandleAction(ctx core.ActionContext) error
- func (c *GetAlert) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *GetAlert) Icon() string
- func (c *GetAlert) Label() string
- func (c *GetAlert) Name() string
- func (c *GetAlert) OutputChannels(configuration any) []core.OutputChannel
- func (c *GetAlert) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *GetAlert) Setup(ctx core.SetupContext) error
- type GetAlertConfiguration
- type GetSilence
- func (c *GetSilence) Actions() []core.Action
- func (c *GetSilence) Cancel(ctx core.ExecutionContext) error
- func (c *GetSilence) Cleanup(ctx core.SetupContext) error
- func (c *GetSilence) Color() string
- func (c *GetSilence) Configuration() []configuration.Field
- func (c *GetSilence) Description() string
- func (c *GetSilence) Documentation() string
- func (c *GetSilence) ExampleOutput() map[string]any
- func (c *GetSilence) Execute(ctx core.ExecutionContext) error
- func (c *GetSilence) HandleAction(ctx core.ActionContext) error
- func (c *GetSilence) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *GetSilence) Icon() string
- func (c *GetSilence) Label() string
- func (c *GetSilence) Name() string
- func (c *GetSilence) OutputChannels(configuration any) []core.OutputChannel
- func (c *GetSilence) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *GetSilence) Setup(ctx core.SetupContext) error
- type GetSilenceConfiguration
- type GetSilenceNodeMetadata
- type Matcher
- type MatcherConfiguration
- type Metadata
- type OnAlert
- func (t *OnAlert) Actions() []core.Action
- func (t *OnAlert) Cleanup(ctx core.TriggerContext) error
- func (t *OnAlert) Color() string
- func (t *OnAlert) Configuration() []configuration.Field
- func (t *OnAlert) Description() string
- func (t *OnAlert) Documentation() string
- func (t *OnAlert) ExampleData() map[string]any
- func (t *OnAlert) HandleAction(ctx core.TriggerActionContext) (map[string]any, error)
- func (t *OnAlert) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (t *OnAlert) Icon() string
- func (t *OnAlert) Label() string
- func (t *OnAlert) Name() string
- func (t *OnAlert) Setup(ctx core.TriggerContext) error
- type OnAlertConfiguration
- type OnAlertMetadata
- type Prometheus
- func (p *Prometheus) Actions() []core.Action
- func (p *Prometheus) Cleanup(ctx core.IntegrationCleanupContext) error
- func (p *Prometheus) Components() []core.Component
- func (p *Prometheus) Configuration() []configuration.Field
- func (p *Prometheus) Description() string
- func (p *Prometheus) HandleAction(ctx core.IntegrationActionContext) error
- func (p *Prometheus) HandleRequest(ctx core.HTTPRequestContext)
- func (p *Prometheus) Icon() string
- func (p *Prometheus) Instructions() string
- func (p *Prometheus) Label() string
- func (p *Prometheus) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
- func (p *Prometheus) Name() string
- func (p *Prometheus) Sync(ctx core.SyncContext) error
- func (p *Prometheus) Triggers() []core.Trigger
- type PrometheusAlert
- type PrometheusAlertsData
- type PrometheusWebhookHandler
- func (h *PrometheusWebhookHandler) Cleanup(ctx core.WebhookHandlerContext) error
- func (h *PrometheusWebhookHandler) CompareConfig(a any, b any) (bool, error)
- func (h *PrometheusWebhookHandler) Merge(current, requested any) (any, bool, error)
- func (h *PrometheusWebhookHandler) Setup(ctx core.WebhookHandlerContext) (any, error)
- type Query
- func (c *Query) Actions() []core.Action
- func (c *Query) Cancel(ctx core.ExecutionContext) error
- func (c *Query) Cleanup(ctx core.SetupContext) error
- func (c *Query) Color() string
- func (c *Query) Configuration() []configuration.Field
- func (c *Query) Description() string
- func (c *Query) Documentation() string
- func (c *Query) ExampleOutput() map[string]any
- func (c *Query) Execute(ctx core.ExecutionContext) error
- func (c *Query) HandleAction(ctx core.ActionContext) error
- func (c *Query) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *Query) Icon() string
- func (c *Query) Label() string
- func (c *Query) Name() string
- func (c *Query) OutputChannels(configuration any) []core.OutputChannel
- func (c *Query) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *Query) Setup(ctx core.SetupContext) error
- type QueryConfiguration
- type QueryNodeMetadata
- type QueryRange
- func (c *QueryRange) Actions() []core.Action
- func (c *QueryRange) Cancel(ctx core.ExecutionContext) error
- func (c *QueryRange) Cleanup(ctx core.SetupContext) error
- func (c *QueryRange) Color() string
- func (c *QueryRange) Configuration() []configuration.Field
- func (c *QueryRange) Description() string
- func (c *QueryRange) Documentation() string
- func (c *QueryRange) ExampleOutput() map[string]any
- func (c *QueryRange) Execute(ctx core.ExecutionContext) error
- func (c *QueryRange) HandleAction(ctx core.ActionContext) error
- func (c *QueryRange) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
- func (c *QueryRange) Icon() string
- func (c *QueryRange) Label() string
- func (c *QueryRange) Name() string
- func (c *QueryRange) OutputChannels(configuration any) []core.OutputChannel
- func (c *QueryRange) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *QueryRange) Setup(ctx core.SetupContext) error
- type QueryRangeConfiguration
- type QueryRangeNodeMetadata
- type SilencePayload
Constants ¶
View Source
const ( AuthTypeNone = "none" AuthTypeBasic = "basic" AuthTypeBearer = "bearer" AlertStateAny = "any" AlertStateFiring = "firing" AlertStateResolved = "resolved" AlertStatePending = "pending" AlertStateInactive = "inactive" PrometheusAlertPayloadType = "prometheus.alert" )
View Source
const MaxResponseSize = 1 * 1024 * 1024 // 1MB
View Source
const ResourceTypeSilence = "silence"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertmanagerAlert ¶
type AlertmanagerAlert struct {
Status string `json:"status"`
Labels map[string]string `json:"labels"`
Annotations map[string]string `json:"annotations"`
StartsAt string `json:"startsAt"`
EndsAt string `json:"endsAt"`
GeneratorURL string `json:"generatorURL"`
Fingerprint string `json:"fingerprint"`
}
type AlertmanagerSilence ¶ added in v0.10.0
type AlertmanagerSilence struct {
ID string `json:"id"`
Status AlertmanagerSilenceStatus `json:"status"`
Matchers []Matcher `json:"matchers"`
StartsAt string `json:"startsAt"`
EndsAt string `json:"endsAt"`
CreatedBy string `json:"createdBy"`
Comment string `json:"comment"`
UpdatedAt string `json:"updatedAt"`
}
type AlertmanagerSilenceStatus ¶ added in v0.10.0
type AlertmanagerSilenceStatus struct {
State string `json:"state"`
}
type AlertmanagerWebhookPayload ¶
type AlertmanagerWebhookPayload struct {
Version string `json:"version"`
GroupKey string `json:"groupKey"`
Status string `json:"status"`
Receiver string `json:"receiver"`
GroupLabels map[string]string `json:"groupLabels"`
CommonLabels map[string]string `json:"commonLabels"`
CommonAnnotations map[string]string `json:"commonAnnotations"`
ExternalURL string `json:"externalURL"`
TruncatedAlerts int `json:"truncatedAlerts"`
Alerts []AlertmanagerAlert `json:"alerts"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(httpContext core.HTTPContext, integration core.IntegrationContext) (*Client, error)
func (*Client) CreateSilence ¶ added in v0.10.0
func (c *Client) CreateSilence(silence SilencePayload) (string, error)
func (*Client) ExpireSilence ¶ added in v0.10.0
func (*Client) GetAlertsFromPrometheus ¶
func (c *Client) GetAlertsFromPrometheus() ([]PrometheusAlert, error)
func (*Client) GetSilence ¶ added in v0.10.0
func (c *Client) GetSilence(silenceID string) (AlertmanagerSilence, error)
func (*Client) ListSilences ¶ added in v0.10.0
func (c *Client) ListSilences() ([]AlertmanagerSilence, error)
type Configuration ¶
type Configuration struct {
BaseURL string `json:"baseURL" mapstructure:"baseURL"`
AlertmanagerURL string `json:"alertmanagerURL,omitempty" mapstructure:"alertmanagerURL"`
AuthType string `json:"authType" mapstructure:"authType"`
Username string `json:"username,omitempty" mapstructure:"username"`
Password string `json:"password,omitempty" mapstructure:"password"`
BearerToken string `json:"bearerToken,omitempty" mapstructure:"bearerToken"`
WebhookBearerToken string `json:"webhookBearerToken,omitempty" mapstructure:"webhookBearerToken"`
}
type CreateSilence ¶ added in v0.10.0
type CreateSilence struct{}
func (*CreateSilence) Actions ¶ added in v0.10.0
func (c *CreateSilence) Actions() []core.Action
func (*CreateSilence) Cancel ¶ added in v0.10.0
func (c *CreateSilence) Cancel(ctx core.ExecutionContext) error
func (*CreateSilence) Cleanup ¶ added in v0.10.0
func (c *CreateSilence) Cleanup(ctx core.SetupContext) error
func (*CreateSilence) Color ¶ added in v0.10.0
func (c *CreateSilence) Color() string
func (*CreateSilence) Configuration ¶ added in v0.10.0
func (c *CreateSilence) Configuration() []configuration.Field
func (*CreateSilence) Description ¶ added in v0.10.0
func (c *CreateSilence) Description() string
func (*CreateSilence) Documentation ¶ added in v0.10.0
func (c *CreateSilence) Documentation() string
func (*CreateSilence) ExampleOutput ¶ added in v0.10.0
func (c *CreateSilence) ExampleOutput() map[string]any
func (*CreateSilence) Execute ¶ added in v0.10.0
func (c *CreateSilence) Execute(ctx core.ExecutionContext) error
func (*CreateSilence) HandleAction ¶ added in v0.10.0
func (c *CreateSilence) HandleAction(ctx core.ActionContext) error
func (*CreateSilence) HandleWebhook ¶ added in v0.10.0
func (c *CreateSilence) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*CreateSilence) Icon ¶ added in v0.10.0
func (c *CreateSilence) Icon() string
func (*CreateSilence) Label ¶ added in v0.10.0
func (c *CreateSilence) Label() string
func (*CreateSilence) Name ¶ added in v0.10.0
func (c *CreateSilence) Name() string
func (*CreateSilence) OutputChannels ¶ added in v0.10.0
func (c *CreateSilence) OutputChannels(configuration any) []core.OutputChannel
func (*CreateSilence) ProcessQueueItem ¶ added in v0.10.0
func (c *CreateSilence) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*CreateSilence) Setup ¶ added in v0.10.0
func (c *CreateSilence) Setup(ctx core.SetupContext) error
type CreateSilenceConfiguration ¶ added in v0.10.0
type CreateSilenceConfiguration struct {
Matchers []MatcherConfiguration `json:"matchers" mapstructure:"matchers"`
Duration string `json:"duration" mapstructure:"duration"`
CreatedBy string `json:"createdBy" mapstructure:"createdBy"`
Comment string `json:"comment" mapstructure:"comment"`
}
type CreateSilenceNodeMetadata ¶ added in v0.10.0
type CreateSilenceNodeMetadata struct {
SilenceID string `json:"silenceID"`
}
type ExpireSilence ¶ added in v0.10.0
type ExpireSilence struct{}
func (*ExpireSilence) Actions ¶ added in v0.10.0
func (c *ExpireSilence) Actions() []core.Action
func (*ExpireSilence) Cancel ¶ added in v0.10.0
func (c *ExpireSilence) Cancel(ctx core.ExecutionContext) error
func (*ExpireSilence) Cleanup ¶ added in v0.10.0
func (c *ExpireSilence) Cleanup(ctx core.SetupContext) error
func (*ExpireSilence) Color ¶ added in v0.10.0
func (c *ExpireSilence) Color() string
func (*ExpireSilence) Configuration ¶ added in v0.10.0
func (c *ExpireSilence) Configuration() []configuration.Field
func (*ExpireSilence) Description ¶ added in v0.10.0
func (c *ExpireSilence) Description() string
func (*ExpireSilence) Documentation ¶ added in v0.10.0
func (c *ExpireSilence) Documentation() string
func (*ExpireSilence) ExampleOutput ¶ added in v0.10.0
func (c *ExpireSilence) ExampleOutput() map[string]any
func (*ExpireSilence) Execute ¶ added in v0.10.0
func (c *ExpireSilence) Execute(ctx core.ExecutionContext) error
func (*ExpireSilence) HandleAction ¶ added in v0.10.0
func (c *ExpireSilence) HandleAction(ctx core.ActionContext) error
func (*ExpireSilence) HandleWebhook ¶ added in v0.10.0
func (c *ExpireSilence) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*ExpireSilence) Icon ¶ added in v0.10.0
func (c *ExpireSilence) Icon() string
func (*ExpireSilence) Label ¶ added in v0.10.0
func (c *ExpireSilence) Label() string
func (*ExpireSilence) Name ¶ added in v0.10.0
func (c *ExpireSilence) Name() string
func (*ExpireSilence) OutputChannels ¶ added in v0.10.0
func (c *ExpireSilence) OutputChannels(configuration any) []core.OutputChannel
func (*ExpireSilence) ProcessQueueItem ¶ added in v0.10.0
func (c *ExpireSilence) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*ExpireSilence) Setup ¶ added in v0.10.0
func (c *ExpireSilence) Setup(ctx core.SetupContext) error
type ExpireSilenceConfiguration ¶ added in v0.10.0
type ExpireSilenceConfiguration struct {
Silence string `json:"silence" mapstructure:"silence"`
}
type ExpireSilenceNodeMetadata ¶ added in v0.10.0
type ExpireSilenceNodeMetadata struct {
SilenceID string `json:"silenceID"`
}
type GetAlert ¶
type GetAlert struct{}
func (*GetAlert) Configuration ¶
func (c *GetAlert) Configuration() []configuration.Field
func (*GetAlert) Description ¶
func (*GetAlert) Documentation ¶
func (*GetAlert) ExampleOutput ¶
func (*GetAlert) HandleAction ¶
func (c *GetAlert) HandleAction(ctx core.ActionContext) error
func (*GetAlert) HandleWebhook ¶
func (c *GetAlert) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*GetAlert) OutputChannels ¶
func (c *GetAlert) OutputChannels(configuration any) []core.OutputChannel
func (*GetAlert) ProcessQueueItem ¶
type GetAlertConfiguration ¶
type GetSilence ¶ added in v0.10.0
type GetSilence struct{}
func (*GetSilence) Actions ¶ added in v0.10.0
func (c *GetSilence) Actions() []core.Action
func (*GetSilence) Cancel ¶ added in v0.10.0
func (c *GetSilence) Cancel(ctx core.ExecutionContext) error
func (*GetSilence) Cleanup ¶ added in v0.10.0
func (c *GetSilence) Cleanup(ctx core.SetupContext) error
func (*GetSilence) Color ¶ added in v0.10.0
func (c *GetSilence) Color() string
func (*GetSilence) Configuration ¶ added in v0.10.0
func (c *GetSilence) Configuration() []configuration.Field
func (*GetSilence) Description ¶ added in v0.10.0
func (c *GetSilence) Description() string
func (*GetSilence) Documentation ¶ added in v0.10.0
func (c *GetSilence) Documentation() string
func (*GetSilence) ExampleOutput ¶ added in v0.10.0
func (c *GetSilence) ExampleOutput() map[string]any
func (*GetSilence) Execute ¶ added in v0.10.0
func (c *GetSilence) Execute(ctx core.ExecutionContext) error
func (*GetSilence) HandleAction ¶ added in v0.10.0
func (c *GetSilence) HandleAction(ctx core.ActionContext) error
func (*GetSilence) HandleWebhook ¶ added in v0.10.0
func (c *GetSilence) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*GetSilence) Icon ¶ added in v0.10.0
func (c *GetSilence) Icon() string
func (*GetSilence) Label ¶ added in v0.10.0
func (c *GetSilence) Label() string
func (*GetSilence) Name ¶ added in v0.10.0
func (c *GetSilence) Name() string
func (*GetSilence) OutputChannels ¶ added in v0.10.0
func (c *GetSilence) OutputChannels(configuration any) []core.OutputChannel
func (*GetSilence) ProcessQueueItem ¶ added in v0.10.0
func (c *GetSilence) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*GetSilence) Setup ¶ added in v0.10.0
func (c *GetSilence) Setup(ctx core.SetupContext) error
type GetSilenceConfiguration ¶ added in v0.10.0
type GetSilenceNodeMetadata ¶ added in v0.10.0
type GetSilenceNodeMetadata struct {
SilenceID string `json:"silenceID"`
}
type MatcherConfiguration ¶ added in v0.10.0
type OnAlert ¶
type OnAlert struct{}
func (*OnAlert) Configuration ¶
func (t *OnAlert) Configuration() []configuration.Field
func (*OnAlert) Description ¶
func (*OnAlert) Documentation ¶
func (*OnAlert) ExampleData ¶
func (*OnAlert) HandleAction ¶
func (*OnAlert) HandleWebhook ¶
func (t *OnAlert) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
type OnAlertConfiguration ¶
type OnAlertMetadata ¶
type Prometheus ¶
type Prometheus struct{}
func (*Prometheus) Actions ¶
func (p *Prometheus) Actions() []core.Action
func (*Prometheus) Cleanup ¶
func (p *Prometheus) Cleanup(ctx core.IntegrationCleanupContext) error
func (*Prometheus) Components ¶
func (p *Prometheus) Components() []core.Component
func (*Prometheus) Configuration ¶
func (p *Prometheus) Configuration() []configuration.Field
func (*Prometheus) Description ¶
func (p *Prometheus) Description() string
func (*Prometheus) HandleAction ¶
func (p *Prometheus) HandleAction(ctx core.IntegrationActionContext) error
func (*Prometheus) HandleRequest ¶
func (p *Prometheus) HandleRequest(ctx core.HTTPRequestContext)
func (*Prometheus) Icon ¶
func (p *Prometheus) Icon() string
func (*Prometheus) Instructions ¶
func (p *Prometheus) Instructions() string
func (*Prometheus) Label ¶
func (p *Prometheus) Label() string
func (*Prometheus) ListResources ¶
func (p *Prometheus) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
func (*Prometheus) Name ¶
func (p *Prometheus) Name() string
func (*Prometheus) Sync ¶
func (p *Prometheus) Sync(ctx core.SyncContext) error
func (*Prometheus) Triggers ¶
func (p *Prometheus) Triggers() []core.Trigger
type PrometheusAlert ¶
type PrometheusAlertsData ¶
type PrometheusAlertsData struct {
Alerts []PrometheusAlert `json:"alerts"`
}
type PrometheusWebhookHandler ¶
type PrometheusWebhookHandler struct{}
func (*PrometheusWebhookHandler) Cleanup ¶
func (h *PrometheusWebhookHandler) Cleanup(ctx core.WebhookHandlerContext) error
func (*PrometheusWebhookHandler) CompareConfig ¶
func (h *PrometheusWebhookHandler) CompareConfig(a any, b any) (bool, error)
func (*PrometheusWebhookHandler) Merge ¶
func (h *PrometheusWebhookHandler) Merge(current, requested any) (any, bool, error)
func (*PrometheusWebhookHandler) Setup ¶
func (h *PrometheusWebhookHandler) Setup(ctx core.WebhookHandlerContext) (any, error)
type Query ¶ added in v0.10.0
type Query struct{}
func (*Query) Configuration ¶ added in v0.10.0
func (c *Query) Configuration() []configuration.Field
func (*Query) Description ¶ added in v0.10.0
func (*Query) Documentation ¶ added in v0.10.0
func (*Query) ExampleOutput ¶ added in v0.10.0
func (*Query) HandleAction ¶ added in v0.10.0
func (c *Query) HandleAction(ctx core.ActionContext) error
func (*Query) HandleWebhook ¶ added in v0.10.0
func (c *Query) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*Query) OutputChannels ¶ added in v0.10.0
func (c *Query) OutputChannels(configuration any) []core.OutputChannel
func (*Query) ProcessQueueItem ¶ added in v0.10.0
type QueryConfiguration ¶ added in v0.10.0
type QueryConfiguration struct {
Query string `json:"query" mapstructure:"query"`
}
type QueryNodeMetadata ¶ added in v0.10.0
type QueryNodeMetadata struct {
Query string `json:"query"`
}
type QueryRange ¶ added in v0.10.0
type QueryRange struct{}
func (*QueryRange) Actions ¶ added in v0.10.0
func (c *QueryRange) Actions() []core.Action
func (*QueryRange) Cancel ¶ added in v0.10.0
func (c *QueryRange) Cancel(ctx core.ExecutionContext) error
func (*QueryRange) Cleanup ¶ added in v0.10.0
func (c *QueryRange) Cleanup(ctx core.SetupContext) error
func (*QueryRange) Color ¶ added in v0.10.0
func (c *QueryRange) Color() string
func (*QueryRange) Configuration ¶ added in v0.10.0
func (c *QueryRange) Configuration() []configuration.Field
func (*QueryRange) Description ¶ added in v0.10.0
func (c *QueryRange) Description() string
func (*QueryRange) Documentation ¶ added in v0.10.0
func (c *QueryRange) Documentation() string
func (*QueryRange) ExampleOutput ¶ added in v0.10.0
func (c *QueryRange) ExampleOutput() map[string]any
func (*QueryRange) Execute ¶ added in v0.10.0
func (c *QueryRange) Execute(ctx core.ExecutionContext) error
func (*QueryRange) HandleAction ¶ added in v0.10.0
func (c *QueryRange) HandleAction(ctx core.ActionContext) error
func (*QueryRange) HandleWebhook ¶ added in v0.10.0
func (c *QueryRange) HandleWebhook(ctx core.WebhookRequestContext) (int, error)
func (*QueryRange) Icon ¶ added in v0.10.0
func (c *QueryRange) Icon() string
func (*QueryRange) Label ¶ added in v0.10.0
func (c *QueryRange) Label() string
func (*QueryRange) Name ¶ added in v0.10.0
func (c *QueryRange) Name() string
func (*QueryRange) OutputChannels ¶ added in v0.10.0
func (c *QueryRange) OutputChannels(configuration any) []core.OutputChannel
func (*QueryRange) ProcessQueueItem ¶ added in v0.10.0
func (c *QueryRange) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*QueryRange) Setup ¶ added in v0.10.0
func (c *QueryRange) Setup(ctx core.SetupContext) error
type QueryRangeConfiguration ¶ added in v0.10.0
type QueryRangeNodeMetadata ¶ added in v0.10.0
type QueryRangeNodeMetadata struct {
Query string `json:"query"`
}
Click to show internal directories.
Click to hide internal directories.