Documentation ¶
Index ¶
- type APIGraphSeriesDefinition
- type APIGraphSeriesNullable
- type APIGraphSeriesValuesNullableFromFloat64
- type APIGraphSeriesValuesNullableFromInt64
- type APIJobGraphResponse
- type Graph
- type GraphDataWriter
- func (w *GraphDataWriter) Done(seriesVariable string) []byte
- func (w *GraphDataWriter) FloatSeries(label string, arr []float64) *GraphDataWriter
- func (w *GraphDataWriter) HideLast() *GraphDataWriter
- func (w *GraphDataWriter) Int64Series(label string, arr []int64) *GraphDataWriter
- func (w *GraphDataWriter) Series(label string, fn func(buf []byte) []byte) *GraphDataWriter
- func (w *GraphDataWriter) StringSeries(label string, arr []string) *GraphDataWriter
- func (w *GraphDataWriter) Var(variable string) *GraphDataWriter
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIGraphSeriesNullable ¶
type APIGraphSeriesValuesNullableFromFloat64 ¶
type APIGraphSeriesValuesNullableFromFloat64 []float64
func (APIGraphSeriesValuesNullableFromFloat64) MarshalJSON ¶
func (s APIGraphSeriesValuesNullableFromFloat64) MarshalJSON() ([]byte, error)
type APIGraphSeriesValuesNullableFromInt64 ¶
type APIGraphSeriesValuesNullableFromInt64 []int64
func (APIGraphSeriesValuesNullableFromInt64) MarshalJSON ¶
func (s APIGraphSeriesValuesNullableFromInt64) MarshalJSON() ([]byte, error)
type APIJobGraphResponse ¶
type APIJobGraphResponse struct { Success bool `json:"success"` Reason string `json:"reason"` Message string `json:"message"` Labels []string `json:"labels"` Data map[string]APIGraphSeriesNullable `json:"data"` Series []APIGraphSeriesDefinition `json:"series"` MaxValue float64 `json:"maxValue"` }
type GraphDataWriter ¶
type GraphDataWriter struct {
// contains filtered or unexported fields
}
func (*GraphDataWriter) Done ¶
func (w *GraphDataWriter) Done(seriesVariable string) []byte
func (*GraphDataWriter) FloatSeries ¶
func (w *GraphDataWriter) FloatSeries(label string, arr []float64) *GraphDataWriter
func (*GraphDataWriter) HideLast ¶
func (w *GraphDataWriter) HideLast() *GraphDataWriter
func (*GraphDataWriter) Int64Series ¶
func (w *GraphDataWriter) Int64Series(label string, arr []int64) *GraphDataWriter
func (*GraphDataWriter) Series ¶
func (w *GraphDataWriter) Series(label string, fn func(buf []byte) []byte) *GraphDataWriter
func (*GraphDataWriter) StringSeries ¶
func (w *GraphDataWriter) StringSeries(label string, arr []string) *GraphDataWriter
func (*GraphDataWriter) Var ¶
func (w *GraphDataWriter) Var(variable string) *GraphDataWriter
type Server ¶
func (*Server) HandleAPIJobGraph ¶
func (s *Server) HandleAPIJobGraph(w http.ResponseWriter, req *http.Request)
func (*Server) HandleGraph ¶
func (s *Server) HandleGraph(w http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.