graph

package
v0.0.0-...-4ebe90f Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2016 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package graph handles time-series data provided by SysDB. It supports querying and post-processing of the data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graph

type Graph struct {
	// Time range of the graph.
	Start, End time.Time

	// Content of the graph.
	Metrics []Metric

	// List of attributes to group by.
	GroupBy []string
}

A Graph represents a single graph. It may reference multiple data-sources.

func (*Graph) Plot

func (g *Graph) Plot(c *client.Client) (*plot.Plot, error)

Plot fetches a graph's time-series data using the specified client and plots it.

type Metric

type Metric struct {
	// The unique identifier of the metric.
	Hostname, Identifier string

	// Attributes describing details of the metric.
	Attributes map[string]string
	// contains filtered or unexported fields
}

A Metric represents a single data-source of a graph.

Jump to

Keyboard shortcuts

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