Documentation ¶
Overview ¶
package cwl provides an AWS CloudWatch producer and consumer channel (type).
Index ¶
- func NewCWLChan(ctx *dsl.Ctx, o interface{}) (dsl.Chan, error)
- type CWLChan
- func (c *CWLChan) Close(ctx *dsl.Ctx) error
- func (c *CWLChan) Consume(ctx *dsl.Ctx)
- func (c *CWLChan) DocSpec() *dsl.DocSpec
- func (c *CWLChan) Kill(ctx *dsl.Ctx) error
- func (c *CWLChan) Kind() dsl.ChanKind
- func (c *CWLChan) Open(ctx *dsl.Ctx) error
- func (c *CWLChan) Pub(ctx *dsl.Ctx, m dsl.Msg) error
- func (c *CWLChan) Recv(ctx *dsl.Ctx) chan dsl.Msg
- func (c *CWLChan) Sub(ctx *dsl.Ctx, topic string) error
- func (c *CWLChan) To(ctx *dsl.Ctx, m dsl.Msg) error
- type CWLOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CWLChan ¶
type CWLChan struct {
// contains filtered or unexported fields
}
CWLChan implements an AWS CloudWatch channel.
This channel type can produce and consume AWS CloudWatch logs.
type CWLOpts ¶
type CWLOpts struct { // Region is the region of the AWS Account Region *string `type:"string" json:"region,omitempty" yaml:",omitempty"` // GroupName is the Cloudwatch Log Group Name GroupName string `type:"string" json:"groupName,omitempty" yaml:",omitempty"` // StreamNamePrefix is the Cloudwatch Log Stream Name prefix StreamNamePrefix *string `type:"string" json:",omitempty" yaml:",omitempty"` // FilterPattern is based on the Cloudwatch Filter Pattern syntax // Reference: (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html) FilterPattern string `type:"string" json:",omitempty" yaml:",omitempty"` // StartTimePadding defines the time in seconds to subtract from now StartTimePadding *int64 `type:"number" json:",omitempty" yaml:",omitempty"` // PollInterval defines the Cloudwatch log poll time interval in seconds PollInterval *int64 `type:"number" json:",omitempty" yaml:",omitempty"` // contains filtered or unexported fields }
CWLOpts specifies Cloudwatch Logs channel options.
Click to show internal directories.
Click to hide internal directories.