client

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client manages communication with emq api

func NewClient

func NewClient(host, node, apiVersion, username, password string) *Client

NewClient returns a new emq client

func (*Client) Fetch

func (c *Client) Fetch() (map[string]interface{}, error)

Fetch gets all the metrics from the emq api listed in the targets map implements emq_exporter.Fetcher

Jump to

Keyboard shortcuts

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