vizceral

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

THIS CODE IS PROVIDED AS-IS and the resulting config JSON is targeted for standalone Vizceral use.

The following link explains how to run the Vizceral example. Replace the example version of sample_data.json with the configuration generated by this handler and you should be able to render the Vizceral service graph.

https://github.com/Netflix/vizceral-example

The following link gives some information about the config format, although good documentation on volume handling is hard to find.

https://github.com/Netflix/Vizceral/wiki/How-to-Use#graph-data-format

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config Node

func NewConfig

func NewConfig(namespace string, trafficMap graph.TrafficMap, o options.VendorOptions) (result Config)

type Connection

type Connection struct {
	Source   string   `json:"source"`
	Target   string   `json:"target"`
	Metadata Metadata `json:"metadata,omitempty"`
	Metrics  Metrics  `json:"metrics,omitempty"`
}

type Metadata

type Metadata struct {
}

type Metrics

type Metrics struct {
	Danger  float64 `json:"danger,omitempty"`
	Warning float64 `json:"warning,omitempty"`
	Normal  float64 `json:"normal,omitempty"`
}

type Node

type Node struct {
	Renderer    string       `json:"renderer,omitempty"`
	Name        string       `json:"name"`
	DisplayName string       `json:"displayName,omitempty"`
	Class       string       `json:"class,omitempty"`
	Updated     int64        `json:"updated,omitempty"`
	MaxVolume   float64      `json:"maxVolume,omitempty"`
	Metadata    Metadata     `json:"metadata,omitempty"`
	Nodes       []Node       `json:"nodes,omitempty"`
	Connections []Connection `json:"connections,omitempty"`
	Notices     []Notice     `json:"notices,omitempty"`
}

type Notice

type Notice struct {
	Title    string `json:"title"`
	Link     string `json:"link,omitempty"`
	Severity int    `json:"severity,omitempty"`
}

Jump to

Keyboard shortcuts

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