publisher

package
v1.6.0-rc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package publisher is used to batch and send metric data to CloudWatch

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

type Publisher interface {
	// Publish publishes one or more metric data points
	Publish(metricDataPoints ...*cloudwatch.MetricDatum)

	// Start is to initiate the batch and publish operation
	Start()

	// Stop is to terminate the batch and publish operation
	Stop()
}

Publisher defines the interface to publish one or more data points

func New

func New(ctx context.Context) (Publisher, error)

New returns a new instance of `Publisher`

Directories

Path Synopsis
Package mock_publisher is a generated GoMock package.
Package mock_publisher is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL