data

package
v0.0.0-...-37e6509 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alert

type Alert struct {
	Id         string `json:"id,omitempty"`
	PipeTaskId string `json:"pipetask_id,omitempty"`
	Topic      string `json:"topic,omitempty"`
	Message    string `json:"message,omitempty"`
	Level      string `json:"level,omitempty"` // FATAL/ERROR/WARN/INFO
	Data       string `json:"data,omitempty"`  // better be []byte, but after json serialization, they will be base64 anyway
	Image      string `json:"image,omitempty"` // same as above
	Ts         string `json:"ts,omitempty"`
}

type Level

type Level string
const (
	Fatal Level = "FATAL"
	Error Level = "ERROR"
	Warn  Level = "WARN"
	Info  Level = "INFO"
)

type Notif

type Notif struct {
	Level   Level  `json:"level,omitempty"` // FATAL/ERROR/WARN/INFO
	Title   string `json:"title,omitempty"`
	Message string `json:"message,omitempty"`
}

type TsColumn

type TsColumn struct {
	Id   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
	Type string `json:"type,omitempty"`
}

type TsDataSet

type TsDataSet struct {
	Columns TsColumn                 `json:"columns,omitempty"`
	Ts      []int64                  `json:"ts,omitempty"`
	Data    map[string][]interface{} `json:"data,omitempty"` // interface{} refers to float/int
}

a general TimeSeries dataset, TODO: should be compatible with popular tsdb

Jump to

Keyboard shortcuts

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