model

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2018 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Class

type Class struct {
	Name  string `json:"name"`
	Color string `json:"color"`
}

type Connection

type Connection struct {
	Source   string    `json:"source"`
	Target   string    `json:"target"`
	Class    string    `json:"class,omitempty"`
	Metadata *Metadata `json:"metadata"`
	Metrics  *Metrics  `json:"metrics"`
	Notices  []*Notice `json:"notices"`
}

type Metadata

type Metadata struct {
	Streaming int `json:"streaming"`
}

type Metrics

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

type Node

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

type NodeConnectionSet

type NodeConnectionSet struct {
	Nodes       []*Node
	Connections []*Connection
}

type Notice

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

type Snapshot

type Snapshot struct {
	Timestamp time.Time `json:"timestamp"`
	GraphJSON string    `json:"graphJSON"`
}

type VizceralGraph

type VizceralGraph struct {
	Renderer         string        `json:"renderer"`
	Name             string        `json:"name"`
	MaxVolume        float64       `json:"maxVolume,omitempty"`
	ServerUpdateTime int64         `json:"serverUpdateTime"`
	Nodes            []*Node       `json:"nodes"`
	Connections      []*Connection `json:"connections"`
	Classes          []*Class      `json:"classes"`
}

Jump to

Keyboard shortcuts

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