Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateEvent(datasetSlug string, fields map[string]any) error
- func (c *Client) CreateWebhookRecipient(webhookURL, secret string) (Recipient, error)
- func (c *Client) DeleteRecipient(recipientID string, datasetSlug string) error
- func (c *Client) EnsureConfigurationKey(teamSlug string) error
- func (c *Client) EnsureIngestKey(teamSlug string) error
- func (c *Client) EnsureRecipientOnTrigger(datasetSlug, triggerID, recipientID string) error
- func (c *Client) GetTrigger(datasetSlug, triggerID string) (map[string]any, error)
- func (c *Client) ListDatasets() ([]Dataset, error)
- func (c *Client) ListTriggers(datasetSlug string) ([]HoneycombTrigger, error)
- func (c *Client) RemoveRecipientFromTrigger(datasetSlug, triggerID, recipientID string) error
- func (c *Client) UpdateTrigger(datasetSlug, triggerID string, trigger map[string]any) error
- func (c *Client) ValidateManagementKey(teamSlug string) error
- type Configuration
- type CreateEvent
- func (c *CreateEvent) Cancel(ctx core.ExecutionContext) error
- func (c *CreateEvent) Cleanup(ctx core.SetupContext) error
- func (c *CreateEvent) Color() string
- func (c *CreateEvent) Configuration() []configuration.Field
- func (c *CreateEvent) Description() string
- func (c *CreateEvent) Documentation() string
- func (c *CreateEvent) ExampleOutput() map[string]any
- func (c *CreateEvent) Execute(ctx core.ExecutionContext) error
- func (c *CreateEvent) HandleHook(ctx core.ActionHookContext) error
- func (c *CreateEvent) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
- func (c *CreateEvent) Hooks() []core.Hook
- func (c *CreateEvent) Icon() string
- func (c *CreateEvent) Label() string
- func (c *CreateEvent) Name() string
- func (c *CreateEvent) OutputChannels(configuration any) []core.OutputChannel
- func (c *CreateEvent) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *CreateEvent) Setup(ctx core.SetupContext) error
- type CreateEventConfiguration
- type Dataset
- type Honeycomb
- func (h *Honeycomb) Actions() []core.Action
- func (h *Honeycomb) Cleanup(ctx core.IntegrationCleanupContext) error
- func (h *Honeycomb) Configuration() []configuration.Field
- func (h *Honeycomb) Description() string
- func (h *Honeycomb) HandleHook(ctx core.IntegrationHookContext) error
- func (h *Honeycomb) HandleRequest(ctx core.HTTPRequestContext)
- func (h *Honeycomb) Hooks() []core.Hook
- func (h *Honeycomb) Icon() string
- func (h *Honeycomb) Instructions() string
- func (h *Honeycomb) Label() string
- func (h *Honeycomb) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
- func (h *Honeycomb) Name() string
- func (h *Honeycomb) Sync(ctx core.SyncContext) error
- func (h *Honeycomb) Triggers() []core.Trigger
- type HoneycombTrigger
- type HoneycombWebhookHandler
- func (h *HoneycombWebhookHandler) Cleanup(ctx core.WebhookHandlerContext) error
- func (h *HoneycombWebhookHandler) CompareConfig(a, b any) (bool, error)
- func (h *HoneycombWebhookHandler) Merge(current, requested any) (any, bool, error)
- func (h *HoneycombWebhookHandler) Setup(ctx core.WebhookHandlerContext) (any, error)
- type OnAlertFired
- func (t *OnAlertFired) Cleanup(ctx core.TriggerContext) error
- func (t *OnAlertFired) Color() string
- func (t *OnAlertFired) Configuration() []configuration.Field
- func (t *OnAlertFired) Description() string
- func (t *OnAlertFired) Documentation() string
- func (t *OnAlertFired) ExampleData() map[string]any
- func (t *OnAlertFired) HandleHook(ctx core.TriggerHookContext) (map[string]any, error)
- func (t *OnAlertFired) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
- func (t *OnAlertFired) Hooks() []core.Hook
- func (t *OnAlertFired) Icon() string
- func (t *OnAlertFired) Label() string
- func (t *OnAlertFired) Name() string
- func (t *OnAlertFired) Setup(ctx core.TriggerContext) error
- type OnAlertFiredConfiguration
- type OnAlertFiredNodeMetadata
- type Recipient
- type WebhookConfiguration
- type WebhookMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
BaseURL string
ManagementKey string
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(httpCtx core.HTTPContext, ctx core.IntegrationContext) (*Client, error)
func (*Client) CreateEvent ¶
func (*Client) CreateWebhookRecipient ¶
func (*Client) DeleteRecipient ¶
func (*Client) EnsureConfigurationKey ¶
EnsureConfigurationKey creates a configuration API key via the /2 API and stores its secret for use in /1 API requests. If a valid key already exists, it is reused.
func (*Client) EnsureIngestKey ¶
EnsureIngestKey creates an ingest API key via the /2 API and stores it for use when sending events. If a valid key already exists, it is reused.
func (*Client) EnsureRecipientOnTrigger ¶
EnsureRecipientOnTrigger attaches a webhook recipient to a Honeycomb trigger if not already attached.
func (*Client) GetTrigger ¶
func (*Client) ListDatasets ¶
func (*Client) ListTriggers ¶
func (c *Client) ListTriggers(datasetSlug string) ([]HoneycombTrigger, error)
func (*Client) RemoveRecipientFromTrigger ¶
func (*Client) UpdateTrigger ¶
func (*Client) ValidateManagementKey ¶
type Configuration ¶
type CreateEvent ¶
type CreateEvent struct{}
func (*CreateEvent) Cancel ¶
func (c *CreateEvent) Cancel(ctx core.ExecutionContext) error
func (*CreateEvent) Cleanup ¶
func (c *CreateEvent) Cleanup(ctx core.SetupContext) error
func (*CreateEvent) Color ¶
func (c *CreateEvent) Color() string
func (*CreateEvent) Configuration ¶
func (c *CreateEvent) Configuration() []configuration.Field
func (*CreateEvent) Description ¶
func (c *CreateEvent) Description() string
func (*CreateEvent) Documentation ¶
func (c *CreateEvent) Documentation() string
func (*CreateEvent) ExampleOutput ¶
func (c *CreateEvent) ExampleOutput() map[string]any
func (*CreateEvent) Execute ¶
func (c *CreateEvent) Execute(ctx core.ExecutionContext) error
func (*CreateEvent) HandleHook ¶ added in v0.18.0
func (c *CreateEvent) HandleHook(ctx core.ActionHookContext) error
func (*CreateEvent) HandleWebhook ¶
func (c *CreateEvent) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
func (*CreateEvent) Hooks ¶ added in v0.18.0
func (c *CreateEvent) Hooks() []core.Hook
func (*CreateEvent) Icon ¶
func (c *CreateEvent) Icon() string
func (*CreateEvent) Label ¶
func (c *CreateEvent) Label() string
func (*CreateEvent) Name ¶
func (c *CreateEvent) Name() string
func (*CreateEvent) OutputChannels ¶
func (c *CreateEvent) OutputChannels(configuration any) []core.OutputChannel
func (*CreateEvent) ProcessQueueItem ¶
func (c *CreateEvent) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*CreateEvent) Setup ¶
func (c *CreateEvent) Setup(ctx core.SetupContext) error
type Honeycomb ¶
type Honeycomb struct{}
func (*Honeycomb) Configuration ¶
func (h *Honeycomb) Configuration() []configuration.Field
func (*Honeycomb) Description ¶
func (*Honeycomb) HandleHook ¶ added in v0.18.0
func (h *Honeycomb) HandleHook(ctx core.IntegrationHookContext) error
func (*Honeycomb) HandleRequest ¶
func (h *Honeycomb) HandleRequest(ctx core.HTTPRequestContext)
func (*Honeycomb) Instructions ¶
func (*Honeycomb) ListResources ¶
func (h *Honeycomb) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.IntegrationResource, error)
type HoneycombTrigger ¶
type HoneycombWebhookHandler ¶
type HoneycombWebhookHandler struct{}
func (*HoneycombWebhookHandler) Cleanup ¶
func (h *HoneycombWebhookHandler) Cleanup(ctx core.WebhookHandlerContext) error
func (*HoneycombWebhookHandler) CompareConfig ¶
func (h *HoneycombWebhookHandler) CompareConfig(a, b any) (bool, error)
Share webhook if dataset matches - Merge will union the trigger IDs
func (*HoneycombWebhookHandler) Merge ¶
func (h *HoneycombWebhookHandler) Merge(current, requested any) (any, bool, error)
func (*HoneycombWebhookHandler) Setup ¶
func (h *HoneycombWebhookHandler) Setup(ctx core.WebhookHandlerContext) (any, error)
type OnAlertFired ¶
type OnAlertFired struct{}
func (*OnAlertFired) Cleanup ¶
func (t *OnAlertFired) Cleanup(ctx core.TriggerContext) error
func (*OnAlertFired) Color ¶
func (t *OnAlertFired) Color() string
func (*OnAlertFired) Configuration ¶
func (t *OnAlertFired) Configuration() []configuration.Field
func (*OnAlertFired) Description ¶
func (t *OnAlertFired) Description() string
func (*OnAlertFired) Documentation ¶
func (t *OnAlertFired) Documentation() string
func (*OnAlertFired) ExampleData ¶
func (t *OnAlertFired) ExampleData() map[string]any
func (*OnAlertFired) HandleHook ¶ added in v0.18.0
func (t *OnAlertFired) HandleHook(ctx core.TriggerHookContext) (map[string]any, error)
func (*OnAlertFired) HandleWebhook ¶
func (t *OnAlertFired) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
func (*OnAlertFired) Hooks ¶ added in v0.18.0
func (t *OnAlertFired) Hooks() []core.Hook
func (*OnAlertFired) Icon ¶
func (t *OnAlertFired) Icon() string
func (*OnAlertFired) Label ¶
func (t *OnAlertFired) Label() string
func (*OnAlertFired) Name ¶
func (t *OnAlertFired) Name() string
func (*OnAlertFired) Setup ¶
func (t *OnAlertFired) Setup(ctx core.TriggerContext) error
type OnAlertFiredNodeMetadata ¶
type OnAlertFiredNodeMetadata struct {
TriggerID string `json:"triggerId" mapstructure:"triggerId"`
}
type WebhookConfiguration ¶
type WebhookMetadata ¶
type WebhookMetadata struct {
RecipientID string `json:"recipientId" mapstructure:"recipientId"`
}
Click to show internal directories.
Click to hide internal directories.