v1

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

v1 provides a client to connect with the loggregtor v1 API

Loggregator's v1 client library is better known to the Cloud Foundry community as Dropsonde (github.com/cloudfoundry/dropsonde). The code here wraps that library in the interest of consolidating all client code into a single library which includes both v1 and v2 clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct{}

func NewClient

func NewClient() (*Client, error)

func (*Client) IncrementCounter

func (c *Client) IncrementCounter(name string) error

func (*Client) Send

func (c *Client) Send() error

func (*Client) SendAppErrorLog

func (c *Client) SendAppErrorLog(appID, message, sourceType, sourceInstance string) error

func (*Client) SendAppLog

func (c *Client) SendAppLog(appID, message, sourceType, sourceInstance string) error

func (*Client) SendAppMetrics

func (c *Client) SendAppMetrics(m *events.ContainerMetric) error

func (*Client) SendBytesPerSecond

func (c *Client) SendBytesPerSecond(name string, value float64) error

func (*Client) SendDuration

func (c *Client) SendDuration(name string, duration time.Duration) error

func (*Client) SendMebiBytes

func (c *Client) SendMebiBytes(name string, mebibytes int) error

func (*Client) SendMetric

func (c *Client) SendMetric(name string, value int) error

func (*Client) SendRequestsPerSecond

func (c *Client) SendRequestsPerSecond(name string, value float64) error

Jump to

Keyboard shortcuts

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