Documentation
¶
Index ¶
- func SetClientFactory(...)
- type Client
- type Query
- func (q *Query) Cancel(ctx core.ExecutionContext) error
- func (q *Query) Cleanup(ctx core.SetupContext) error
- func (q *Query) Color() string
- func (q *Query) Configuration() []configuration.Field
- func (q *Query) Description() string
- func (q *Query) Documentation() string
- func (q *Query) ExampleOutput() map[string]any
- func (q *Query) Execute(ctx core.ExecutionContext) error
- func (q *Query) HandleHook(ctx core.ActionHookContext) error
- func (q *Query) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
- func (q *Query) Hooks() []core.Hook
- func (q *Query) Icon() string
- func (q *Query) Label() string
- func (q *Query) Name() string
- func (q *Query) OutputChannels(configuration any) []core.OutputChannel
- func (q *Query) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (q *Query) Setup(ctx core.SetupContext) error
- type QueryNodeMetadata
- type QueryRange
- func (q *QueryRange) Cancel(ctx core.ExecutionContext) error
- func (q *QueryRange) Cleanup(ctx core.SetupContext) error
- func (q *QueryRange) Color() string
- func (q *QueryRange) Configuration() []configuration.Field
- func (q *QueryRange) Description() string
- func (q *QueryRange) Documentation() string
- func (q *QueryRange) ExampleOutput() map[string]any
- func (q *QueryRange) Execute(ctx core.ExecutionContext) error
- func (q *QueryRange) HandleHook(ctx core.ActionHookContext) error
- func (q *QueryRange) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
- func (q *QueryRange) Hooks() []core.Hook
- func (q *QueryRange) Icon() string
- func (q *QueryRange) Label() string
- func (q *QueryRange) Name() string
- func (q *QueryRange) OutputChannels(configuration any) []core.OutputChannel
- func (q *QueryRange) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (q *QueryRange) Setup(ctx core.SetupContext) error
- type QueryRangeSpec
- type QuerySpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetClientFactory ¶
func SetClientFactory(fn func(httpCtx core.HTTPContext, integration core.IntegrationContext) (Client, error))
Types ¶
type Client ¶
type Client interface {
GetURL(ctx context.Context, fullURL string) ([]byte, error)
ProjectID() string
}
Client is the interface used by the Managed Service for Prometheus components. Queries are issued against the Prometheus-compatible frontend on monitoring.googleapis.com (a different host than Compute), so calls use the fully-qualified *URL helper.
type Query ¶
type Query struct{}
func (*Query) Configuration ¶
func (q *Query) Configuration() []configuration.Field
func (*Query) Description ¶
func (*Query) Documentation ¶
func (*Query) ExampleOutput ¶
func (*Query) HandleHook ¶
func (q *Query) HandleHook(ctx core.ActionHookContext) error
func (*Query) HandleWebhook ¶
func (q *Query) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
func (*Query) OutputChannels ¶
func (q *Query) OutputChannels(configuration any) []core.OutputChannel
func (*Query) ProcessQueueItem ¶
type QueryNodeMetadata ¶
type QueryNodeMetadata struct {
Query string `json:"query" mapstructure:"query"`
}
type QueryRange ¶
type QueryRange struct{}
func (*QueryRange) Cancel ¶
func (q *QueryRange) Cancel(ctx core.ExecutionContext) error
func (*QueryRange) Cleanup ¶
func (q *QueryRange) Cleanup(ctx core.SetupContext) error
func (*QueryRange) Color ¶
func (q *QueryRange) Color() string
func (*QueryRange) Configuration ¶
func (q *QueryRange) Configuration() []configuration.Field
func (*QueryRange) Description ¶
func (q *QueryRange) Description() string
func (*QueryRange) Documentation ¶
func (q *QueryRange) Documentation() string
func (*QueryRange) ExampleOutput ¶
func (q *QueryRange) ExampleOutput() map[string]any
func (*QueryRange) Execute ¶
func (q *QueryRange) Execute(ctx core.ExecutionContext) error
func (*QueryRange) HandleHook ¶
func (q *QueryRange) HandleHook(ctx core.ActionHookContext) error
func (*QueryRange) HandleWebhook ¶
func (q *QueryRange) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
func (*QueryRange) Hooks ¶
func (q *QueryRange) Hooks() []core.Hook
func (*QueryRange) Icon ¶
func (q *QueryRange) Icon() string
func (*QueryRange) Label ¶
func (q *QueryRange) Label() string
func (*QueryRange) Name ¶
func (q *QueryRange) Name() string
func (*QueryRange) OutputChannels ¶
func (q *QueryRange) OutputChannels(configuration any) []core.OutputChannel
func (*QueryRange) ProcessQueueItem ¶
func (q *QueryRange) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*QueryRange) Setup ¶
func (q *QueryRange) Setup(ctx core.SetupContext) error
type QueryRangeSpec ¶
Click to show internal directories.
Click to hide internal directories.