perspective

package module
v0.0.0-...-20d6400 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2015 License: GPL-2.0 Imports: 6 Imported by: 0

README

Perspective

Graphing library for quality control in event-driven systems.

This is obviously a work in progress - and subject to major changes in both interface and implementation until this README is changed to say otherwise.

The ultimate intention is to provide:

  • A library of visualization-generation objects
  • A set of command-line utilities for generating visualizations with those objects
  • An HTTP service for generating visualizations with those objects
  • A reference graphical web application for using the HTTP visualization service

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventData

type EventData struct {
	ID       int32 // Event identifier.
	Start    int32 // In seconds since the beginning of the Unix epoch.
	Run      int32 // Event run time, in seconds.
	Type     uint8 // Event type indication.
	Status   int8  // 0 for success, >0 for failure, <0 for in-progress.
	Region   uint8 // Region identifier, 0 if undefined.
	Progress uint8 // Event progress percentage.
}

Struct to represent data to submit to the visualization generators, and to be used for the binary log format.

type Visualizer

type Visualizer interface {
	Record(*EventData)
	Render() image.Image
}

Abstract interface for visualization generators.

func NewCountLines

func NewCountLines(
	width int,
	height int,
	bg int,
	minTime int,
	maxTime int,
	resonance float64,
	xGrid int) Visualizer

NewCountLines returns an line-graph event-count-visualization generator.

func NewHistogram

func NewHistogram(width int, height int, bg int, yLog2 float64) Visualizer

NewHistogram returns a histogram-visualization generator.

func NewPolarScatter

func NewPolarScatter(
	width int,
	height int,
	bg int,
	minTime int,
	maxTime int,
	phasePoint int,
	period int,
	yLog2 float64,
	colorSteps float64) Visualizer

NewPolarScatter returns a polar floating-point scatter-visualization generator.

func NewRunTimeLine

func NewRunTimeLine(
	width int,
	height int,
	bg int,
	minTime int,
	maxTime int,
	yLog2 float64,
	xGrid int) Visualizer

NewRunTimeLine returns an line-graph event-run-time-visualization generator.

func NewScatter

func NewScatter(
	width int,
	height int,
	bg int,
	minTime int,
	maxTime int,
	yLog2 float64,
	colorSteps float64,
	xGrid int) Visualizer

NewScatter returns a floating-point scatter-visualization generator.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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